LibreOffice Module android (master) 1
Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.mozilla.gecko.gfx.SubTile Class Reference
Inheritance diagram for org.mozilla.gecko.gfx.SubTile:
[legend]
Collaboration diagram for org.mozilla.gecko.gfx.SubTile:
[legend]

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
 

Detailed Description

Definition at line 20 of file SubTile.java.

Constructor & Destructor Documentation

◆ SubTile()

org.mozilla.gecko.gfx.SubTile.SubTile ( TileIdentifier  id)
inline

Member Function Documentation

◆ bindAndSetGLParameters()

void org.mozilla.gecko.gfx.SubTile.bindAndSetGLParameters ( )
inlineprivate

◆ cleanTexture()

void org.mozilla.gecko.gfx.SubTile.cleanTexture ( )
inlineprivate

◆ destroy()

void org.mozilla.gecko.gfx.SubTile.destroy ( )
inline

◆ destroyImage()

void org.mozilla.gecko.gfx.SubTile.destroyImage ( )
inline

◆ draw()

void org.mozilla.gecko.gfx.SubTile.draw ( RenderContext  context)
inline

◆ finalize()

void org.mozilla.gecko.gfx.SubTile.finalize ( ) throws Throwable
inlineprotected

◆ getTextureID()

int org.mozilla.gecko.gfx.SubTile.getTextureID ( )
inlineprotected

◆ initialized()

boolean org.mozilla.gecko.gfx.SubTile.initialized ( )
inlineprotected

◆ invalidate()

void org.mozilla.gecko.gfx.SubTile.invalidate ( )
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.

◆ markForRemoval()

void org.mozilla.gecko.gfx.SubTile.markForRemoval ( )
inline

Definition at line 73 of file SubTile.java.

References org.mozilla.gecko.gfx.SubTile.markedForRemoval.

◆ performUpdates()

void org.mozilla.gecko.gfx.SubTile.performUpdates ( RenderContext  context)
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().

◆ refreshTileMetrics()

void org.mozilla.gecko.gfx.SubTile.refreshTileMetrics ( )
inline

Definition at line 69 of file SubTile.java.

References org.mozilla.gecko.gfx.Layer.setPosition().

◆ setImage()

void org.mozilla.gecko.gfx.SubTile.setImage ( CairoImage  image)
inline

◆ uploadNewTexture()

void org.mozilla.gecko.gfx.SubTile.uploadNewTexture ( )
inlineprivate

◆ validateTexture()

void org.mozilla.gecko.gfx.SubTile.validateTexture ( )
inlineprivate

Member Data Documentation

◆ id

final TileIdentifier org.mozilla.gecko.gfx.SubTile.id

Definition at line 22 of file SubTile.java.

Referenced by org.mozilla.gecko.gfx.SubTile.SubTile().

◆ LOGTAG

String org.mozilla.gecko.gfx.SubTile.LOGTAG = SubTile.class.getSimpleName()
staticprivate

Definition at line 21 of file SubTile.java.

Referenced by org.mozilla.gecko.gfx.SubTile.destroy().

◆ markedForRemoval

boolean org.mozilla.gecko.gfx.SubTile.markedForRemoval = false

◆ mBounds

final RectF org.mozilla.gecko.gfx.SubTile.mBounds
private

Definition at line 24 of file SubTile.java.

Referenced by org.mozilla.gecko.gfx.SubTile.draw().

◆ mCoords

final float [] org.mozilla.gecko.gfx.SubTile.mCoords
private

◆ mCropRect

final Rect org.mozilla.gecko.gfx.SubTile.mCropRect
private

◆ mDirtyTile

boolean org.mozilla.gecko.gfx.SubTile.mDirtyTile
private

◆ mImage

CairoImage org.mozilla.gecko.gfx.SubTile.mImage
private

◆ mIntBounds

final Rect org.mozilla.gecko.gfx.SubTile.mIntBounds
private

◆ mMaskedBounds

final Region org.mozilla.gecko.gfx.SubTile.mMaskedBounds
private

◆ mObjRectF

final RectF org.mozilla.gecko.gfx.SubTile.mObjRectF
private

◆ mSize

IntSize org.mozilla.gecko.gfx.SubTile.mSize
private

◆ mSubRect

final Rect org.mozilla.gecko.gfx.SubTile.mSubRect
private

◆ mSubRectF

final RectF org.mozilla.gecko.gfx.SubTile.mSubRectF
private

◆ mTextureBounds

final RectF org.mozilla.gecko.gfx.SubTile.mTextureBounds
private

◆ mTextureIDs

int [] org.mozilla.gecko.gfx.SubTile.mTextureIDs
private

◆ mViewport

final RectF org.mozilla.gecko.gfx.SubTile.mViewport
private

The documentation for this class was generated from the following file: