| 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_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
| 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.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 20 matching lines...) Expand all Loading... |
| 31 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, | 31 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, |
| 32 const std::string& debug_name); | 32 const std::string& debug_name); |
| 33 | 33 |
| 34 CommandBufferProxyImpl* GetCommandBufferProxy(); | 34 CommandBufferProxyImpl* GetCommandBufferProxy(); |
| 35 | 35 |
| 36 // cc_blink::ContextProviderWebContext implementation. | 36 // cc_blink::ContextProviderWebContext implementation. |
| 37 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; | 37 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; |
| 38 | 38 |
| 39 // cc::ContextProvider implementation. | 39 // cc::ContextProvider implementation. |
| 40 bool BindToCurrentThread() override; | 40 bool BindToCurrentThread() override; |
| 41 void DetachFromThread() override; |
| 41 gpu::gles2::GLES2Interface* ContextGL() override; | 42 gpu::gles2::GLES2Interface* ContextGL() override; |
| 42 gpu::ContextSupport* ContextSupport() override; | 43 gpu::ContextSupport* ContextSupport() override; |
| 43 class GrContext* GrContext() override; | 44 class GrContext* GrContext() override; |
| 44 void SetupLock() override; | 45 void SetupLock() override; |
| 45 base::Lock* GetLock() override; | 46 base::Lock* GetLock() override; |
| 46 Capabilities ContextCapabilities() override; | 47 Capabilities ContextCapabilities() override; |
| 47 bool IsContextLost() override; | 48 bool IsContextLost() override; |
| 48 void VerifyContexts() override; | 49 void VerifyContexts() override; |
| 49 void DeleteCachedResources() override; | 50 void DeleteCachedResources() override; |
| 50 bool DestroyedOnMainThread() override; | 51 bool DestroyedOnMainThread() override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 84 |
| 84 base::Lock context_lock_; | 85 base::Lock context_lock_; |
| 85 | 86 |
| 86 class LostContextCallbackProxy; | 87 class LostContextCallbackProxy; |
| 87 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; | 88 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace content | 91 } // namespace content |
| 91 | 92 |
| 92 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 93 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
| OLD | NEW |