| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_CONTEXT_SUPPORT_H_ | 5 #ifndef CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
| 6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "gpu/command_buffer/client/context_support.h" | 11 #include "gpu/command_buffer/client/context_support.h" |
| 12 | 12 |
| 13 namespace gfx { |
| 14 class Rect; |
| 15 class RectF; |
| 16 } |
| 17 |
| 13 namespace cc { | 18 namespace cc { |
| 14 | 19 |
| 15 class TestContextSupport : public gpu::ContextSupport { | 20 class TestContextSupport : public gpu::ContextSupport { |
| 16 public: | 21 public: |
| 17 TestContextSupport(); | 22 TestContextSupport(); |
| 18 ~TestContextSupport() override; | 23 ~TestContextSupport() override; |
| 19 | 24 |
| 20 // gpu::ContextSupport implementation. | 25 // gpu::ContextSupport implementation. |
| 21 void SignalSyncPoint(uint32 sync_point, | 26 void SignalSyncPoint(uint32 sync_point, |
| 22 const base::Closure& callback) override; | 27 const base::Closure& callback) override; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 ScheduleOverlayPlaneCallback schedule_overlay_plane_callback_; | 59 ScheduleOverlayPlaneCallback schedule_overlay_plane_callback_; |
| 55 | 60 |
| 56 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 61 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; |
| 57 | 62 |
| 58 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 63 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); |
| 59 }; | 64 }; |
| 60 | 65 |
| 61 } // namespace cc | 66 } // namespace cc |
| 62 | 67 |
| 63 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 68 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
| OLD | NEW |