diff options
author | Nicolas Roard <nicolasroard@google.com> | 2012-07-17 09:23:59 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2012-07-17 11:08:15 -0700 |
commit | 99e11cfb571223b4736e9fa4f4ae277ad98fe643 (patch) | |
tree | 96a5b8d9a21d186e3040ea9f046379e166bd076e /Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h | |
parent | f87a68b1847dffdc65542deaed6d924878c99db4 (diff) | |
download | external_webkit-99e11cfb571223b4736e9fa4f4ae277ad98fe643.zip external_webkit-99e11cfb571223b4736e9fa4f4ae277ad98fe643.tar.gz external_webkit-99e11cfb571223b4736e9fa4f4ae277ad98fe643.tar.bz2 |
Use PicturePile in layers
Change-Id: I68b4c303b59fd4127c83e9ccb1d43ed630e21253
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h index 460e00f..b40459d 100644 --- a/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h +++ b/Source/WebCore/platform/graphics/android/GraphicsLayerAndroid.h @@ -24,6 +24,7 @@ #include "GraphicsLayer.h" #include "GraphicsLayerClient.h" #include "LayerContent.h" +#include "PicturePile.h" #include "RefPtr.h" #include "ScrollableLayerAndroid.h" #include "SkBitmapRef.h" @@ -40,12 +41,18 @@ class LayerAndroid; class FixedBackgroundImageLayerAndroid; class ScrollableLayerAndroid; -class GraphicsLayerAndroid : public GraphicsLayer { +class GraphicsLayerAndroid : public GraphicsLayer, PicturePainter { public: GraphicsLayerAndroid(GraphicsLayerClient*); virtual ~GraphicsLayerAndroid(); + // PicturePainter + + virtual void paintContents(GraphicsContext* gc, IntRect& dirty); + + ///// + virtual void setName(const String&); // for hosting this GraphicsLayer in a native layer hierarchy @@ -147,7 +154,6 @@ private: bool repaint(); void needsNotifyClient(); - SkPicture* paintPicture(const IntRect& rect); bool paintContext(LayerAndroid* layer, const IntRect& rect, bool checkOptimisations = true); |