diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h b/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h index f4cf9f3..dc4c25f 100644 --- a/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h +++ b/Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h @@ -34,28 +34,37 @@ namespace WebCore { class RenderLayerCompositor; class BaseLayerAndroid : public LayerAndroid { - public: BaseLayerAndroid(LayerContent* content); - - virtual ~BaseLayerAndroid() {}; - virtual SubclassType subclassType() { return LayerAndroid::BaseLayer; } - virtual bool needsTexture() { return true; } - - void setBackgroundColor(Color& color) { m_color = color; } - Color getBackgroundColor() { return m_color; } - virtual void getLocalTransform(SkMatrix* matrix) const; virtual const TransformationMatrix* drawTransform() const { return 0; } - + virtual bool needsTexture() { return content(); } virtual IFrameLayerAndroid* updatePosition(SkRect viewport, IFrameLayerAndroid* parentIframeLayer); + void setBackgroundColor(Color& color) { m_color = color; } + Color getBackgroundColor() { return m_color; } + private: // TODO: move to SurfaceCollection. Color m_color; }; +class ForegroundBaseLayerAndroid : public LayerAndroid { +public: + ForegroundBaseLayerAndroid(LayerContent* content); + virtual SubclassType subclassType() { return LayerAndroid::ForegroundBaseLayer; } + + virtual bool needsTexture() { return false; } +}; + +class FixedBackgroundBaseLayerAndroid : public LayerAndroid { +public: + FixedBackgroundBaseLayerAndroid(LayerContent* content); + virtual bool needsTexture() { return true; } + virtual SubclassType subclassType() { return LayerAndroid::FixedBackgroundBaseLayer; } +}; + } // namespace WebCore #endif //BaseLayerAndroid_h |