From 36e5ff130092eb95bf734c39d15e1ae48fad1581 Mon Sep 17 00:00:00 2001 From: "aelias@chromium.org" Date: Tue, 11 Jun 2013 12:19:29 +0000 Subject: Unified OutputSurface::SwapBuffers. This patch introduces a hard contract that CC will always call OutputSurface::SwapBuffers(), and OutputSurface will always respond with OutputSurfaceClient::OnSwapBuffersComplete(), in all rendering modes. I deleted the methods SendFrameToParentCompositor, PostSubBuffer, and OnSendFrameToParentCompositorAck, subsuming them into SwapBuffers. I also deleted all the settings and capabilities specifying which variant needed to be called. This should be a no-op for all graphics modes except for Android WebView, where it has the benefits of ensuring OnSwapBuffersComplete is called and that CompositorFrameMetadata is available even though no parent compositor exists. NOTRY=true BUG=237006 Review URL: https://chromiumcodereview.appspot.com/16304003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205501 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/output/gl_frame_data.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cc/output/gl_frame_data.h') diff --git a/cc/output/gl_frame_data.h b/cc/output/gl_frame_data.h index e6d227f..b8ec5ec 100644 --- a/cc/output/gl_frame_data.h +++ b/cc/output/gl_frame_data.h @@ -10,6 +10,7 @@ #include "base/basictypes.h" #include "cc/base/cc_export.h" #include "gpu/command_buffer/common/mailbox.h" +#include "ui/gfx/rect.h" #include "ui/gfx/size.h" namespace cc { @@ -22,6 +23,8 @@ class CC_EXPORT GLFrameData { gpu::Mailbox mailbox; uint32 sync_point; gfx::Size size; + gfx::Rect sub_buffer_rect; + bool partial_swap_allowed; }; } // namespace cc -- cgit v1.1