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

Unified Diff: content/renderer/browser_plugin/browser_plugin_compositing_helper.h

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/renderer/browser_plugin/browser_plugin_compositing_helper.h
diff --git a/content/renderer/browser_plugin/browser_plugin_compositing_helper.h b/content/renderer/browser_plugin/browser_plugin_compositing_helper.h
index a52cbbe70f49f58411fb54e23ac0df8da3d8b1a6..268a9b462594e6061d30bad66a0bb87446cefd2b 100644
--- a/content/renderer/browser_plugin/browser_plugin_compositing_helper.h
+++ b/content/renderer/browser_plugin/browser_plugin_compositing_helper.h
@@ -51,6 +51,7 @@ class CONTENT_EXPORT BrowserPluginCompositingHelper :
float device_scale_factor);
void OnCompositorFrameSwapped(scoped_ptr<cc::CompositorFrame> frame,
int route_id,
+ uint32 output_surface_id,
int host_id);
void UpdateVisibility(bool);
protected:
@@ -69,6 +70,7 @@ class CONTENT_EXPORT BrowserPluginCompositingHelper :
SwapBuffersType type;
gfx::Size size;
int route_id;
+ uint32 output_surface_id;
int host_id;
unsigned software_frame_id;
base::SharedMemory* shared_memory;
@@ -86,6 +88,7 @@ class CONTENT_EXPORT BrowserPluginCompositingHelper :
int instance_id_;
int host_routing_id_;
int last_route_id_;
+ uint32 last_output_surface_id_;
int last_host_id_;
bool last_mailbox_valid_;
bool ack_pending_;

Powered by Google App Engine
This is Rietveld 408576698