| 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   // Gives the GL internal format that should be used for calling CopyTexImage2D | 
|  | 66   // on the default framebuffer. | 
|  | 67   uint32_t GetCopyTextureInternalFormat(); | 
| 65 | 68 | 
| 66   // cc::ContextProvider implementation. | 69   // cc::ContextProvider implementation. | 
| 67   bool BindToCurrentThread() override; | 70   bool BindToCurrentThread() override; | 
| 68   void DetachFromThread() override; | 71   void DetachFromThread() override; | 
| 69   gpu::gles2::GLES2Interface* ContextGL() override; | 72   gpu::gles2::GLES2Interface* ContextGL() override; | 
| 70   gpu::ContextSupport* ContextSupport() override; | 73   gpu::ContextSupport* ContextSupport() override; | 
| 71   class GrContext* GrContext() override; | 74   class GrContext* GrContext() override; | 
| 72   void InvalidateGrContext(uint32_t state) override; | 75   void InvalidateGrContext(uint32_t state) override; | 
| 73   base::Lock* GetLock() override; | 76   base::Lock* GetLock() override; | 
| 74   gpu::Capabilities ContextCapabilities() override; | 77   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_; | 130   std::unique_ptr<gpu::gles2::GLES2Implementation> gles2_impl_; | 
| 128   std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; | 131   std::unique_ptr<gpu::gles2::GLES2TraceImplementation> trace_impl_; | 
| 129   std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 132   std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 
| 130 | 133 | 
| 131   LostContextCallback lost_context_callback_; | 134   LostContextCallback lost_context_callback_; | 
| 132 }; | 135 }; | 
| 133 | 136 | 
| 134 }  // namespace content | 137 }  // namespace content | 
| 135 | 138 | 
| 136 #endif  // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 139 #endif  // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ | 
| OLD | NEW | 
|---|