LibreOffice Module android (master) 1
|
Public Member Functions | |
SubTile (TileIdentifier id) | |
void | setImage (CairoImage image) |
void | refreshTileMetrics () |
void | markForRemoval () |
void | destroy () |
void | destroyImage () |
void | invalidate () |
Invalidates the entire buffer so that it will be uploaded again. More... | |
void | draw (RenderContext context) |
Subclasses override this function to draw the layer. More... | |
Public Member Functions inherited from org.mozilla.gecko.gfx.Layer | |
Layer () | |
Layer (IntSize size) | |
final boolean | update (RenderContext context) |
Updates the layer. More... | |
abstract void | draw (RenderContext context) |
Subclasses override this function to draw the layer. More... | |
Region | getValidRegion (RenderContext context) |
Returns the region of the layer that is considered valid. More... | |
void | beginTransaction () |
Call this before modifying the layer. More... | |
void | endTransaction () |
Call this when you're done modifying the layer. More... | |
Rect | getPosition () |
Returns the current layer position. More... | |
void | setPosition (Rect newPosition) |
Sets the position. More... | |
float | getResolution () |
Returns the current layer's resolution. More... | |
void | setResolution (float newResolution) |
Sets the layer resolution. More... | |
boolean | usesDefaultProgram () |
Public Attributes | |
final TileIdentifier | id |
boolean | markedForRemoval = false |
Protected Member Functions | |
int | getTextureID () |
boolean | initialized () |
void | finalize () throws Throwable |
void | performUpdates (RenderContext context) |
Subclasses may override this method to perform custom layer updates. More... | |
Protected Member Functions inherited from org.mozilla.gecko.gfx.Layer | |
RectF | getBounds (RenderContext context) |
Given the intrinsic size of the layer, returns the pixel boundaries of the layer rect. More... | |
boolean | inTransaction () |
Returns true if the layer is currently in a transaction and false otherwise. More... | |
void | performUpdates (RenderContext context) |
Subclasses may override this method to perform custom layer updates. More... | |
final void | fillRectCoordBuffer (float[] dest, RectF rect, float viewWidth, float viewHeight, Rect cropRect, float texWidth, float texHeight) |
This function fills in the provided dest array with values to render a texture. More... | |
Private Member Functions | |
void | cleanTexture () |
void | validateTexture () |
Remove the texture if the image is of different size than the current uploaded texture. More... | |
void | uploadNewTexture () |
void | bindAndSetGLParameters () |
Private Attributes | |
final RectF | mBounds |
final RectF | mTextureBounds |
final RectF | mViewport |
final Rect | mIntBounds |
final Rect | mSubRect |
final RectF | mSubRectF |
final Region | mMaskedBounds |
final Rect | mCropRect |
final RectF | mObjRectF |
final float[] | mCoords |
CairoImage | mImage |
IntSize | mSize |
int[] | mTextureIDs |
boolean | mDirtyTile |
Static Private Attributes | |
static String | LOGTAG = SubTile.class.getSimpleName() |
Additional Inherited Members | |
Protected Attributes inherited from org.mozilla.gecko.gfx.Layer | |
Rect | mPosition |
float | mResolution |
boolean | mUsesDefaultProgram = true |
Definition at line 20 of file SubTile.java.
|
inline |
Definition at line 42 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.id, org.mozilla.gecko.gfx.SubTile.mCoords, org.mozilla.gecko.gfx.SubTile.mCropRect, org.mozilla.gecko.gfx.SubTile.mDirtyTile, org.mozilla.gecko.gfx.SubTile.mImage, org.mozilla.gecko.gfx.SubTile.mIntBounds, org.mozilla.gecko.gfx.SubTile.mMaskedBounds, org.mozilla.gecko.gfx.SubTile.mObjRectF, org.mozilla.gecko.gfx.SubTile.mSize, org.mozilla.gecko.gfx.SubTile.mSubRect, org.mozilla.gecko.gfx.SubTile.mSubRectF, org.mozilla.gecko.gfx.SubTile.mTextureBounds, org.mozilla.gecko.gfx.SubTile.mTextureIDs, org.mozilla.gecko.gfx.SubTile.mViewport, and Rect.
|
inlineprivate |
Definition at line 180 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.mTextureIDs.
Referenced by org.mozilla.gecko.gfx.SubTile.uploadNewTexture().
|
inlineprivate |
Definition at line 95 of file SubTile.java.
References org.mozilla.gecko.gfx.TextureReaper.add(), org.mozilla.gecko.gfx.TextureReaper.get(), org.mozilla.gecko.gfx.SubTile.mTextureIDs, and org.mozilla.gecko.gfx.TextureReaper.reap().
Referenced by org.mozilla.gecko.gfx.SubTile.destroy(), org.mozilla.gecko.gfx.SubTile.finalize(), and org.mozilla.gecko.gfx.SubTile.validateTexture().
|
inline |
Definition at line 103 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.cleanTexture(), org.mozilla.gecko.gfx.SubTile.destroyImage(), ex, Exception, Log, and org.mozilla.gecko.gfx.SubTile.LOGTAG.
Referenced by org.mozilla.gecko.gfx.ComposedTileLayer.clearMarkedTiles().
|
inline |
Definition at line 112 of file SubTile.java.
References org.mozilla.gecko.gfx.CairoImage.destroy(), and org.mozilla.gecko.gfx.SubTile.mImage.
Referenced by org.mozilla.gecko.gfx.SubTile.destroy(), org.mozilla.gecko.gfx.SubTile.finalize(), and org.mozilla.gecko.gfx.SubTile.uploadNewTexture().
|
inline |
Subclasses override this function to draw the layer.
Reimplemented from org.mozilla.gecko.gfx.Layer.
Definition at line 191 of file SubTile.java.
References org.mozilla.gecko.gfx.Layer.RenderContext.coordBuffer, org.mozilla.gecko.gfx.Layer.fillRectCoordBuffer(), org.mozilla.gecko.gfx.Layer.getBounds(), org.mozilla.gecko.gfx.SubTile.getTextureID(), org.mozilla.gecko.gfx.SubTile.initialized(), Math, org.mozilla.gecko.gfx.SubTile.mBounds, org.mozilla.gecko.gfx.SubTile.mCoords, org.mozilla.gecko.gfx.SubTile.mCropRect, org.mozilla.gecko.gfx.SubTile.mIntBounds, org.mozilla.gecko.gfx.SubTile.mMaskedBounds, org.mozilla.gecko.gfx.SubTile.mObjRectF, org.mozilla.gecko.gfx.SubTile.mSubRect, org.mozilla.gecko.gfx.SubTile.mSubRectF, org.mozilla.gecko.gfx.SubTile.mTextureBounds, org.mozilla.gecko.gfx.SubTile.mViewport, org.mozilla.gecko.gfx.Layer.RenderContext.positionHandle, org.mozilla.gecko.gfx.Layer.RenderContext.textureHandle, and org.mozilla.gecko.gfx.Layer.RenderContext.viewport.
|
inlineprotected |
Definition at line 86 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.cleanTexture(), and org.mozilla.gecko.gfx.SubTile.destroyImage().
|
inlineprotected |
Definition at line 77 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.mTextureIDs.
Referenced by org.mozilla.gecko.gfx.SubTile.draw().
|
inlineprotected |
Definition at line 81 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.mTextureIDs.
Referenced by org.mozilla.gecko.gfx.SubTile.draw().
|
inline |
Invalidates the entire buffer so that it will be uploaded again.
Only valid inside a transaction.
Definition at line 123 of file SubTile.java.
References org.mozilla.gecko.gfx.Layer.inTransaction(), org.mozilla.gecko.gfx.SubTile.mDirtyTile, and org.mozilla.gecko.gfx.SubTile.mImage.
|
inline |
Definition at line 73 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.markedForRemoval.
|
inlineprotected |
Subclasses may override this method to perform custom layer updates.
This will be called with the transaction lock held. Subclass implementations of this method must call the superclass implementation. Returns false if there is still work to be done after this update is complete.
Reimplemented from org.mozilla.gecko.gfx.Layer.
Definition at line 146 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.mDirtyTile, org.mozilla.gecko.gfx.SubTile.mImage, org.mozilla.gecko.gfx.SubTile.uploadNewTexture(), and org.mozilla.gecko.gfx.SubTile.validateTexture().
|
inline |
Definition at line 69 of file SubTile.java.
References org.mozilla.gecko.gfx.Layer.setPosition().
|
inline |
Definition at line 63 of file SubTile.java.
References org.mozilla.gecko.gfx.CairoImage.getSize(), and org.mozilla.gecko.gfx.IntSize.isPositive().
|
inlineprivate |
Definition at line 156 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.bindAndSetGLParameters(), org.mozilla.gecko.gfx.SubTile.destroyImage(), org.mozilla.gecko.gfx.CairoGLInfo.format, org.mozilla.gecko.gfx.CairoImage.getBuffer(), org.mozilla.gecko.gfx.CairoImage.getFormat(), org.mozilla.gecko.gfx.CairoImage.getSize(), org.mozilla.gecko.gfx.IntSize.height, org.mozilla.gecko.gfx.CairoGLInfo.internalFormat, org.mozilla.gecko.gfx.SubTile.mImage, org.mozilla.gecko.gfx.SubTile.mSize, org.mozilla.gecko.gfx.SubTile.mTextureIDs, org.mozilla.gecko.gfx.CairoGLInfo.type, and org.mozilla.gecko.gfx.IntSize.width.
Referenced by org.mozilla.gecko.gfx.SubTile.performUpdates().
|
inlineprivate |
Remove the texture if the image is of different size than the current uploaded texture.
Definition at line 136 of file SubTile.java.
References org.mozilla.gecko.gfx.SubTile.cleanTexture(), org.mozilla.gecko.gfx.IntSize.equals(), org.mozilla.gecko.gfx.CairoImage.getSize(), org.mozilla.gecko.gfx.SubTile.mImage, org.mozilla.gecko.gfx.SubTile.mSize, and org.mozilla.gecko.gfx.IntSize.nextPowerOfTwo().
Referenced by org.mozilla.gecko.gfx.SubTile.performUpdates().
final TileIdentifier org.mozilla.gecko.gfx.SubTile.id |
Definition at line 22 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.SubTile().
|
staticprivate |
Definition at line 21 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.destroy().
boolean org.mozilla.gecko.gfx.SubTile.markedForRemoval = false |
Definition at line 35 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.ComposedTileLayer.clearMarkedTiles(), and org.mozilla.gecko.gfx.SubTile.markForRemoval().
|
private |
Definition at line 24 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw().
|
private |
Definition at line 33 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 31 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 40 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.invalidate(), org.mozilla.gecko.gfx.SubTile.performUpdates(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 37 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.destroyImage(), org.mozilla.gecko.gfx.SubTile.invalidate(), org.mozilla.gecko.gfx.SubTile.performUpdates(), org.mozilla.gecko.gfx.SubTile.SubTile(), org.mozilla.gecko.gfx.SubTile.uploadNewTexture(), and org.mozilla.gecko.gfx.SubTile.validateTexture().
|
private |
Definition at line 27 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 30 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 32 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 38 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.SubTile(), org.mozilla.gecko.gfx.SubTile.uploadNewTexture(), and org.mozilla.gecko.gfx.SubTile.validateTexture().
|
private |
Definition at line 28 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 29 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 25 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().
|
private |
Definition at line 39 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.bindAndSetGLParameters(), org.mozilla.gecko.gfx.SubTile.cleanTexture(), org.mozilla.gecko.gfx.SubTile.getTextureID(), org.mozilla.gecko.gfx.SubTile.initialized(), org.mozilla.gecko.gfx.SubTile.SubTile(), and org.mozilla.gecko.gfx.SubTile.uploadNewTexture().
|
private |
Definition at line 26 of file SubTile.java.
Referenced by org.mozilla.gecko.gfx.SubTile.draw(), and org.mozilla.gecko.gfx.SubTile.SubTile().