diff options
Diffstat (limited to 'android_webview/native/aw_contents.cc')
-rw-r--r-- | android_webview/native/aw_contents.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc index 5cecb00..fdddf9f 100644 --- a/android_webview/native/aw_contents.cc +++ b/android_webview/native/aw_contents.cc @@ -364,6 +364,9 @@ void AwContents::DrawGL(AwDrawGLInfo* draw_info) { if (shared_renderer_state_.IsInsideHardwareRelease()) { hardware_renderer_.reset(); + // Flush the idle queue in tear down. + DeferredGpuCommandService::GetInstance()->PerformIdleWork(true); + DCHECK(!DeferredGpuCommandService::GetInstance()->HasIdleWork()); return; } |