diff options
author | Nicolas Roard <nicolasroard@google.com> | 2012-04-06 15:16:28 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2012-04-24 11:54:25 -0700 |
commit | a15d30f54c6edc68da7e82c198b5916dd023ac4d (patch) | |
tree | 6f7040096043ac04a72600144a51a274f1096b2f /Source/WebCore/platform/graphics/android/layers/BaseLayerAndroid.h | |
parent | 492bcfac9fc25b61f44811050fb0cfe827eb6a08 (diff) | |
download | external_webkit-a15d30f54c6edc68da7e82c198b5916dd023ac4d.zip external_webkit-a15d30f54c6edc68da7e82c198b5916dd023ac4d.tar.gz external_webkit-a15d30f54c6edc68da7e82c198b5916dd023ac4d.tar.bz2 |
CSS Background image implementation
bug:1352305
Change-Id: Id9caaae9b9442729110b52c75004f634d8284db4
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 |