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_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 // Implementation of cc::ContextProvider that provides a | 26 // Implementation of cc::ContextProvider that provides a |
27 // WebGraphicsContext3DCommandBufferImpl context and a GrContext. | 27 // WebGraphicsContext3DCommandBufferImpl context and a GrContext. |
28 class CONTENT_EXPORT ContextProviderCommandBuffer | 28 class CONTENT_EXPORT ContextProviderCommandBuffer |
29 : NON_EXPORTED_BASE(public cc_blink::ContextProviderWebContext) { | 29 : NON_EXPORTED_BASE(public cc_blink::ContextProviderWebContext) { |
30 public: | 30 public: |
31 static scoped_refptr<ContextProviderCommandBuffer> Create( | 31 static scoped_refptr<ContextProviderCommandBuffer> Create( |
32 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, | 32 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, |
33 CommandBufferContextType type); | 33 CommandBufferContextType type); |
34 | 34 |
35 CommandBufferProxyImpl* GetCommandBufferProxy(); | 35 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); |
36 | 36 |
37 // cc_blink::ContextProviderWebContext implementation. | 37 // cc_blink::ContextProviderWebContext implementation. |
38 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; | 38 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; |
39 | 39 |
40 // cc::ContextProvider implementation. | 40 // cc::ContextProvider implementation. |
41 bool BindToCurrentThread() override; | 41 bool BindToCurrentThread() override; |
42 void DetachFromThread() override; | 42 void DetachFromThread() override; |
43 gpu::gles2::GLES2Interface* ContextGL() override; | 43 gpu::gles2::GLES2Interface* ContextGL() override; |
44 gpu::ContextSupport* ContextSupport() override; | 44 gpu::ContextSupport* ContextSupport() override; |
45 class GrContext* GrContext() override; | 45 class GrContext* GrContext() override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 base::Lock context_lock_; | 78 base::Lock context_lock_; |
79 | 79 |
80 class LostContextCallbackProxy; | 80 class LostContextCallbackProxy; |
81 friend class LostContextCallbackProxy; | 81 friend class LostContextCallbackProxy; |
82 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; | 82 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace content | 85 } // namespace content |
86 | 86 |
87 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 87 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
OLD | NEW |