OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // cc::ContextProvider: | 53 // cc::ContextProvider: |
54 bool BindToCurrentThread() override; | 54 bool BindToCurrentThread() override; |
55 Capabilities ContextCapabilities() override; | 55 Capabilities ContextCapabilities() override; |
56 gpu::gles2::GLES2Interface* ContextGL() override; | 56 gpu::gles2::GLES2Interface* ContextGL() override; |
57 gpu::ContextSupport* ContextSupport() override; | 57 gpu::ContextSupport* ContextSupport() override; |
58 class GrContext* GrContext() override; | 58 class GrContext* GrContext() override; |
59 void InvalidateGrContext(uint32_t state) override; | 59 void InvalidateGrContext(uint32_t state) override; |
60 void SetupLock() override; | 60 void SetupLock() override; |
61 base::Lock* GetLock() override; | 61 base::Lock* GetLock() override; |
62 bool IsContextLost() override; | |
63 void VerifyContexts() override; | 62 void VerifyContexts() override; |
64 void DeleteCachedResources() override; | 63 void DeleteCachedResources() override; |
65 bool DestroyedOnMainThread() override; | 64 bool DestroyedOnMainThread() override; |
66 void SetLostContextCallback( | 65 void SetLostContextCallback( |
67 const LostContextCallback& lost_context_callback) override; | 66 const LostContextCallback& lost_context_callback) override; |
68 void SetMemoryPolicyChangedCallback( | 67 void SetMemoryPolicyChangedCallback( |
69 const MemoryPolicyChangedCallback& memory_policy_changed_callback) | 68 const MemoryPolicyChangedCallback& memory_policy_changed_callback) |
70 override; | 69 override; |
71 | 70 |
72 void OnLostContext(); | 71 void OnLostContext(); |
(...skipping 18 matching lines...) Expand all Loading... |
91 bool destroyed_; | 90 bool destroyed_; |
92 | 91 |
93 base::Lock context_lock_; | 92 base::Lock context_lock_; |
94 | 93 |
95 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); | 94 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); |
96 }; | 95 }; |
97 | 96 |
98 } // namespace ui | 97 } // namespace ui |
99 | 98 |
100 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ | 99 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ |
OLD | NEW |