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/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/output/begin_frame_args.h" | 9 #include "cc/output/begin_frame_args.h" |
10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
11 #include "cc/output/output_surface.h" | 11 #include "cc/output/output_surface.h" |
12 #include "cc/output/software_output_device.h" | 12 #include "cc/output/software_output_device.h" |
13 #include "cc/test/test_web_graphics_context_3d.h" | 13 #include "cc/test/test_web_graphics_context_3d.h" |
14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 class FakeOutputSurface : public OutputSurface { | 18 class FakeOutputSurface : public OutputSurface { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 static inline scoped_ptr<cc::OutputSurface> CreateFakeOutputSurface() { | 109 static inline scoped_ptr<cc::OutputSurface> CreateFakeOutputSurface() { |
110 return FakeOutputSurface::Create3d( | 110 return FakeOutputSurface::Create3d( |
111 TestWebGraphicsContext3D::Create( | 111 TestWebGraphicsContext3D::Create( |
112 WebKit::WebGraphicsContext3D::Attributes()) | 112 WebKit::WebGraphicsContext3D::Attributes()) |
113 .PassAs<WebKit::WebGraphicsContext3D>()).PassAs<cc::OutputSurface>(); | 113 .PassAs<WebKit::WebGraphicsContext3D>()).PassAs<cc::OutputSurface>(); |
114 } | 114 } |
115 | 115 |
116 } // namespace cc | 116 } // namespace cc |
117 | 117 |
118 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 118 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
OLD | NEW |