summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-06-12 17:13:21 -0700
committerChris Craik <ccraik@google.com>2015-06-12 17:13:23 -0700
commit9ac94b56b31c90a50edb5f643f8afa4fd40e52d8 (patch)
tree2012d9fd063f078abd78d31157127b43b014c0a8
parentf7b7ef98a673ea632c9b556418fbc638a54f31f2 (diff)
downloadandroid_frameworks_webview-9ac94b56b31c90a50edb5f643f8afa4fd40e52d8.tar.gz
android_frameworks_webview-9ac94b56b31c90a50edb5f643f8afa4fd40e52d8.tar.bz2
android_frameworks_webview-9ac94b56b31c90a50edb5f643f8afa4fd40e52d8.zip
Increment kAwDrawGLInfoVersion
bug:17322378 Change-Id: I18e2311277dc015a74683a3f0ccc2d84605ef68c
-rw-r--r--chromium/plat_support/draw_gl.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/chromium/plat_support/draw_gl.h b/chromium/plat_support/draw_gl.h
index a60346f..9478694 100644
--- a/chromium/plat_support/draw_gl.h
+++ b/chromium/plat_support/draw_gl.h
@@ -19,7 +19,18 @@
extern "C" {
#endif
-static const int kAwDrawGLInfoVersion = 1;
+
+// 1 is L/L MR1
+//
+// 2 starts at M, and added an imperfect workaround for complex clipping by
+// elevating the WebView into an FBO layer. If any transform, clip, or outline
+// clip occurs that would either likely use the stencil buffer for clipping, or
+// require shader based clipping in HWUI, the WebView is drawn into an FBO (if
+// it fits).
+// This is a temporary workaround for a lack of WebView support for stencil/
+// shader based round rect clipping, and should be removed when webview is
+// capable of supporting these clips internally when drawing.
+static const int kAwDrawGLInfoVersion = 2;
// Holds the information required to trigger an OpenGL drawing operation.
struct AwDrawGLInfo {