diff options
author | John Reck <jreck@google.com> | 2012-07-12 09:45:46 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-07-12 13:21:41 -0700 |
commit | 675402ef4358583f64a2476927a548db4841c856 (patch) | |
tree | a8466827447f0fc86978af7a1fb3eacc9b554dfe /Source/WebKit/android | |
parent | 7bf7317fada1c84c2603a639631b7db89e73b556 (diff) | |
download | external_webkit-675402ef4358583f64a2476927a548db4841c856.zip external_webkit-675402ef4358583f64a2476927a548db4841c856.tar.gz external_webkit-675402ef4358583f64a2476927a548db4841c856.tar.bz2 |
Use an R-Tree for operation recording
Change-Id: I1380ae53139d5f50a25ea5edb61ec8b6818112ca
Diffstat (limited to 'Source/WebKit/android')
-rw-r--r-- | Source/WebKit/android/jni/PicturePile.cpp | 6 | ||||
-rw-r--r-- | Source/WebKit/android/jni/PicturePile.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebKit/android/jni/PicturePile.cpp b/Source/WebKit/android/jni/PicturePile.cpp index 6a36ccf..0567b62 100644 --- a/Source/WebKit/android/jni/PicturePile.cpp +++ b/Source/WebKit/android/jni/PicturePile.cpp @@ -275,15 +275,15 @@ PrerenderedInval* PicturePile::prerenderedInvalForArea(const IntRect& area) #if USE_RECORDING_CONTEXT void PicturePile::drawPicture(SkCanvas* canvas, PictureContainer& pc) { - PlatformGraphicsContextSkia pgc(canvas); - pc.picture->apply(&pgc); + TRACE_METHOD(); + pc.picture->draw(canvas); } Picture* PicturePile::recordPicture(PicturePainter* painter, PictureContainer& pc) { // TODO: Support? Not needed? pc.prerendered.clear(); - GraphicsOperationCollection* picture = new GraphicsOperationCollection(); + Recording* picture = new Recording(); WebCore::PlatformGraphicsContextRecording pgc(picture); WebCore::GraphicsContext gc(&pgc); painter->paintContents(&gc, pc.area); diff --git a/Source/WebKit/android/jni/PicturePile.h b/Source/WebKit/android/jni/PicturePile.h index 64caa95..a8175d9 100644 --- a/Source/WebKit/android/jni/PicturePile.h +++ b/Source/WebKit/android/jni/PicturePile.h @@ -38,12 +38,12 @@ #include <wtf/ThreadSafeRefCounted.h> #include <wtf/Vector.h> -#define USE_RECORDING_CONTEXT true +#define USE_RECORDING_CONTEXT false #if USE_RECORDING_CONTEXT namespace WebCore { -class GraphicsOperationCollection; +class Recording; } -typedef WebCore::GraphicsOperationCollection Picture; +typedef WebCore::Recording Picture; #else class SkPicture; typedef SkPicture Picture; |