Support nested display lists.

Change-Id: I3815a2832fc0f722c668ba8f51c5f177edb77c94
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index cad991d..9a6618b 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 @@
 // 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();