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

Side by Side Diff: cc/debug/test_web_graphics_context_3d.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: Fixed the unittest 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 void set_max_texture_size(int size) { max_texture_size_ = size; } 199 void set_max_texture_size(int size) { max_texture_size_ = size; }
200 200
201 static const WebKit::WebGLId kExternalTextureId; 201 static const WebKit::WebGLId kExternalTextureId;
202 virtual WebKit::WebGLId NextTextureId(); 202 virtual WebKit::WebGLId NextTextureId();
203 203
204 virtual WebKit::WebGLId NextBufferId(); 204 virtual WebKit::WebGLId NextBufferId();
205 205
206 virtual WebKit::WebGLId NextImageId(); 206 virtual WebKit::WebGLId NextImageId();
207 207
208 size_t transfer_buffer_memory_used_bytes() const {
209 return transfer_buffer_memory_used_bytes_;
210 }
211
208 protected: 212 protected:
209 struct Buffer { 213 struct Buffer {
210 Buffer(); 214 Buffer();
211 ~Buffer(); 215 ~Buffer();
212 216
213 WebKit::WGC3Denum target; 217 WebKit::WGC3Denum target;
214 scoped_ptr<uint8[]> pixels; 218 scoped_ptr<uint8[]> pixels;
215 219
216 private: 220 private:
217 DISALLOW_COPY_AND_ASSIGN(Buffer); 221 DISALLOW_COPY_AND_ASSIGN(Buffer);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 int max_texture_size_; 275 int max_texture_size_;
272 int width_; 276 int width_;
273 int height_; 277 int height_;
274 278
275 unsigned bound_buffer_; 279 unsigned bound_buffer_;
276 280
277 scoped_refptr<Namespace> namespace_; 281 scoped_refptr<Namespace> namespace_;
278 static Namespace* shared_namespace_; 282 static Namespace* shared_namespace_;
279 283
280 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 284 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
285 size_t transfer_buffer_memory_used_bytes_;
281 }; 286 };
282 287
283 } // namespace cc 288 } // namespace cc
284 289
285 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 290 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « no previous file | cc/debug/test_web_graphics_context_3d.cc » ('j') | cc/debug/test_web_graphics_context_3d.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698