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

Unified Diff: content/renderer/gpu/compositor_output_surface.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/gpu/compositor_output_surface.h
diff --git a/content/renderer/gpu/compositor_output_surface.h b/content/renderer/gpu/compositor_output_surface.h
index d7c2855a96f168c9c5279b98607bdfbfe602c164..ff598725e65decd7efb20b1ce3132df69c1b8139 100644
--- a/content/renderer/gpu/compositor_output_surface.h
+++ b/content/renderer/gpu/compositor_output_surface.h
@@ -44,6 +44,7 @@ class CompositorOutputSurface
base::TaskRunner* target_task_runner);
CompositorOutputSurface(int32 routing_id,
+ uint32 output_surface_id,
WebGraphicsContext3DCommandBufferImpl* context3d,
cc::SoftwareOutputDevice* software,
bool use_swap_compositor_frame_message);
@@ -61,7 +62,9 @@ class CompositorOutputSurface
virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE;
protected:
- virtual void OnSwapAck(const cc::CompositorFrameAck& ack);
+ virtual void OnSwapAck(uint32 output_surface_id,
+ const cc::CompositorFrameAck& ack);
+ uint32 output_surface_id_;
private:
class CompositorOutputSurfaceProxy :

Powered by Google App Engine
This is Rietveld 408576698