diff options
author | 2010-07-07 17:57:12 -0700 | |
---|---|---|
committer | 2010-07-07 17:57:12 -0700 | |
commit | 132f22590a3cd27ce15a705bdb481675e8fd02bc (patch) | |
tree | 48aff4e39f0ece98f0d8e42ad26153c00f4fa0ff /libs/hwui/OpenGLRenderer.cpp | |
parent | 9bf225ef7b82b5eacee1907155a8a8bbb6aa7f42 (diff) | |
parent | deba785f122a47915756ffd991f5540d952cf937 (diff) |
Merge "Add support to draw 9patches in OpenGL."
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 304af2eeeecd..ae7719c45cd5 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -35,7 +35,7 @@ namespace uirenderer { /////////////////////////////////////////////////////////////////////////////// // Debug -#define DEBUG_LAYERS 1 +#define DEBUG_LAYERS 0 // These properties are defined in mega-bytes #define PROPERTY_TEXTURE_CACHE_SIZE "ro.hwui.texture_cache_size" @@ -521,6 +521,12 @@ void OpenGLRenderer::drawBitmap(SkBitmap* bitmap, resetDrawTextureTexCoords(0.0f, 0.0f, 1.0f, 1.0f); } +void OpenGLRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, + float left, float top, float right, float bottom, const SkPaint* paint) { + // TODO: Implement + LOGD("Draw 9patch, paddingLeft=%d", patch->paddingLeft); +} + void OpenGLRenderer::drawColor(int color, SkXfermode::Mode mode) { const Rect& clip = mSnapshot->clipRect; drawColorRect(clip.left, clip.top, clip.right, clip.bottom, color, mode); |