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

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

Issue 22900018: cc: Set the mapped memory reclaim limit for the renderer compositor on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 7 years, 3 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
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool IsCommandBufferContextLost(); 124 bool IsCommandBufferContextLost();
125 125
126 // Create & initialize a WebGraphicsContext3DCommandBufferImpl. Return NULL 126 // Create & initialize a WebGraphicsContext3DCommandBufferImpl. Return NULL
127 // on any failure. 127 // on any failure.
128 static CONTENT_EXPORT WebGraphicsContext3DCommandBufferImpl* 128 static CONTENT_EXPORT WebGraphicsContext3DCommandBufferImpl*
129 CreateOffscreenContext( 129 CreateOffscreenContext(
130 GpuChannelHostFactory* factory, 130 GpuChannelHostFactory* factory,
131 const WebGraphicsContext3D::Attributes& attributes, 131 const WebGraphicsContext3D::Attributes& attributes,
132 const GURL& active_url); 132 const GURL& active_url);
133 133
134 size_t GetMappedMemoryLimit() {
135 return mapped_memory_limit_;
136 }
137
134 //---------------------------------------------------------------------- 138 //----------------------------------------------------------------------
135 // WebGraphicsContext3D methods 139 // WebGraphicsContext3D methods
136 140
137 // Must be called after initialize() and before any of the following methods. 141 // Must be called after initialize() and before any of the following methods.
138 // Permanently binds to the first calling thread. Returns false if the 142 // Permanently binds to the first calling thread. Returns false if the
139 // graphics context fails to create. Do not call from more than one thread. 143 // graphics context fails to create. Do not call from more than one thread.
140 virtual bool makeContextCurrent(); 144 virtual bool makeContextCurrent();
141 145
142 virtual int width(); 146 virtual int width();
143 virtual int height(); 147 virtual int height();
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 size_t command_buffer_size_; 765 size_t command_buffer_size_;
762 size_t start_transfer_buffer_size_; 766 size_t start_transfer_buffer_size_;
763 size_t min_transfer_buffer_size_; 767 size_t min_transfer_buffer_size_;
764 size_t max_transfer_buffer_size_; 768 size_t max_transfer_buffer_size_;
765 size_t mapped_memory_limit_; 769 size_t mapped_memory_limit_;
766 }; 770 };
767 771
768 } // namespace content 772 } // namespace content
769 773
770 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 774 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698