Public Types |
| enum | InitMode { InitModeNone,
InitModeClear,
InitModeCopy
} |
| | Controls how to initialize the texture / FBO created by CreateFBOWithTexture.
More...
|
Public Member Functions |
| | LayerManagerOGL (nsIWidget *aWidget) |
| virtual | ~LayerManagerOGL () |
| void | CleanupResources () |
| void | Destroy () |
| | Release layers and resources held by this layer manager, and mark it as destroyed.
|
| PRBool | Initialize () |
| | Initializes the layer manager with a given GLContext.
|
| PRBool | Initialize (nsRefPtr< GLContext > aContext) |
| void | SetClippingRegion (const nsIntRegion &aClippingRegion) |
| | Sets the clipping region for this layer manager.
|
| void | BeginTransaction () |
| | LayerManager implementation.
|
| void | BeginTransactionWithTarget (gfxContext *aTarget) |
| | Start a new transaction.
|
| void | EndConstruction () |
| virtual void | EndTransaction (DrawThebesLayerCallback aCallback, void *aCallbackData) |
| | Finish the construction phase of the transaction, perform the drawing phase, and end the transaction.
|
| virtual void | SetRoot (Layer *aLayer) |
| | CONSTRUCTION PHASE ONLY Set the root layer.
|
virtual already_AddRefed
< ThebesLayer > | CreateThebesLayer () |
| | CONSTRUCTION PHASE ONLY Create a ThebesLayer for this manager's layer tree.
|
virtual already_AddRefed
< ContainerLayer > | CreateContainerLayer () |
| | CONSTRUCTION PHASE ONLY Create a ContainerLayer for this manager's layer tree.
|
virtual already_AddRefed
< ImageLayer > | CreateImageLayer () |
| | CONSTRUCTION PHASE ONLY Create an ImageLayer for this manager's layer tree.
|
virtual already_AddRefed
< ColorLayer > | CreateColorLayer () |
| | CONSTRUCTION PHASE ONLY Create a ColorLayer for this manager's layer tree.
|
virtual already_AddRefed
< CanvasLayer > | CreateCanvasLayer () |
| | CONSTRUCTION PHASE ONLY Create a CanvasLayer for this manager's layer tree.
|
virtual already_AddRefed
< ImageContainer > | CreateImageContainer () |
| | Can be called anytime.
|
virtual already_AddRefed
< ShadowThebesLayer > | CreateShadowThebesLayer () |
virtual already_AddRefed
< ShadowContainerLayer > | CreateShadowContainerLayer () |
virtual already_AddRefed
< ShadowImageLayer > | CreateShadowImageLayer () |
virtual already_AddRefed
< ShadowColorLayer > | CreateShadowColorLayer () |
virtual already_AddRefed
< ShadowCanvasLayer > | CreateShadowCanvasLayer () |
| virtual LayersBackend | GetBackendType () |
| | Type of layer manager his is.
|
| virtual void | GetBackendName (nsAString &name) |
| | Return the name of the layer manager's backend.
|
| void | ForgetImageContainer (ImageContainer *aContainer) |
| | Image Container management.
|
| void | RememberImageContainer (ImageContainer *aContainer) |
| void | MakeCurrent (PRBool aForce=0) |
| | Helper methods.
|
| ColorTextureLayerProgram * | GetColorTextureLayerProgram (ProgramType type) |
| ColorTextureLayerProgram * | GetRGBALayerProgram () |
| ColorTextureLayerProgram * | GetBGRALayerProgram () |
| ColorTextureLayerProgram * | GetRGBXLayerProgram () |
| ColorTextureLayerProgram * | GetBGRXLayerProgram () |
| ColorTextureLayerProgram * | GetBasicLayerProgram (PRBool aOpaque, PRBool aIsRGB) |
| ColorTextureLayerProgram * | GetRGBARectLayerProgram () |
| SolidColorLayerProgram * | GetColorLayerProgram () |
| YCbCrTextureLayerProgram * | GetYCbCrLayerProgram () |
| ComponentAlphaTextureLayerProgram * | GetComponentAlphaPass1LayerProgram () |
| ComponentAlphaTextureLayerProgram * | GetComponentAlphaPass2LayerProgram () |
| CopyProgram * | GetCopy2DProgram () |
| CopyProgram * | GetCopy2DRectProgram () |
| ColorTextureLayerProgram * | GetFBOLayerProgram () |
| GLContext * | gl () const |
| DrawThebesLayerCallback | GetThebesLayerCallback () const |
| void * | GetThebesLayerCallbackData () const |
| GLContext * | glForResources () const |
| void | CallThebesLayerDrawCallback (ThebesLayer *aLayer, gfxContext *aContext, const nsIntRegion &aRegionToDraw) |
| GLenum | FBOTextureTarget () |
| void | CreateFBOWithTexture (const nsIntRect &aRect, InitMode aInit, GLuint *aFBO, GLuint *aTexture) |
| GLuint | QuadVBO () |
| GLintptr | QuadVBOVertexOffset () |
| GLintptr | QuadVBOTexCoordOffset () |
| GLintptr | QuadVBOFlippedTexCoordOffset () |
| void | BindQuadVBO () |
| void | QuadVBOVerticesAttrib (GLuint aAttribIndex) |
| void | QuadVBOTexCoordsAttrib (GLuint aAttribIndex) |
| void | QuadVBOFlippedTexCoordsAttrib (GLuint aAttribIndex) |
| void | BindAndDrawQuad (GLuint aVertAttribIndex, GLuint aTexCoordAttribIndex, bool aFlipped=false) |
| void | BindAndDrawQuad (LayerProgram *aProg, bool aFlipped=false) |
| const nsIntSize & | GetWigetSize () |
| void | SetupPipeline (int aWidth, int aHeight) |
| | Setup the viewport and projection matrix for rendering to a window of the given dimensions.
|
For now this will render on the main thread.
| virtual void mozilla::layers::LayerManagerOGL::EndTransaction |
( |
DrawThebesLayerCallback |
aCallback, |
|
|
void * |
aCallbackData | |
|
) |
| | [virtual] |
Finish the construction phase of the transaction, perform the drawing phase, and end the transaction.
During the drawing phase, all ThebesLayers in the tree are drawn in tree order, exactly once each, except for those layers where it is known that the visible region is empty.
Implements mozilla::layers::LayerManager.