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

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

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address piman@'s comments Created 7 years, 6 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/content_renderer.gypi ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7f13852311196dabab290fdad93e4772578a24be..d607abe90f7e961077b697c2f8728a36f5470c88 100644
--- a/content/renderer/gpu/compositor_output_surface.h
+++ b/content/renderer/gpu/compositor_output_surface.h
@@ -44,14 +44,13 @@ class CompositorOutputSurface
CompositorOutputSurface(int32 routing_id,
WebGraphicsContext3DCommandBufferImpl* context3d,
- cc::SoftwareOutputDevice* software);
+ cc::SoftwareOutputDevice* software,
+ bool swap_buffers_via_ipc);
piman 2013/06/10 23:30:06 nit: I would rename this parameter too...
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 ui::LatencyInfo&) OVERRIDE;
- virtual void SwapBuffers(const ui::LatencyInfo&) OVERRIDE;
+ virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
#if defined(OS_ANDROID)
virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
#endif
@@ -92,6 +91,8 @@ class CompositorOutputSurface
#endif
bool Send(IPC::Message* message);
+ bool use_swap_compositor_frame_message_;
+
scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_;
scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
scoped_refptr<IPC::SyncMessageFilter> message_sender_;
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698