diff options
author | 2011-01-13 12:13:20 -0800 | |
---|---|---|
committer | 2011-01-13 12:13:20 -0800 | |
commit | ada830f639591b99c3e40de22b07296c7932a33f (patch) | |
tree | 308f469469e96ce7f99d2ec5135e7d44eb858a35 /libs/hwui/OpenGLDebugRenderer.cpp | |
parent | 4f6aff386045000c2c03b903c7109cb42092b7ea (diff) |
Cleanup implementation of hardware layers.
The new implementation relies on OpenGLRenderer's existing layer
code instead of duplicating it. The new code is much cleaner, with
simpler and better APIs and allows tracking of drawn regions inside
layers. Region tracking is not yet enabled but this will be done
in a future CL.
Change-Id: Ie826121a2227de8252c77b992a61218defea5143
Diffstat (limited to 'libs/hwui/OpenGLDebugRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLDebugRenderer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLDebugRenderer.cpp b/libs/hwui/OpenGLDebugRenderer.cpp index 1cf3d20c8be1..f71e5d6dfa24 100644 --- a/libs/hwui/OpenGLDebugRenderer.cpp +++ b/libs/hwui/OpenGLDebugRenderer.cpp @@ -54,6 +54,12 @@ void OpenGLDebugRenderer::drawDisplayList(DisplayList* displayList) { OpenGLRenderer::drawDisplayList(displayList); } +void OpenGLDebugRenderer::drawLayer(Layer* layer, float x, float y, SkPaint* paint) { + mPrimitivesCount++; + StopWatch w("drawLayer"); + OpenGLRenderer::drawLayer(layer, x, y, paint); +} + void OpenGLDebugRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { mPrimitivesCount++; |