diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-16 18:07:17 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-16 18:07:17 +0000 |
commit | b4a2939e0e9d4ad32d7ba21b2810620987ed3a50 (patch) | |
tree | 987304f9a58759733f6df914f98d25b7160de1d7 /cc/test/fake_output_surface.cc | |
parent | e55bb2e9371f0068d937cfde128339cc0d597b5a (diff) | |
download | chromium_src-b4a2939e0e9d4ad32d7ba21b2810620987ed3a50.zip chromium_src-b4a2939e0e9d4ad32d7ba21b2810620987ed3a50.tar.gz chromium_src-b4a2939e0e9d4ad32d7ba21b2810620987ed3a50.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.
Review URL: https://codereview.chromium.org/12545018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_output_surface.cc')
-rw-r--r-- | cc/test/fake_output_surface.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc index 6369f61..2fe4b5a 100644 --- a/cc/test/fake_output_surface.cc +++ b/cc/test/fake_output_surface.cc @@ -25,15 +25,6 @@ FakeOutputSurface::FakeOutputSurface( FakeOutputSurface::~FakeOutputSurface() {} -bool FakeOutputSurface::BindToClient( - cc::OutputSurfaceClient* client) { - DCHECK(client); - client_ = client; - if (!context3d_) - return true; - return context3d_->makeContextCurrent(); -} - void FakeOutputSurface::SendFrameToParentCompositor( CompositorFrame* frame) { frame->AssignTo(&last_sent_frame_); |