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

Side by Side Diff: cc/test/fake_output_surface.h

Issue 11474050: cc: Unify namespaces for all test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/fake_layer_tree_host_client.cc ('k') | cc/test/fake_picture_layer_tiling_client.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 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/output_surface.h" 10 #include "cc/output_surface.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; 58 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
59 scoped_ptr<SoftwareOutputDevice> software_device_; 59 scoped_ptr<SoftwareOutputDevice> software_device_;
60 struct Capabilities capabilities_; 60 struct Capabilities capabilities_;
61 OutputSurfaceClient* client_; 61 OutputSurfaceClient* client_;
62 }; 62 };
63 63
64 static inline scoped_ptr<cc::OutputSurface> createFakeOutputSurface() 64 static inline scoped_ptr<cc::OutputSurface> createFakeOutputSurface()
65 { 65 {
66 return FakeOutputSurface::Create3d( 66 return FakeOutputSurface::Create3d(
67 WebKit::CompositorFakeWebGraphicsContext3D::create( 67 CompositorFakeWebGraphicsContext3D::create(
68 WebKit::WebGraphicsContext3D::Attributes()) 68 WebKit::WebGraphicsContext3D::Attributes())
69 .PassAs<WebKit::WebGraphicsContext3D>()) 69 .PassAs<WebKit::WebGraphicsContext3D>())
70 .PassAs<cc::OutputSurface>(); 70 .PassAs<cc::OutputSurface>();
71 } 71 }
72 72
73 } // namespace cc 73 } // namespace cc
74 74
75 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 75 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_client.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698