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 "cc/compositor_frame.h" | 8 #include "cc/compositor_frame.h" |
9 #include "cc/output_surface.h" | 9 #include "cc/output_surface.h" |
10 #include "cc/test/fake_software_output_device.h" | 10 #include "cc/software_output_device.h" |
11 #include "cc/test/test_web_graphics_context_3d.h" | 11 #include "cc/test/test_web_graphics_context_3d.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class FakeOutputSurface : public OutputSurface { | 16 class FakeOutputSurface : public OutputSurface { |
17 public: | 17 public: |
18 virtual ~FakeOutputSurface(); | 18 virtual ~FakeOutputSurface(); |
19 | 19 |
20 static scoped_ptr<FakeOutputSurface> Create3d( | 20 static scoped_ptr<FakeOutputSurface> Create3d( |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 return FakeOutputSurface::Create3d( | 79 return FakeOutputSurface::Create3d( |
80 TestWebGraphicsContext3D::Create( | 80 TestWebGraphicsContext3D::Create( |
81 WebKit::WebGraphicsContext3D::Attributes()) | 81 WebKit::WebGraphicsContext3D::Attributes()) |
82 .PassAs<WebKit::WebGraphicsContext3D>()) | 82 .PassAs<WebKit::WebGraphicsContext3D>()) |
83 .PassAs<cc::OutputSurface>(); | 83 .PassAs<cc::OutputSurface>(); |
84 } | 84 } |
85 | 85 |
86 } // namespace cc | 86 } // namespace cc |
87 | 87 |
88 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 88 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
OLD | NEW |