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

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

Issue 12717013: Add reference-counting for mailbox textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add optional 'pool' reference while textures are in mailbox Created 7 years, 9 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
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.cc ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 913e63c8f155e91b96a1204ee16cdd70141567d1..be0c39d4f6bf25886fab6e29af4d1a496334c483 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1563,6 +1563,7 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceRelease() {
compositor->AddObserver(this);
}
current_surface_ = NULL;
+ LOG(INFO) << "Releasing frontbuffer";
UpdateExternalTexture();
}
}
@@ -2469,7 +2470,8 @@ void RenderWidgetHostViewAura::OnLostResources() {
DCHECK(!shared_surface_handle_.is_null());
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
- factory->DestroySharedSurfaceHandle(shared_surface_handle_);
+ factory->DestroySharedSurfaceHandle(shared_surface_handle_,
+ host_->surface_id());
shared_surface_handle_ = factory->CreateSharedSurfaceHandle();
host_->CompositingSurfaceUpdated();
host_->ScheduleComposite();
@@ -2483,7 +2485,8 @@ RenderWidgetHostViewAura::~RenderWidgetHostViewAura() {
paint_observer_->OnViewDestroyed();
if (!shared_surface_handle_.is_null()) {
ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
- factory->DestroySharedSurfaceHandle(shared_surface_handle_);
+ factory->DestroySharedSurfaceHandle(shared_surface_handle_,
+ host_->surface_id());
factory->RemoveObserver(this);
}
window_observer_.reset();
« no previous file with comments | « content/browser/renderer_host/image_transport_factory.cc ('k') | content/common/gpu/gpu_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698