From 7b6a75872bd2df96a23453d31c2e2e7fcc373554 Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Wed, 11 Apr 2012 14:32:02 -0700 Subject: 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 --- include/private/hwui/DrawGlInfo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/private') 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; -- cgit v1.1