diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 22:06:01 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 22:06:01 +0000 |
commit | bb1e282c1c62409dcc92e277545c2048685f1ea6 (patch) | |
tree | 4547988f797be8031db359a23e48c6562a74abaf /cc/output/output_surface.h | |
parent | 028ddd6524e941a290b831fb56a9115dc5a95a4b (diff) | |
download | chromium_src-bb1e282c1c62409dcc92e277545c2048685f1ea6.zip chromium_src-bb1e282c1c62409dcc92e277545c2048685f1ea6.tar.gz chromium_src-bb1e282c1c62409dcc92e277545c2048685f1ea6.tar.bz2 |
Move swapcomplete callback into OutputSurface
Things like swap are concepts of an OutputSurface, not a context. Moving the
callbacks to OutputSurface will also reduce cc's knowledge of the context
guts and let us swap out the GL interface.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194394
Review URL: https://codereview.chromium.org/12545018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/output/output_surface.h')
-rw-r--r-- | cc/output/output_surface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h index 2e7a190..8ebf01c 100644 --- a/cc/output/output_surface.h +++ b/cc/output/output_surface.h @@ -20,6 +20,7 @@ namespace cc { class CompositorFrame; class OutputSurfaceClient; +class OutputSurfaceCallbacks; struct LatencyInfo; // Represents the output surface for a compositor. The compositor owns @@ -102,6 +103,8 @@ class CC_EXPORT OutputSurface { scoped_ptr<cc::SoftwareOutputDevice> software_device_; bool has_gl_discard_backbuffer_; + scoped_ptr<OutputSurfaceCallbacks> callbacks_; + private: DISALLOW_COPY_AND_ASSIGN(OutputSurface); }; |