forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have a common implementation of cc::OutputSurface instead of multiple…
… duplicated ones. Review URL: https://codereview.chromium.org/12041062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182345 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
skaslev@chromium.org
committed
Feb 13, 2013
1 parent
490ccaf
commit 79a1be5
Showing
31 changed files
with
199 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright (c) 2013 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "cc/output_surface.h" | ||
|
||
#include "base/logging.h" | ||
|
||
namespace cc { | ||
|
||
OutputSurface::OutputSurface( | ||
scoped_ptr<WebKit::WebGraphicsContext3D> context3d) | ||
: client_(NULL), | ||
context3d_(context3d.Pass()) { | ||
} | ||
|
||
OutputSurface::OutputSurface( | ||
scoped_ptr<cc::SoftwareOutputDevice> software_device) | ||
: client_(NULL), | ||
software_device_(software_device.Pass()) { | ||
} | ||
|
||
OutputSurface::OutputSurface( | ||
scoped_ptr<WebKit::WebGraphicsContext3D> context3d, | ||
scoped_ptr<cc::SoftwareOutputDevice> software_device) | ||
: client_(NULL), | ||
context3d_(context3d.Pass()), | ||
software_device_(software_device.Pass()) { | ||
} | ||
|
||
OutputSurface::~OutputSurface() { | ||
} | ||
|
||
bool OutputSurface::BindToClient( | ||
cc::OutputSurfaceClient* client) { | ||
DCHECK(client); | ||
client_ = client; | ||
if (!context3d_) | ||
return true; | ||
return context3d_->makeContextCurrent(); | ||
} | ||
|
||
void OutputSurface::SendFrameToParentCompositor(CompositorFrame*) { | ||
NOTIMPLEMENTED(); | ||
} | ||
|
||
} // namespace cc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.