| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "cc/debug/test_context_provider.h" | |
| 12 #include "cc/debug/test_web_graphics_context_3d.h" | |
| 13 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
| 14 #include "cc/output/compositor_frame.h" | 12 #include "cc/output/compositor_frame.h" |
| 15 #include "cc/output/managed_memory_policy.h" | 13 #include "cc/output/managed_memory_policy.h" |
| 16 #include "cc/output/output_surface.h" | 14 #include "cc/output/output_surface.h" |
| 17 #include "cc/output/software_output_device.h" | 15 #include "cc/output/software_output_device.h" |
| 16 #include "cc/test/test_context_provider.h" |
| 17 #include "cc/test/test_web_graphics_context_3d.h" |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class FakeOutputSurface : public OutputSurface { | 21 class FakeOutputSurface : public OutputSurface { |
| 22 public: | 22 public: |
| 23 virtual ~FakeOutputSurface(); | 23 virtual ~FakeOutputSurface(); |
| 24 | 24 |
| 25 static scoped_ptr<FakeOutputSurface> Create3d() { | 25 static scoped_ptr<FakeOutputSurface> Create3d() { |
| 26 return make_scoped_ptr(new FakeOutputSurface( | 26 return make_scoped_ptr(new FakeOutputSurface( |
| 27 TestContextProvider::Create(), false)); | 27 TestContextProvider::Create(), false)); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 scoped_ptr<cc::ManagedMemoryPolicy> memory_policy_to_set_at_bind_; | 153 scoped_ptr<cc::ManagedMemoryPolicy> memory_policy_to_set_at_bind_; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 static inline scoped_ptr<OutputSurface> CreateFakeOutputSurface() { | 156 static inline scoped_ptr<OutputSurface> CreateFakeOutputSurface() { |
| 157 return FakeOutputSurface::Create3d().PassAs<OutputSurface>(); | 157 return FakeOutputSurface::Create3d().PassAs<OutputSurface>(); |
| 158 } | 158 } |
| 159 | 159 |
| 160 } // namespace cc | 160 } // namespace cc |
| 161 | 161 |
| 162 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 162 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |