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 CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ |
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // cc::ContextProvider: | 48 // cc::ContextProvider: |
49 bool BindToCurrentThread() override; | 49 bool BindToCurrentThread() override; |
50 void DetachFromThread() override; | 50 void DetachFromThread() override; |
51 Capabilities ContextCapabilities() override; | 51 Capabilities ContextCapabilities() override; |
52 ::gpu::gles2::GLES2Interface* ContextGL() override; | 52 ::gpu::gles2::GLES2Interface* ContextGL() override; |
53 ::gpu::ContextSupport* ContextSupport() override; | 53 ::gpu::ContextSupport* ContextSupport() override; |
54 class GrContext* GrContext() override; | 54 class GrContext* GrContext() override; |
55 void InvalidateGrContext(uint32_t state) override; | 55 void InvalidateGrContext(uint32_t state) override; |
56 void SetupLock() override; | 56 void SetupLock() override; |
57 base::Lock* GetLock() override; | 57 base::Lock* GetLock() override; |
58 bool IsContextLost() override; | |
59 void VerifyContexts() override; | 58 void VerifyContexts() override; |
60 void DeleteCachedResources() override; | 59 void DeleteCachedResources() override; |
61 bool DestroyedOnMainThread() override; | 60 bool DestroyedOnMainThread() override; |
62 void SetLostContextCallback( | 61 void SetLostContextCallback( |
63 const LostContextCallback& lost_context_callback) override; | 62 const LostContextCallback& lost_context_callback) override; |
64 void SetMemoryPolicyChangedCallback( | 63 void SetMemoryPolicyChangedCallback( |
65 const MemoryPolicyChangedCallback& memory_policy_changed_callback) | 64 const MemoryPolicyChangedCallback& memory_policy_changed_callback) |
66 override; | 65 override; |
67 | 66 |
68 void OnLostContext(); | 67 void OnLostContext(); |
(...skipping 17 matching lines...) Expand all Loading... |
86 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; | 85 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; |
87 | 86 |
88 cc::ContextProvider::Capabilities capabilities_; | 87 cc::ContextProvider::Capabilities capabilities_; |
89 | 88 |
90 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); | 89 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); |
91 }; | 90 }; |
92 | 91 |
93 } // namespace content | 92 } // namespace content |
94 | 93 |
95 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ | 94 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ |
OLD | NEW |