OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |