| 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 size_t min_transfer_buffer_size; | 83 size_t min_transfer_buffer_size; |
| 84 size_t max_transfer_buffer_size; | 84 size_t max_transfer_buffer_size; |
| 85 size_t mapped_memory_reclaim_limit; | 85 size_t mapped_memory_reclaim_limit; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 WebGraphicsContext3DCommandBufferImpl( | 88 WebGraphicsContext3DCommandBufferImpl( |
| 89 int surface_id, | 89 int surface_id, |
| 90 const GURL& active_url, | 90 const GURL& active_url, |
| 91 GpuChannelHost* host, | 91 GpuChannelHost* host, |
| 92 const base::WeakPtr<WebGraphicsContext3DSwapBuffersClient>& swap_client, | 92 const base::WeakPtr<WebGraphicsContext3DSwapBuffersClient>& swap_client, |
| 93 bool use_echo_for_swap_ack, |
| 93 const Attributes& attributes, | 94 const Attributes& attributes, |
| 94 bool bind_generates_resources, | 95 bool bind_generates_resources, |
| 95 const SharedMemoryLimits& limits); | 96 const SharedMemoryLimits& limits); |
| 96 | 97 |
| 97 virtual ~WebGraphicsContext3DCommandBufferImpl(); | 98 virtual ~WebGraphicsContext3DCommandBufferImpl(); |
| 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 |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 bool bind_generates_resources_; | 753 bool bind_generates_resources_; |
| 753 bool use_echo_for_swap_ack_; | 754 bool use_echo_for_swap_ack_; |
| 754 SharedMemoryLimits mem_limits_; | 755 SharedMemoryLimits mem_limits_; |
| 755 | 756 |
| 756 uint32_t flush_id_; | 757 uint32_t flush_id_; |
| 757 }; | 758 }; |
| 758 | 759 |
| 759 } // namespace content | 760 } // namespace content |
| 760 | 761 |
| 761 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 762 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |