diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-09-29 13:58:29 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-09-29 14:44:10 -0700 |
commit | 661b2b2086b75ea8e548673e83210226e46cd49d (patch) | |
tree | f97001c9142249e9a74a5533d522892379b2f5cd /Source/WebCore/platform/graphics/android/LayerAndroid.h | |
parent | 74523e723bc5677780989d6a5834adc5c72c3683 (diff) | |
download | external_webkit-661b2b2086b75ea8e548673e83210226e46cd49d.zip external_webkit-661b2b2086b75ea8e548673e83210226e46cd49d.tar.gz external_webkit-661b2b2086b75ea8e548673e83210226e46cd49d.tar.bz2 |
Add debug informations to keep better track of layers allocation
Fix coherency issue in ClassTracker (it's accessed from two different
threads and we were not locking the datastructure)
bug:5366807
Change-Id: I7dbd4417a49f4b3af3e09d614cec6b4568b09f7a
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/LayerAndroid.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.h b/Source/WebCore/platform/graphics/android/LayerAndroid.h index d6bb497..4ae8bd3 100644 --- a/Source/WebCore/platform/graphics/android/LayerAndroid.h +++ b/Source/WebCore/platform/graphics/android/LayerAndroid.h @@ -100,6 +100,7 @@ class PaintedSurface; class LayerAndroid : public Layer { public: + enum LayerType { UndefinedLayer, WebCoreLayer, UILayer, NavCacheLayer }; LayerAndroid(RenderLayer* owner); LayerAndroid(const LayerAndroid& layer); LayerAndroid(SkPicture*); @@ -272,6 +273,10 @@ public: void assignTextureTo(LayerAndroid* newTree); void createTexture(); + SkBitmapRef* imageRef() { return m_imageRef; } + ImageTexture* imageTexture() { return m_imageTexture; } + int type() { return m_type; } + protected: virtual void onDraw(SkCanvas*, SkScalar opacity); @@ -379,7 +384,7 @@ private: RenderLayer* m_owningLayer; GLWebViewState* m_state; - + int m_type; typedef Layer INHERITED; }; |