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

Unified Diff: ui/compositor/compositor.cc

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: Move max_transfer_buffer_usage_bytes to OutputSurface::Capabilities 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
« cc/output/output_surface.h ('K') | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index b6b15f4b3863fbdb74b21ea0ad2ec72f0978bdce..c843272e2e8f7b14eb8a6477664ed835c7e39173 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -125,7 +125,9 @@ scoped_ptr<cc::OutputSurface> DefaultContextFactory::CreateOutputSurface(
scoped_refptr<ContextProviderInProcess> context_provider =
ContextProviderInProcess::Create(context3d.Pass());
- return make_scoped_ptr(new cc::OutputSurface(context_provider));
+ return make_scoped_ptr(new cc::OutputSurface(
+ context_provider,
+ cc::OutputSurface::kDefaultMaxTransferBufferUsageBytes));
}
scoped_refptr<Reflector> DefaultContextFactory::CreateReflector(
@@ -173,7 +175,9 @@ TestContextFactory::~TestContextFactory() {}
scoped_ptr<cc::OutputSurface> TestContextFactory::CreateOutputSurface(
Compositor* compositor) {
return make_scoped_ptr(
- new cc::OutputSurface(cc::TestContextProvider::Create()));
+ new cc::OutputSurface(
+ cc::TestContextProvider::Create(),
+ cc::OutputSurface::kDefaultMaxTransferBufferUsageBytes));
}
scoped_refptr<Reflector> TestContextFactory::CreateReflector(
« cc/output/output_surface.h ('K') | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698