summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2014-05-02 01:36:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-02 01:36:24 +0000
commit238d071ac5396300cd4689c0fdd2e7cf357c83f8 (patch)
treee1ce1383327c55b5f41d2f86bec670710baadcce
parent6ceaf02e3b127e76616b204a0f3a703a7eb858db (diff)
parent482ea675538284d23f62094e9d2c587f31e38e96 (diff)
downloadwebview-idea133-weekly-release.tar.gz
Merge "Merge up to 24c4a3d7 from chromium-dev."idea133-weekly-release
-rw-r--r--chromium/java/com/android/webview/chromium/WebViewChromium.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/chromium/java/com/android/webview/chromium/WebViewChromium.java b/chromium/java/com/android/webview/chromium/WebViewChromium.java
index 1b2d98f..9049831 100644
--- a/chromium/java/com/android/webview/chromium/WebViewChromium.java
+++ b/chromium/java/com/android/webview/chromium/WebViewChromium.java
@@ -2107,12 +2107,26 @@ class WebViewChromium implements WebViewProvider,
mWebViewPrivate.setMeasuredDimension(measuredWidth, measuredHeight);
}
- @Override
public boolean requestDrawGL(Canvas canvas) {
+ return requestDrawGL(canvas, false);
+ }
+
+ // @Override
+ public boolean requestDrawGL(Canvas canvas, boolean waitForCompletion) {
if (mGLfunctor == null) {
mGLfunctor = new DrawGLFunctor(mAwContents.getAwDrawGLViewContext());
}
- return mGLfunctor.requestDrawGL((HardwareCanvas)canvas, mWebView.getViewRootImpl());
+ boolean result = mGLfunctor.requestDrawGL((HardwareCanvas)canvas,
+ mWebView.getViewRootImpl());
+ if (result && waitForCompletion) {
+ Runnable r = new Runnable() {
+ @Override
+ public void run() {
+ }
+ };
+ result = mWebView.executeHardwareAction(r);
+ }
+ return result;
}
// @Override