diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h')
-rw-r--r-- | Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h b/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h index 84fe47621..bd146650b 100644 --- a/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h +++ b/Source/WebCore/platform/graphics/chromium/cc/CCTiledLayerImpl.h @@ -43,11 +43,11 @@ public: } virtual ~CCTiledLayerImpl(); - virtual void appendQuads(CCQuadList&, const CCSharedQuadState*); + virtual void appendQuads(CCQuadCuller&, const CCSharedQuadState*, bool& hadMissingTiles) OVERRIDE; - virtual void bindContentsTexture(LayerRendererChromium*); + virtual void bindContentsTexture(LayerRendererChromium*) OVERRIDE; - virtual void dumpLayerProperties(TextStream&, int indent) const; + virtual void dumpLayerProperties(TextStream&, int indent) const OVERRIDE; void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; } void setTilingData(const CCLayerTilingData& tiler); @@ -56,31 +56,20 @@ public: void setContentsSwizzled(bool contentsSwizzled) { m_contentsSwizzled = contentsSwizzled; } bool contentsSwizzled() const { return m_contentsSwizzled; } - virtual Region opaqueContentsRegion() const; - - typedef ProgramBinding<VertexShaderTile, FragmentShaderRGBATexAlpha> Program; - // Shader program that swaps red and blue components of texture. - // Used when texture format does not match native color format. - typedef ProgramBinding<VertexShaderTile, FragmentShaderRGBATexSwizzleAlpha> ProgramSwizzle; - - // Same as above but ignoring alpha and writing out 1.0 for the alpha channel. - typedef ProgramBinding<VertexShaderTile, FragmentShaderRGBATexOpaque> ProgramOpaque; - typedef ProgramBinding<VertexShaderTile, FragmentShaderRGBATexSwizzleOpaque> ProgramSwizzleOpaque; - - // Shader program that produces anti-aliased layer edges. - typedef ProgramBinding<VertexShaderTile, FragmentShaderRGBATexClampAlphaAA> ProgramAA; - typedef ProgramBinding<VertexShaderTile, FragmentShaderRGBATexClampSwizzleAlphaAA> ProgramSwizzleAA; + virtual Region visibleContentOpaqueRegion() const OVERRIDE; + virtual void didLoseContext() OVERRIDE; protected: explicit CCTiledLayerImpl(int id); // Exposed for testing. bool hasTileAt(int, int) const; + bool hasTextureIdForTileAt(int, int) const; - virtual TransformationMatrix quadTransform() const; + virtual TransformationMatrix quadTransform() const OVERRIDE; private: - virtual const char* layerTypeAsString() const { return "ContentLayer"; } + virtual const char* layerTypeAsString() const OVERRIDE { return "ContentLayer"; } DrawableTile* tileAt(int, int) const; DrawableTile* createTile(int, int); |