Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2222)

Unified Diff: android_webview/native/aw_contents.cc

Issue 444173003: aw: Improve idle task scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handle failure Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index fdddf9f23fccfa20e67ca79ada7858264a0ca604..e9f86181ac885c369fb6c34b907f9e9601af76f3 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -362,11 +362,15 @@ void AwContents::DrawGL(AwDrawGLInfo* draw_info) {
: ScopedAppGLStateRestore::MODE_RESOURCE_MANAGEMENT);
ScopedAllowGL allow_gl;
+ if (draw_info->mode == AwDrawGLInfo::kModeProcess ||
+ draw_info->mode == AwDrawGLInfo::kModeProcessNoContext) {
hush (inactive) 2014/08/07 23:04:49 we talked in persion. Our assumption is that kMode
+ shared_renderer_state_.DidDrawGLProcess();
+ }
+
if (shared_renderer_state_.IsInsideHardwareRelease()) {
hardware_renderer_.reset();
// Flush the idle queue in tear down.
- DeferredGpuCommandService::GetInstance()->PerformIdleWork(true);
- DCHECK(!DeferredGpuCommandService::GetInstance()->HasIdleWork());
+ DeferredGpuCommandService::GetInstance()->PerformAllIdleWork();
return;
}

Powered by Google App Engine
This is Rietveld 408576698