diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-16 01:00:56 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-16 01:00:56 +0000 |
commit | 8217ca6dcb96650d299419ecd0ba72874ee018b0 (patch) | |
tree | 585192143058ecfd2616a717ed1bc7acf1b2c4c4 /android_webview | |
parent | 333bdc5c406b95012e0f74a67b233fb89fcf66f3 (diff) | |
download | chromium_src-8217ca6dcb96650d299419ecd0ba72874ee018b0.zip chromium_src-8217ca6dcb96650d299419ecd0ba72874ee018b0.tar.gz chromium_src-8217ca6dcb96650d299419ecd0ba72874ee018b0.tar.bz2 |
[Android WebView] Disable preemptive InitializeHwDraw
Currently we request a call RequestDrawGL when we are attached to the
a hardware view tree to enable hardware mode in case we get a hardware
draw. However, there are apps that attach a webview to a hardware tree
but never make hardware draw calls. In this case, a lot of resources are
wasted and it can cause rendering glitches in cases where we are still
not handling GL calls well.
BUG=internal b/9864710
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/19286009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211745 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r-- | android_webview/browser/in_process_view_renderer.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/android_webview/browser/in_process_view_renderer.cc b/android_webview/browser/in_process_view_renderer.cc index 8989f8a..1a32520 100644 --- a/android_webview/browser/in_process_view_renderer.cc +++ b/android_webview/browser/in_process_view_renderer.cc @@ -214,9 +214,6 @@ bool InProcessViewRenderer::OnDraw(jobject java_canvas, } void InProcessViewRenderer::DrawGL(AwDrawGLInfo* draw_info) { - if (!HardwareEnabled()) - return; - TRACE_EVENT0("android_webview", "InProcessViewRenderer::DrawGL"); DCHECK(visible_); @@ -445,8 +442,6 @@ void InProcessViewRenderer::OnAttachedToWindow(int width, int height) { attached_to_window_ = true; width_ = width; height_ = height; - if (compositor_ && !hardware_initialized_) - client_->RequestDrawGL(NULL); } void InProcessViewRenderer::OnDetachedFromWindow() { @@ -484,9 +479,6 @@ void InProcessViewRenderer::DidInitializeCompositor( compositor_ = compositor; hardware_initialized_ = false; hardware_failed_ = false; - - if (attached_to_window_) - client_->RequestDrawGL(NULL); } void InProcessViewRenderer::DidDestroyCompositor( |