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

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: fix another namespace error 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..363ff628c6d6a4ccca5ed693c752cca49ff8172c 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
@@ -76,6 +76,10 @@ class WebGraphicsContext3DCommandBufferImpl
: public WebKit::WebGraphicsContext3D,
public base::SupportsWeakPtr<WebGraphicsContext3DCommandBufferImpl> {
public:
+ enum MappedMemoryReclaimLimit {
+ kNoLimit = 0,
+ };
+
WebGraphicsContext3DCommandBufferImpl(
int surface_id,
const GURL& active_url,
@@ -90,7 +94,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_reclaim_limit);
bool InitializeWithDefaultBufferSizes(const Attributes& attributes,
bool bind_generates_resources,
@@ -757,6 +762,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