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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 namespace content { | 36 namespace content { |
37 class GpuChannelHost; | 37 class GpuChannelHost; |
38 | 38 |
39 const size_t kDefaultCommandBufferSize = 1024 * 1024; | 39 const size_t kDefaultCommandBufferSize = 1024 * 1024; |
40 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024; | 40 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024; |
41 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024; | 41 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024; |
42 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024; | 42 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024; |
43 | 43 |
44 class WebGraphicsContext3DCommandBufferImpl | 44 class WebGraphicsContext3DCommandBufferImpl |
45 : public WebGraphicsContext3DImpl { | 45 : public webkit::gpu::WebGraphicsContext3DImpl { |
46 public: | 46 public: |
47 enum MappedMemoryReclaimLimit { | 47 enum MappedMemoryReclaimLimit { |
48 kNoLimit = 0, | 48 kNoLimit = 0, |
49 }; | 49 }; |
50 | 50 |
51 struct CONTENT_EXPORT SharedMemoryLimits { | 51 struct CONTENT_EXPORT SharedMemoryLimits { |
52 SharedMemoryLimits(); | 52 SharedMemoryLimits(); |
53 | 53 |
54 size_t command_buffer_size; | 54 size_t command_buffer_size; |
55 size_t start_transfer_buffer_size; | 55 size_t start_transfer_buffer_size; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; | 231 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; |
232 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; | 232 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; |
233 Error last_error_; | 233 Error last_error_; |
234 SharedMemoryLimits mem_limits_; | 234 SharedMemoryLimits mem_limits_; |
235 scoped_refptr<ShareGroup> share_group_; | 235 scoped_refptr<ShareGroup> share_group_; |
236 }; | 236 }; |
237 | 237 |
238 } // namespace content | 238 } // namespace content |
239 | 239 |
240 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 240 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |