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/Tile.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/Tile.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/Tile.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/Tile.h b/Source/WebCore/platform/graphics/android/rendering/Tile.h index b045f1f..f467bb0 100644 --- a/Source/WebCore/platform/graphics/android/rendering/Tile.h +++ b/Source/WebCore/platform/graphics/android/rendering/Tile.h @@ -28,7 +28,6 @@ #if USE(ACCELERATED_COMPOSITING) -#include "BaseRenderer.h" #include "FloatPoint.h" #include "SkRect.h" #include "SkRegion.h" @@ -39,9 +38,10 @@ namespace WebCore { +class BaseRenderer; +class GLWebViewState; class TextureInfo; class TileTexture; -class GLWebViewState; /** * An individual tile that is used to construct part of a webpage's BaseLayer of @@ -107,7 +107,7 @@ public: const FloatRect& fillPortion); // the only thread-safe function called by the background thread - void paintBitmap(TilePainter* painter); + void paintBitmap(TilePainter* painter, BaseRenderer* renderer); bool intersectWithRect(int x, int y, int tileWidth, int tileHeight, float scale, const SkRect& dirtyRect, @@ -171,8 +171,6 @@ private: // across all threads and cores. android::Mutex m_atomicSync; - BaseRenderer* m_renderer; - bool m_isLayerTile; // the most recent GL draw before this tile was prepared. used for |