LibreOffice Module android (master) 1
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.mozilla.gecko.gfx.TileLayer Class Referenceabstract

Base class for tile layers, which encapsulate the logic needed to draw textured tiles in OpenGL ES. More...

Inheritance diagram for org.mozilla.gecko.gfx.TileLayer:
[legend]
Collaboration diagram for org.mozilla.gecko.gfx.TileLayer:
[legend]

Classes

enum  PaintMode
 

Public Member Functions

CairoImage getImage ()
 
 TileLayer (CairoImage image, PaintMode paintMode)
 
void destroy ()
 
void setPaintMode (PaintMode mode)
 
void invalidate ()
 Invalidates the entire buffer so that it will be uploaded again. 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 ()
 

Protected Member Functions

boolean repeats ()
 
boolean stretches ()
 
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...
 

Protected Attributes

final CairoImage mImage
 
- Protected Attributes inherited from org.mozilla.gecko.gfx.Layer
Rect mPosition
 
float mResolution
 
boolean mUsesDefaultProgram = true
 

Private Member Functions

void validateTexture ()
 
void uploadFullTexture ()
 
void uploadDirtyRect (Rect dirtyRect)
 
void bindAndSetGLParameters ()
 

Private Attributes

final Rect mDirtyRect
 
IntSize mSize
 
int[] mTextureIDs
 
PaintMode mPaintMode
 

Static Private Attributes

static final String LOGTAG = "GeckoTileLayer"
 

Detailed Description

Base class for tile layers, which encapsulate the logic needed to draw textured tiles in OpenGL ES.

Definition at line 18 of file TileLayer.java.

Constructor & Destructor Documentation

◆ TileLayer()

org.mozilla.gecko.gfx.TileLayer.TileLayer ( CairoImage  image,
PaintMode  paintMode 
)
inline

Member Function Documentation

◆ bindAndSetGLParameters()

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

◆ destroy()

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

◆ finalize()

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

◆ getImage()

CairoImage org.mozilla.gecko.gfx.TileLayer.getImage ( )
inline

Definition at line 27 of file TileLayer.java.

References org.mozilla.gecko.gfx.TileLayer.mImage.

◆ getTextureID()

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

◆ initialized()

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

◆ invalidate()

void org.mozilla.gecko.gfx.TileLayer.invalidate ( )
inline

◆ performUpdates()

void org.mozilla.gecko.gfx.TileLayer.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 109 of file TileLayer.java.

References org.mozilla.gecko.gfx.CairoImage.getSize(), org.mozilla.gecko.gfx.IntSize.isPositive(), org.mozilla.gecko.gfx.TileLayer.mDirtyRect, org.mozilla.gecko.gfx.TileLayer.mImage, org.mozilla.gecko.gfx.TileLayer.mTextureIDs, org.mozilla.gecko.gfx.TileLayer.uploadDirtyRect(), org.mozilla.gecko.gfx.TileLayer.uploadFullTexture(), and org.mozilla.gecko.gfx.TileLayer.validateTexture().

◆ repeats()

boolean org.mozilla.gecko.gfx.TileLayer.repeats ( )
inlineprotected

◆ setPaintMode()

void org.mozilla.gecko.gfx.TileLayer.setPaintMode ( PaintMode  mode)
inline

Definition at line 68 of file TileLayer.java.

References mode, and org.mozilla.gecko.gfx.TileLayer.mPaintMode.

◆ stretches()

boolean org.mozilla.gecko.gfx.TileLayer.stretches ( )
inlineprotected

◆ uploadDirtyRect()

void org.mozilla.gecko.gfx.TileLayer.uploadDirtyRect ( Rect  dirtyRect)
inlineprivate

◆ uploadFullTexture()

void org.mozilla.gecko.gfx.TileLayer.uploadFullTexture ( )
inlineprivate

◆ validateTexture()

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

Member Data Documentation

◆ LOGTAG

final String org.mozilla.gecko.gfx.TileLayer.LOGTAG = "GeckoTileLayer"
staticprivate

Definition at line 19 of file TileLayer.java.

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

◆ mDirtyRect

final Rect org.mozilla.gecko.gfx.TileLayer.mDirtyRect
private

◆ mImage

final CairoImage org.mozilla.gecko.gfx.TileLayer.mImage
protected

◆ mPaintMode

PaintMode org.mozilla.gecko.gfx.TileLayer.mPaintMode
private

◆ mSize

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

◆ mTextureIDs

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

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