diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-10-04 18:01:40 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-10-04 18:03:21 -0700 |
commit | 3adbe453816c9282bfe1d212e813661ce2590955 (patch) | |
tree | 3f2cb5fd1646f1f246629bfd0abf652ef2f3fc41 /Source/WebCore/platform/graphics/android/LayerAndroid.h | |
parent | 89829a24e4efac83486ad878de3438e272aeeddf (diff) | |
download | external_webkit-3adbe453816c9282bfe1d212e813661ce2590955.zip external_webkit-3adbe453816c9282bfe1d212e813661ce2590955.tar.gz external_webkit-3adbe453816c9282bfe1d212e813661ce2590955.tar.bz2 |
Streamline the layers update codepath.
Directly update the layers transform and position.
This makes updates faster and less dependent on other webkit work.
counterpart java CL: https://android-git.corp.google.com/g/#/c/139853/
bug:5218173
Change-Id: I03a76ab853e81f0f12177fb785707ffb8dace330
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/LayerAndroid.h | 6 |
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 4ae8bd3..38d867f 100644 --- a/Source/WebCore/platform/graphics/android/LayerAndroid.h +++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h @@ -273,6 +273,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; } |