summaryrefslogtreecommitdiff
path: root/libs/hwui/OpenGLDebugRenderer.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2010-09-26 18:40:37 -0700
committer Romain Guy <romainguy@google.com> 2010-09-26 18:40:37 -0700
commit4aa90573bbf86db0d33a3a790c5dbd0d93b95cfe (patch)
tree65cedf6266b9f40b7227334f9e50d8d86f2340bf /libs/hwui/OpenGLDebugRenderer.cpp
parentcc64c5dbfbf11f513f60a82ee590f62dfb9a1565 (diff)
Adding display lists to the GL renderer (checkpoint.)
Change-Id: Iaa49757600a53b39369dbb23f8c3feab282518e6
Diffstat (limited to 'libs/hwui/OpenGLDebugRenderer.cpp')
-rw-r--r--libs/hwui/OpenGLDebugRenderer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/hwui/OpenGLDebugRenderer.cpp b/libs/hwui/OpenGLDebugRenderer.cpp
index f5a428608ab9..4e5123e038a7 100644
--- a/libs/hwui/OpenGLDebugRenderer.cpp
+++ b/libs/hwui/OpenGLDebugRenderer.cpp
@@ -71,11 +71,13 @@ void OpenGLDebugRenderer::drawBitmap(SkBitmap* bitmap, float srcLeft, float srcT
dstLeft, dstTop, dstRight, dstBottom, paint);
}
-void OpenGLDebugRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch,
- float left, float top, float right, float bottom, const SkPaint* paint) {
+void OpenGLDebugRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
+ uint32_t width, uint32_t height, float left, float top, float right, float bottom,
+ const SkPaint* paint) {
mPrimitivesCount++;
StopWatch w("drawPatch");
- OpenGLRenderer::drawPatch(bitmap, patch, left, top, right, bottom, paint);
+ OpenGLRenderer::drawPatch(bitmap, xDivs, yDivs, width, height,
+ left, top, right, bottom, paint);
}
void OpenGLDebugRenderer::drawColor(int color, SkXfermode::Mode mode) {