| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 base::Lock lock_; | 116 base::Lock lock_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(ShareGroup); | 118 DISALLOW_COPY_AND_ASSIGN(ShareGroup); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 WebGraphicsContext3DCommandBufferImpl( | 121 WebGraphicsContext3DCommandBufferImpl( |
| 122 int surface_id, | 122 int surface_id, |
| 123 const GURL& active_url, | 123 const GURL& active_url, |
| 124 GpuChannelHost* host, | 124 GpuChannelHost* host, |
| 125 const Attributes& attributes, | 125 const Attributes& attributes, |
| 126 #if !defined(OS_CHROMEOS) |
| 126 bool bind_generates_resources, | 127 bool bind_generates_resources, |
| 128 #endif |
| 127 bool lose_context_when_out_of_memory, | 129 bool lose_context_when_out_of_memory, |
| 128 const SharedMemoryLimits& limits, | 130 const SharedMemoryLimits& limits, |
| 129 WebGraphicsContext3DCommandBufferImpl* share_context); | 131 WebGraphicsContext3DCommandBufferImpl* share_context); |
| 130 | 132 |
| 131 virtual ~WebGraphicsContext3DCommandBufferImpl(); | 133 virtual ~WebGraphicsContext3DCommandBufferImpl(); |
| 132 | 134 |
| 133 CommandBufferProxyImpl* GetCommandBufferProxy() { | 135 CommandBufferProxyImpl* GetCommandBufferProxy() { |
| 134 return command_buffer_.get(); | 136 return command_buffer_.get(); |
| 135 } | 137 } |
| 136 | 138 |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; | 764 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; |
| 763 | 765 |
| 764 bool initialized_; | 766 bool initialized_; |
| 765 scoped_ptr<CommandBufferProxyImpl> command_buffer_; | 767 scoped_ptr<CommandBufferProxyImpl> command_buffer_; |
| 766 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_; | 768 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_; |
| 767 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; | 769 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; |
| 768 gpu::gles2::GLES2Interface* gl_; | 770 gpu::gles2::GLES2Interface* gl_; |
| 769 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; | 771 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; |
| 770 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; | 772 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; |
| 771 Error last_error_; | 773 Error last_error_; |
| 774 #if !defined(OS_CHROMEOS) |
| 772 bool bind_generates_resources_; | 775 bool bind_generates_resources_; |
| 776 #endif |
| 773 bool lose_context_when_out_of_memory_; | 777 bool lose_context_when_out_of_memory_; |
| 774 SharedMemoryLimits mem_limits_; | 778 SharedMemoryLimits mem_limits_; |
| 775 | 779 |
| 776 uint32_t flush_id_; | 780 uint32_t flush_id_; |
| 777 scoped_refptr<ShareGroup> share_group_; | 781 scoped_refptr<ShareGroup> share_group_; |
| 778 }; | 782 }; |
| 779 | 783 |
| 780 } // namespace content | 784 } // namespace content |
| 781 | 785 |
| 782 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 786 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |