| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 83       const base::WeakPtr<WebGraphicsContext3DSwapBuffersClient>& swap_client); | 83       const base::WeakPtr<WebGraphicsContext3DSwapBuffersClient>& swap_client); | 
| 84 | 84 | 
| 85   virtual ~WebGraphicsContext3DCommandBufferImpl(); | 85   virtual ~WebGraphicsContext3DCommandBufferImpl(); | 
| 86 | 86 | 
| 87   bool Initialize(const Attributes& attributes, | 87   bool Initialize(const Attributes& attributes, | 
| 88                   bool bind_generates_resources, | 88                   bool bind_generates_resources, | 
| 89                   CauseForGpuLaunch cause, | 89                   CauseForGpuLaunch cause, | 
| 90                   size_t command_buffer_size, | 90                   size_t command_buffer_size, | 
| 91                   size_t start_transfer_buffer_size, | 91                   size_t start_transfer_buffer_size, | 
| 92                   size_t min_transfer_buffer_size, | 92                   size_t min_transfer_buffer_size, | 
| 93                   size_t max_transfer_buffer_size); | 93                   size_t max_transfer_buffer_size, | 
|  | 94                   size_t mapped_memory_limit); | 
| 94 | 95 | 
| 95   bool InitializeWithDefaultBufferSizes(const Attributes& attributes, | 96   bool InitializeWithDefaultBufferSizes(const Attributes& attributes, | 
| 96                                         bool bind_generates_resources, | 97                                         bool bind_generates_resources, | 
| 97                                         CauseForGpuLaunch cause); | 98                                         CauseForGpuLaunch cause); | 
| 98 | 99 | 
| 99   // The following 3 IDs let one uniquely identify this context. | 100   // The following 3 IDs let one uniquely identify this context. | 
| 100   // Gets the GPU process ID for this context. | 101   // Gets the GPU process ID for this context. | 
| 101   int GetGPUProcessID(); | 102   int GetGPUProcessID(); | 
| 102 | 103 | 
| 103   // Gets the channel ID for this context. | 104   // Gets the channel ID for this context. | 
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 750   scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; | 751   scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; | 
| 751   scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; | 752   scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; | 
| 752   Error last_error_; | 753   Error last_error_; | 
| 753   int frame_number_; | 754   int frame_number_; | 
| 754   bool bind_generates_resources_; | 755   bool bind_generates_resources_; | 
| 755   bool use_echo_for_swap_ack_; | 756   bool use_echo_for_swap_ack_; | 
| 756   size_t command_buffer_size_; | 757   size_t command_buffer_size_; | 
| 757   size_t start_transfer_buffer_size_; | 758   size_t start_transfer_buffer_size_; | 
| 758   size_t min_transfer_buffer_size_; | 759   size_t min_transfer_buffer_size_; | 
| 759   size_t max_transfer_buffer_size_; | 760   size_t max_transfer_buffer_size_; | 
|  | 761   size_t mapped_memory_limit_; | 
| 760 }; | 762 }; | 
| 761 | 763 | 
| 762 }  // namespace content | 764 }  // namespace content | 
| 763 | 765 | 
| 764 #endif  // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 766 #endif  // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 
| OLD | NEW | 
|---|