diff options
author | Romain Guy <romainguy@google.com> | 2010-11-08 12:08:41 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-11-08 12:15:28 -0800 |
commit | 0fe478ea04720a57ef3919dbc23711bc7eba517f (patch) | |
tree | d498b2893e0890f0bb9dccf44dc392004d68e844 /libs/hwui/OpenGLDebugRenderer.cpp | |
parent | cce1d2a60bc1ef10ec6beb338ec3d4cf94486c47 (diff) | |
download | frameworks_base-0fe478ea04720a57ef3919dbc23711bc7eba517f.zip frameworks_base-0fe478ea04720a57ef3919dbc23711bc7eba517f.tar.gz frameworks_base-0fe478ea04720a57ef3919dbc23711bc7eba517f.tar.bz2 |
Support nested display lists.
Change-Id: I3815a2832fc0f722c668ba8f51c5f177edb77c94
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 fe75ca2..1cf3d20 100644 --- a/libs/hwui/OpenGLDebugRenderer.cpp +++ b/libs/hwui/OpenGLDebugRenderer.cpp @@ -48,6 +48,12 @@ int OpenGLDebugRenderer::saveLayer(float left, float top, float right, float bot return OpenGLRenderer::saveLayer(left, top, right, bottom, p, flags); } +void OpenGLDebugRenderer::drawDisplayList(DisplayList* displayList) { + mPrimitivesCount++; + StopWatch w("drawDisplayList"); + OpenGLRenderer::drawDisplayList(displayList); +} + void OpenGLDebugRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { mPrimitivesCount++; |