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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace gles2 { | 37 namespace gles2 { |
38 class GLES2CmdHelper; | 38 class GLES2CmdHelper; |
39 class GLES2Implementation; | 39 class GLES2Implementation; |
40 class GLES2Interface; | 40 class GLES2Interface; |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 namespace content { | 44 namespace content { |
45 | 45 |
46 const size_t kDefaultCommandBufferSize = 1024 * 1024; | |
47 const size_t kDefaultStartTransferBufferSize = 1 * 1024 * 1024; | |
48 const size_t kDefaultMinTransferBufferSize = 1 * 256 * 1024; | |
49 const size_t kDefaultMaxTransferBufferSize = 16 * 1024 * 1024; | |
50 | |
51 class WebGraphicsContext3DCommandBufferImpl | 46 class WebGraphicsContext3DCommandBufferImpl |
52 : public gpu_blink::WebGraphicsContext3DImpl { | 47 : public gpu_blink::WebGraphicsContext3DImpl { |
53 public: | 48 public: |
54 enum MappedMemoryReclaimLimit { | 49 enum MappedMemoryReclaimLimit { |
55 kNoLimit = 0, | 50 kNoLimit = 0, |
56 }; | 51 }; |
57 | 52 |
58 class ShareGroup : public base::RefCountedThreadSafe<ShareGroup> { | 53 class ShareGroup : public base::RefCountedThreadSafe<ShareGroup> { |
59 public: | 54 public: |
60 ShareGroup(); | 55 ShareGroup(); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 178 |
184 // Member variables should appear before the WeakPtrFactory, to ensure | 179 // Member variables should appear before the WeakPtrFactory, to ensure |
185 // that any WeakPtrs to Controller are invalidated before its members | 180 // that any WeakPtrs to Controller are invalidated before its members |
186 // variable's destructors are executed, rendering them invalid. | 181 // variable's destructors are executed, rendering them invalid. |
187 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; | 182 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; |
188 }; | 183 }; |
189 | 184 |
190 } // namespace content | 185 } // namespace content |
191 | 186 |
192 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 187 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |