| 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 <memory> | 10 #include <memory> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const GURL& active_url, | 55 const GURL& active_url, |
| 56 gl::GpuPreference gpu_preference, | 56 gl::GpuPreference gpu_preference, |
| 57 bool automatic_flushes, | 57 bool automatic_flushes, |
| 58 bool support_locking, | 58 bool support_locking, |
| 59 const gpu::SharedMemoryLimits& memory_limits, | 59 const gpu::SharedMemoryLimits& memory_limits, |
| 60 const gpu::gles2::ContextCreationAttribHelper& attributes, | 60 const gpu::gles2::ContextCreationAttribHelper& attributes, |
| 61 ContextProviderCommandBuffer* shared_context_provider, | 61 ContextProviderCommandBuffer* shared_context_provider, |
| 62 command_buffer_metrics::ContextType type); | 62 command_buffer_metrics::ContextType type); |
| 63 | 63 |
| 64 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); | 64 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); |
| 65 uint32_t GetCopyTextureInternalFormat(); |
| 65 | 66 |
| 66 // cc::ContextProvider implementation. | 67 // cc::ContextProvider implementation. |
| 67 bool BindToCurrentThread() override; | 68 bool BindToCurrentThread() override; |
| 68 void DetachFromThread() override; | 69 void DetachFromThread() override; |
| 69 gpu::gles2::GLES2Interface* ContextGL() override; | 70 gpu::gles2::GLES2Interface* ContextGL() override; |
| 70 gpu::ContextSupport* ContextSupport() override; | 71 gpu::ContextSupport* ContextSupport() override; |
| 71 class GrContext* GrContext() override; | 72 class GrContext* GrContext() override; |
| 72 void InvalidateGrContext(uint32_t state) override; | 73 void InvalidateGrContext(uint32_t state) override; |
| 73 base::Lock* GetLock() override; | 74 base::Lock* GetLock() override; |
| 74 gpu::Capabilities ContextCapabilities() override; | 75 gpu::Capabilities ContextCapabilities() override; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 std::unique_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; | 128 std::unique_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; |
| 128 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; | 129 std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; |
| 129 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 130 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; |
| 130 | 131 |
| 131 LostContextCallback lost_context_callback_; | 132 LostContextCallback lost_context_callback_; |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace content | 135 } // namespace content |
| 135 | 136 |
| 136 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 137 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ |
| OLD | NEW |