diff options
author | John Reck <jreck@google.com> | 2012-04-27 08:13:38 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-05-02 16:13:16 -0700 |
commit | e859a34171f2a36877d95197d118d962078f8aa0 (patch) | |
tree | 3c8b592536fa193bcb468c03e5f318c7d0edcf8e /Source/WebKit/android/jni/ViewStateSerializer.cpp | |
parent | 8a3e157baecb453158df1f7bc81bfb4704448b2e (diff) | |
download | external_webkit-e859a34171f2a36877d95197d118d962078f8aa0.zip external_webkit-e859a34171f2a36877d95197d118d962078f8aa0.tar.gz external_webkit-e859a34171f2a36877d95197d118d962078f8aa0.tar.bz2 |
Rewrite PictureSet with TURBO!
This changes how partial invals are done by adding a hybrid mode.
What we used to do is generate a SkPicture for the new area. This
SkPicture would possibly be larger than the actual inval, depending
on various merge rules (more SkPictures == slower to draw a tile)
The new code rewrites PictureSet entirely, preserving many of the old rules
but cleans up the code and adds the concept of a "PrerenderedInval". This is
a partial inval that WebKit has rasterized. By having WebKit produce both
a SkPicture and a SkBitmap, we avoid needing to play back the picture and
avoid overdrawing. We take this SkBitmap, and simply update the front
textures with it. This gives us full partial invals through the entire
system without hitting any driver bugs, and with minimal copies. And while
the SkPicture may be larger than the inval, the SkBitmap that is rasterized
is not - it matches the area webkit has said is dirty.
Change-Id: Ieb7ecc9db0d4f679102fda004a43399f9b319ebc
Diffstat (limited to 'Source/WebKit/android/jni/ViewStateSerializer.cpp')
-rw-r--r-- | Source/WebKit/android/jni/ViewStateSerializer.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/WebKit/android/jni/ViewStateSerializer.cpp b/Source/WebKit/android/jni/ViewStateSerializer.cpp index 5f2480a..02ddca6 100644 --- a/Source/WebKit/android/jni/ViewStateSerializer.cpp +++ b/Source/WebKit/android/jni/ViewStateSerializer.cpp @@ -38,7 +38,6 @@ #include "LayerAndroid.h" #include "LayerContent.h" #include "PictureLayerContent.h" -#include "PictureSet.h" #include "ScrollableLayerAndroid.h" #include "SkFlattenable.h" #include "SkPicture.h" |