summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2012-04-11 14:32:02 -0700
committerChet Haase <chet@google.com>2012-04-11 14:32:02 -0700
commit7b6a75872bd2df96a23453d31c2e2e7fcc373554 (patch)
tree4ef0ab122aa11dc7b039693cfce420b8be063996 /include
parentd1f3de40ba50f0a3c4545139ea57242612f52971 (diff)
downloadframeworks_base-7b6a75872bd2df96a23453d31c2e2e7fcc373554.zip
frameworks_base-7b6a75872bd2df96a23453d31c2e2e7fcc373554.tar.gz
frameworks_base-7b6a75872bd2df96a23453d31c2e2e7fcc373554.tar.bz2
Pass width/height parameters to webview
When webview draws into an fbo layer, it needs to know the size of that surface to create the rendering transform appropriately. This change copies in the current viewport size to the structure that is passed to the webview. Change-Id: I7160b0836d00834134c799c95a439cdc045e2035
Diffstat (limited to 'include')
-rw-r--r--include/private/hwui/DrawGlInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/private/hwui/DrawGlInfo.h b/include/private/hwui/DrawGlInfo.h
index 8028bf3..e33823e 100644
--- a/include/private/hwui/DrawGlInfo.h
+++ b/include/private/hwui/DrawGlInfo.h
@@ -31,6 +31,10 @@ struct DrawGlInfo {
int clipRight;
int clipBottom;
+ // Input: current width/height of destination surface
+ int width;
+ int height;
+
// Input: is the render target an FBO
bool isLayer;