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

Side by Side Diff: cc/test/pixel_test_output_surface.cc

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/tree_synchronizer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/pixel_test_output_surface.h" 5 #include "cc/test/pixel_test_output_surface.h"
6 6
7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 PixelTestOutputSurface::PixelTestOutputSurface() { 11 PixelTestOutputSurface::PixelTestOutputSurface() {
12 scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl> 12 scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl>
13 context(new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl); 13 context(new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl);
14 context->Initialize(WebKit::WebGraphicsContext3D::Attributes(), NULL); 14 context->Initialize(WebKit::WebGraphicsContext3D::Attributes(), NULL);
15 context_ = context.PassAs<WebKit::WebGraphicsContext3D>(); 15 context_ = context.PassAs<WebKit::WebGraphicsContext3D>();
16 } 16 }
17 17
18 PixelTestOutputSurface::~PixelTestOutputSurface() { 18 PixelTestOutputSurface::~PixelTestOutputSurface() {
19 } 19 }
20 20
21 bool PixelTestOutputSurface::bindToClient( 21 bool PixelTestOutputSurface::BindToClient(OutputSurfaceClient*) {
22 WebKit::WebCompositorOutputSurfaceClient*) {
23 return context_->makeContextCurrent(); 22 return context_->makeContextCurrent();
24 } 23 }
25 24
26 const WebKit::WebCompositorOutputSurface::Capabilities& 25 const struct OutputSurface::Capabilities& PixelTestOutputSurface::Capabilities()
27 PixelTestOutputSurface::capabilities() const { 26 const {
28 static WebKit::WebCompositorOutputSurface::Capabilities capabilities; 27 static struct OutputSurface::Capabilities capabilities;
29 return capabilities; 28 return capabilities;
30 } 29 }
31 30
32 WebKit::WebGraphicsContext3D* PixelTestOutputSurface::context3D() const { 31 WebKit::WebGraphicsContext3D* PixelTestOutputSurface::Context3D() const {
33 return context_.get(); 32 return context_.get();
34 } 33 }
35 34
35 SoftwareOutputDevice* PixelTestOutputSurface::SoftwareDevice() const {
36 return NULL;
37 }
38
36 } // namespace cc 39 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/tree_synchronizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698