diff options
| author | 2012-04-11 14:54:12 -0700 | |
|---|---|---|
| committer | 2012-04-11 14:54:12 -0700 | |
| commit | f57eb43b0038dc4e6bf8f77a610a1a369e7c5b91 (patch) | |
| tree | fd1a06ed54c4fb87c829eec33a806528372e18e3 /libs/hwui/OpenGLRenderer.cpp | |
| parent | cae80b2563bb25c8f39a18937ccca3e56c2f2c93 (diff) | |
| parent | 7b6a75872bd2df96a23453d31c2e2e7fcc373554 (diff) | |
Merge "Pass width/height parameters to webview"
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 2a908abba338..06928df6e393 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -249,6 +249,8 @@ status_t OpenGLRenderer::invokeFunctors(Rect& dirty) { info.clipRight = 0; info.clipBottom = 0; info.isLayer = false; + info.width = 0; + info.height = 0; memset(info.transform, 0, sizeof(float) * 16); size_t count = functors.size(); @@ -292,6 +294,8 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) { info.clipRight = clip.right; info.clipBottom = clip.bottom; info.isLayer = hasLayer(); + info.width = getSnapshot()->viewport.getWidth(); + info.height = getSnapshot()->height; getSnapshot()->transform->copyTo(&info.transform[0]); status_t result = (*functor)(DrawGlInfo::kModeDraw, &info); |