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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor cleanup Created 8 years, 8 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: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 8962d028c19ee843196fa847eb9509fff9fa2914..adea7725231d5e006118b813a8e1f4ed7c876742 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -557,13 +557,16 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceNew(
image_transport_clients_[*surface_handle] = surface;
}
-void RenderWidgetHostViewAura::AcceleratedSurfaceRelease(
+bool RenderWidgetHostViewAura::AcceleratedSurfaceRelease(
uint64 surface_handle) {
+ if (host_->IsVisible() && current_surface_ == surface_handle)
+ return false;
if (current_surface_ == surface_handle) {
current_surface_ = 0;
UpdateExternalTexture();
}
image_transport_clients_.erase(surface_handle);
+ return true;
}
void RenderWidgetHostViewAura::SetBackground(const SkBitmap& background) {

Powered by Google App Engine
This is Rietveld 408576698