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

Unified Diff: content/renderer/gpu/compositor_output_surface.h

Issue 12614013: Plumb cc::LatencyInfo through command buffer and output surface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 255c61865d849155a0627ba05e9768fdcf5ac2eb..683744f3484f8d5a0566c8d966741f398450ecef 100644
--- a/content/renderer/gpu/compositor_output_surface.h
+++ b/content/renderer/gpu/compositor_output_surface.h
@@ -29,6 +29,8 @@ class CompositorFrameAck;
namespace content {
+class WebGraphicsContext3DCommandBufferImpl;
+
// This class can be created only on the main thread, but then becomes pinned
// to a fixed thread when bindToClient is called.
class CompositorOutputSurface
@@ -39,13 +41,15 @@ class CompositorOutputSurface
base::TaskRunner* target_task_runner);
CompositorOutputSurface(int32 routing_id,
- WebKit::WebGraphicsContext3D* context3d,
+ WebGraphicsContext3DCommandBufferImpl* context3d,
cc::SoftwareOutputDevice* software);
virtual ~CompositorOutputSurface();
// cc::OutputSurface implementation.
virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE;
+ virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE;
+ virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE;
// TODO(epenner): This seems out of place here and would be a better fit
// int CompositorThread after it is fully refactored (http://crbug/170828)

Powered by Google App Engine
This is Rietveld 408576698