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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 23130004: Enforce a memory limit on MappedMemoryManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More code review feedback incorporated Created 7 years, 4 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: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
index c9f2368f31906bc891018765c17260037d63baf9..9321d29ab47e8eeb0b1aed567f05e9f7cfb32150 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
@@ -90,7 +90,8 @@ class WebGraphicsContext3DCommandBufferImpl
size_t command_buffer_size,
size_t start_transfer_buffer_size,
size_t min_transfer_buffer_size,
- size_t max_transfer_buffer_size);
+ size_t max_transfer_buffer_size,
+ size_t mapped_memory_limit);
bool InitializeWithDefaultBufferSizes(const Attributes& attributes,
bool bind_generates_resources,
@@ -757,6 +758,7 @@ class WebGraphicsContext3DCommandBufferImpl
size_t start_transfer_buffer_size_;
size_t min_transfer_buffer_size_;
size_t max_transfer_buffer_size_;
+ size_t mapped_memory_limit_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698