diff options
author | Chris Craik <ccraik@google.com> | 2012-06-19 18:07:29 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-06-19 18:20:19 -0700 |
commit | ec90800d68fd500bb07f052c81fda0f54a794b1f (patch) | |
tree | 842f4f66af2b6f653db51713e5ef63670b72a5c1 /Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h | |
parent | cfad1b4c7cfa8eb502d1263c81f43e37e28ee928 (diff) | |
download | external_webkit-ec90800d68fd500bb07f052c81fda0f54a794b1f.zip external_webkit-ec90800d68fd500bb07f052c81fda0f54a794b1f.tar.gz external_webkit-ec90800d68fd500bb07f052c81fda0f54a794b1f.tar.bz2 |
Pin renderers to threads instead of tiles
Move thread local bitmaps to renderers, so the renderers own them, and can
perform optimizations.
Change-Id: I60d604759f4ce2ec9981990d1613eaf23cd1e625
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h b/Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h index 55759e4..34b57ca 100644 --- a/Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h +++ b/Source/WebCore/platform/graphics/android/rendering/RasterRenderer.h @@ -29,6 +29,7 @@ #if USE(ACCELERATED_COMPOSITING) #include "BaseRenderer.h" +#include "SkBitmap.h" #include "SkRect.h" class SkCanvas; @@ -45,10 +46,14 @@ public: ~RasterRenderer(); protected: - virtual void setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* canvas); virtual void renderingComplete(const TileRenderInfo& renderInfo, SkCanvas* canvas); virtual void checkForPureColor(TileRenderInfo& renderInfo, SkCanvas* canvas); + +private: + SkBitmap m_bitmap; + bool m_bitmapIsPureColor; + Color m_bitmapPureColor; }; } // namespace WebCore |