| 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 <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <set> | 10 #include <set> | 
| 11 #include <vector> | 11 #include <vector> | 
| 12 | 12 | 
| 13 #include "base/macros.h" | 13 #include "base/macros.h" | 
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" | 
| 15 #include "gpu/command_buffer/client/context_support.h" | 15 #include "gpu/command_buffer/client/context_support.h" | 
| 16 | 16 | 
| 17 namespace gfx { | 17 namespace gfx { | 
| 18 class Rect; | 18 class Rect; | 
| 19 class RectF; | 19 class RectF; | 
| 20 } | 20 } | 
| 21 | 21 | 
| 22 namespace cc { | 22 namespace cc { | 
| 23 | 23 | 
| 24 class TestContextSupport : public gpu::ContextSupport { | 24 class TestContextSupport : public gpu::ContextSupport { | 
| 25  public: | 25  public: | 
| 26   TestContextSupport(); | 26   TestContextSupport(); | 
| 27   ~TestContextSupport() override; | 27   ~TestContextSupport() override; | 
| 28 | 28 | 
| 29   // gpu::ContextSupport implementation. | 29   // gpu::ContextSupport implementation. | 
|  | 30   void EnsureWorkVisibleAsync() override; | 
| 30   void SignalSyncToken(const gpu::SyncToken& sync_token, | 31   void SignalSyncToken(const gpu::SyncToken& sync_token, | 
| 31                        const base::Closure& callback) override; | 32                        const base::Closure& callback) override; | 
| 32   bool IsSyncTokenSignaled(const gpu::SyncToken& sync_token) override; | 33   bool IsSyncTokenSignaled(const gpu::SyncToken& sync_token) override; | 
| 33   void SignalQuery(uint32_t query, const base::Closure& callback) override; | 34   void SignalQuery(uint32_t query, const base::Closure& callback) override; | 
| 34   void SetAggressivelyFreeResources(bool aggressively_free_resources) override; | 35   void SetAggressivelyFreeResources(bool aggressively_free_resources) override; | 
| 35   void Swap() override; | 36   void Swap() override; | 
| 36   void SwapWithBounds(const std::vector<gfx::Rect>& rects) override; | 37   void SwapWithBounds(const std::vector<gfx::Rect>& rects) override; | 
| 37   void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 38   void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 
| 38   void CommitOverlayPlanes() override; | 39   void CommitOverlayPlanes() override; | 
| 39   void ScheduleOverlayPlane(int plane_z_order, | 40   void ScheduleOverlayPlane(int plane_z_order, | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 70   bool out_of_order_callbacks_; | 71   bool out_of_order_callbacks_; | 
| 71 | 72 | 
| 72   base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 73   base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 
| 73 | 74 | 
| 74   DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 75   DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 
| 75 }; | 76 }; | 
| 76 | 77 | 
| 77 }  // namespace cc | 78 }  // namespace cc | 
| 78 | 79 | 
| 79 #endif  // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 80 #endif  // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 
| OLD | NEW | 
|---|