| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 scoped_refptr<gfx::GLSurface> surface, | 34 scoped_refptr<gfx::GLSurface> surface, |
| 35 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); | 35 scoped_refptr<gpu::InProcessCommandBuffer::Service> service); |
| 36 ~AwRenderThreadContextProvider() override; | 36 ~AwRenderThreadContextProvider() override; |
| 37 | 37 |
| 38 // cc::ContextProvider: | 38 // cc::ContextProvider: |
| 39 bool BindToCurrentThread() override; | 39 bool BindToCurrentThread() override; |
| 40 Capabilities ContextCapabilities() override; | 40 Capabilities ContextCapabilities() override; |
| 41 gpu::gles2::GLES2Interface* ContextGL() override; | 41 gpu::gles2::GLES2Interface* ContextGL() override; |
| 42 gpu::ContextSupport* ContextSupport() override; | 42 gpu::ContextSupport* ContextSupport() override; |
| 43 class GrContext* GrContext() override; | 43 class GrContext* GrContext() override; |
| 44 void InvalidateGrContext(uint32_t state) override; |
| 44 void SetupLock() override; | 45 void SetupLock() override; |
| 45 base::Lock* GetLock() override; | 46 base::Lock* GetLock() override; |
| 46 bool IsContextLost() override; | 47 bool IsContextLost() override; |
| 47 void VerifyContexts() override; | 48 void VerifyContexts() override; |
| 48 void DeleteCachedResources() override; | 49 void DeleteCachedResources() override; |
| 49 bool DestroyedOnMainThread() override; | 50 bool DestroyedOnMainThread() override; |
| 50 void SetLostContextCallback( | 51 void SetLostContextCallback( |
| 51 const LostContextCallback& lost_context_callback) override; | 52 const LostContextCallback& lost_context_callback) override; |
| 52 void SetMemoryPolicyChangedCallback( | 53 void SetMemoryPolicyChangedCallback( |
| 53 const MemoryPolicyChangedCallback& memory_policy_changed_callback) | 54 const MemoryPolicyChangedCallback& memory_policy_changed_callback) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 67 bool destroyed_; | 68 bool destroyed_; |
| 68 | 69 |
| 69 base::Lock context_lock_; | 70 base::Lock context_lock_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider); | 72 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace android_webview | 75 } // namespace android_webview |
| 75 | 76 |
| 76 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ | 77 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ |
| OLD | NEW |