Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 1896223003: Move the mapped memory limit from the compositor to the GLHelper context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-limits
Patch Set: limit-android: comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698