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

Unified 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: Set the limit in 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 side-by-side diff with in-line comments
Download patch
Index: cc/debug/test_web_graphics_context_3d.h
diff --git a/cc/debug/test_web_graphics_context_3d.h b/cc/debug/test_web_graphics_context_3d.h
index 3dfc7ed272fc22c8c7490fea1ff101cbfe2e84cc..bd6d6d701de1c53f9518b87e809bab0b855865ea 100644
--- a/cc/debug/test_web_graphics_context_3d.h
+++ b/cc/debug/test_web_graphics_context_3d.h
@@ -205,6 +205,9 @@ class CC_EXPORT TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
virtual WebKit::WebGLId NextImageId();
+ size_t transfer_buffer_memory_used_bytes() const;
reveman 2013/09/09 16:40:47 nit: GetMaxTransferBufferUsageBytes as this is no
kaanb 2013/09/09 18:20:43 Done.
+ void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
+
protected:
struct Buffer {
Buffer();
@@ -212,6 +215,7 @@ class CC_EXPORT TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
WebKit::WGC3Denum target;
scoped_ptr<uint8[]> pixels;
+ size_t size;
private:
DISALLOW_COPY_AND_ASSIGN(Buffer);

Powered by Google App Engine
This is Rietveld 408576698