| 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) {
|
| + 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;
|
| }
|
|
|
|
|