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

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

Issue 19331002: Associate an id with the output surface to handle lost contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, tests Created 7 years, 5 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_guest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_guest.cc b/content/browser/renderer_host/render_widget_host_view_guest.cc
index bc41c6a92e8e3fdb8b5401c51a3e0adaf0aa6191..0f31b1673e32ef844d4c03f632708df514469424 100644
--- a/content/browser/renderer_host/render_widget_host_view_guest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_guest.cc
@@ -178,6 +178,7 @@ void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer(
}
void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
+ uint32 output_surface_id,
scoped_ptr<cc::CompositorFrame> frame) {
if (frame->software_frame_data) {
cc::SoftwareFrameData* frame_data = frame->software_frame_data.get();
@@ -202,6 +203,7 @@ void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
guest_->instance_id(),
*frame,
host_->GetRoutingID(),
+ output_surface_id,
host_->GetProcess()->GetID()));
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_guest.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698