| 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 14 matching lines...) Expand all Loading... |
| 25 // WebGraphicsContext3DCommandBufferImpl context and a GrContext. | 25 // WebGraphicsContext3DCommandBufferImpl context and a GrContext. |
| 26 class CONTENT_EXPORT ContextProviderCommandBuffer | 26 class CONTENT_EXPORT ContextProviderCommandBuffer |
| 27 : NON_EXPORTED_BASE(public cc::ContextProvider) { | 27 : NON_EXPORTED_BASE(public cc::ContextProvider) { |
| 28 public: | 28 public: |
| 29 static scoped_refptr<ContextProviderCommandBuffer> Create( | 29 static scoped_refptr<ContextProviderCommandBuffer> Create( |
| 30 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, | 30 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, |
| 31 const std::string& debug_name); | 31 const std::string& debug_name); |
| 32 | 32 |
| 33 virtual bool BindToCurrentThread() OVERRIDE; | 33 virtual bool BindToCurrentThread() OVERRIDE; |
| 34 virtual WebGraphicsContext3DCommandBufferImpl* Context3d() OVERRIDE; | 34 virtual WebGraphicsContext3DCommandBufferImpl* Context3d() OVERRIDE; |
| 35 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; |
| 35 virtual gpu::ContextSupport* ContextSupport() OVERRIDE; | 36 virtual gpu::ContextSupport* ContextSupport() OVERRIDE; |
| 36 virtual class GrContext* GrContext() OVERRIDE; | 37 virtual class GrContext* GrContext() OVERRIDE; |
| 37 virtual Capabilities ContextCapabilities() OVERRIDE; | 38 virtual Capabilities ContextCapabilities() OVERRIDE; |
| 38 virtual bool IsContextLost() OVERRIDE; | 39 virtual bool IsContextLost() OVERRIDE; |
| 39 virtual void VerifyContexts() OVERRIDE; | 40 virtual void VerifyContexts() OVERRIDE; |
| 40 virtual bool DestroyedOnMainThread() OVERRIDE; | 41 virtual bool DestroyedOnMainThread() OVERRIDE; |
| 41 virtual void SetLostContextCallback( | 42 virtual void SetLostContextCallback( |
| 42 const LostContextCallback& lost_context_callback) OVERRIDE; | 43 const LostContextCallback& lost_context_callback) OVERRIDE; |
| 43 virtual void SetSwapBuffersCompleteCallback( | 44 virtual void SetSwapBuffersCompleteCallback( |
| 44 const SwapBuffersCompleteCallback& swap_buffers_complete_callback) | 45 const SwapBuffersCompleteCallback& swap_buffers_complete_callback) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; | 87 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; |
| 87 | 88 |
| 88 class SwapBuffersCompleteCallbackProxy; | 89 class SwapBuffersCompleteCallbackProxy; |
| 89 scoped_ptr<SwapBuffersCompleteCallbackProxy> | 90 scoped_ptr<SwapBuffersCompleteCallbackProxy> |
| 90 swap_buffers_complete_callback_proxy_; | 91 swap_buffers_complete_callback_proxy_; |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace content | 94 } // namespace content |
| 94 | 95 |
| 95 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER | 96 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER |
| OLD | NEW |