summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/LayerAndroid.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-09-26 15:06:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-26 15:06:45 -0700
commit3b58743809928df91d08dfff82ba99fb83ef95e6 (patch)
tree67977c3a50fede3dea3cf3c7a376fb311962fe57 /Source/WebCore/platform/graphics/android/LayerAndroid.h
parentbf01926a70274299a41d36a8a2ebe3e3bfbc48ef (diff)
parent8fea66e503c97640d6bdb5b8e5ddcb27324b5866 (diff)
downloadexternal_webkit-3b58743809928df91d08dfff82ba99fb83ef95e6.zip
external_webkit-3b58743809928df91d08dfff82ba99fb83ef95e6.tar.gz
external_webkit-3b58743809928df91d08dfff82ba99fb83ef95e6.tar.bz2
Merge "Add shared images for layers"
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r--Source/WebCore/platform/graphics/android/LayerAndroid.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.h b/Source/WebCore/platform/graphics/android/LayerAndroid.h
index 5bed7e5..6c17bba 100644
--- a/Source/WebCore/platform/graphics/android/LayerAndroid.h
+++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h
@@ -23,6 +23,7 @@
#include "FloatPoint3D.h"
#include "FloatRect.h"
#include "GraphicsLayerClient.h"
+#include "ImageTexture.h"
#include "Layer.h"
#include "RefPtr.h"
#include "SkBitmap.h"
@@ -49,6 +50,7 @@ class SkPicture;
namespace WebCore {
class LayerAndroid;
+class ImageTexture;
}
namespace android {
@@ -234,12 +236,11 @@ public:
/** This sets a content image -- calling it means we will use
the image directly when drawing the layer instead of using
- the content painted by WebKit. See comments below for
- m_recordingPicture and m_contentsImage.
+ the content painted by WebKit.
+ Images are handled in TilesManager, as they can be shared
+ between layers.
*/
void setContentsImage(SkBitmapRef* img);
- bool hasContentsImage() { return m_contentsImage; }
- void copyBitmap(SkBitmap*);
void bounds(SkRect*) const;
@@ -347,6 +348,8 @@ private:
int m_uniqueId;
PaintedSurface* m_texture;
+ SkBitmapRef* m_imageRef;
+ ImageTexture* m_imageTexture;
// used to signal that the tile is out-of-date and needs to be redrawn
bool m_dirty;