diff options
author | 2010-11-08 12:08:41 -0800 | |
---|---|---|
committer | 2010-11-08 12:15:28 -0800 | |
commit | 0fe478ea04720a57ef3919dbc23711bc7eba517f (patch) | |
tree | d498b2893e0890f0bb9dccf44dc392004d68e844 /libs/hwui/OpenGLRenderer.cpp | |
parent | cce1d2a60bc1ef10ec6beb338ec3d4cf94486c47 (diff) |
Support nested display lists.
Change-Id: I3815a2832fc0f722c668ba8f51c5f177edb77c94
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index cad991d1b18b..9a6618b778b4 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -29,6 +29,7 @@ #include <ui/Rect.h> #include "OpenGLRenderer.h" +#include "DisplayListRenderer.h" namespace android { namespace uirenderer { @@ -827,6 +828,14 @@ bool OpenGLRenderer::clipRect(float left, float top, float right, float bottom, // Drawing /////////////////////////////////////////////////////////////////////////////// +void OpenGLRenderer::drawDisplayList(DisplayList* displayList) { + // All the usual checks and setup operations (quickReject, setupDraw, etc.) + // will be performed by the display list itself + if (displayList) { + displayList->replay(*this); + } +} + void OpenGLRenderer::drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint) { const float right = left + bitmap->width(); const float bottom = top + bitmap->height(); |