summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/LayerAndroid.h
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2011-10-05 11:35:24 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-05 11:35:24 -0700
commit4357667d698f572b676929bfcb26b7cbff80a212 (patch)
tree1e86f17acaa8faf0d5fbdc924be43d3d14ff720f /Source/WebCore/platform/graphics/android/LayerAndroid.h
parent9a05db771f2264b0ae687d0adf51a075183f9498 (diff)
parent3adbe453816c9282bfe1d212e813661ce2590955 (diff)
downloadexternal_webkit-4357667d698f572b676929bfcb26b7cbff80a212.zip
external_webkit-4357667d698f572b676929bfcb26b7cbff80a212.tar.gz
external_webkit-4357667d698f572b676929bfcb26b7cbff80a212.tar.bz2
Merge "Streamline the layers update codepath. Directly update the layers transform and position. This makes updates faster and less dependent on other webkit work."
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r--Source/WebCore/platform/graphics/android/LayerAndroid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.h b/Source/WebCore/platform/graphics/android/LayerAndroid.h
index 90f4e86..cd52937 100644
--- a/Source/WebCore/platform/graphics/android/LayerAndroid.h
+++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h
@@ -276,6 +276,12 @@ public:
void assignTextureTo(LayerAndroid* newTree);
void createTexture();
+ // Update layers using another tree. Only works for basic properties
+ // such as the position, the transform. Return true if anything more
+ // complex is needed.
+ bool updateWithTree(LayerAndroid*);
+ bool updateWithLayer(LayerAndroid*);
+
SkBitmapRef* imageRef() { return m_imageRef; }
ImageTexture* imageTexture() { return m_imageTexture; }
int type() { return m_type; }