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

Unified Diff: content/browser/renderer_host/compositor_impl_android.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
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 359a6e1a9435d7c5aaaead8cc6158246449735cb..8c004f0ce189a2e8a204282344993e2eb90dff7b 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -52,7 +52,8 @@ class DirectOutputSurface : public cc::OutputSurface {
public:
DirectOutputSurface(
const scoped_refptr<cc::ContextProvider>& context_provider)
- : cc::OutputSurface(context_provider) {
+ : cc::OutputSurface(context_provider,
+ OutputSurface::kDefaultMaxTransferBufferUsageBytes) {
capabilities_.adjust_deadline_for_parent = false;
}
@@ -70,7 +71,8 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface {
OutputSurfaceWithoutParent(
const scoped_refptr<
content::ContextProviderCommandBuffer>& context_provider)
- : cc::OutputSurface(context_provider) {
+ : cc::OutputSurface(context_provider,
+ OutputSurface::kDefaultMaxTransferBufferUsageBytes) {
capabilities_.adjust_deadline_for_parent = false;
}
@@ -417,7 +419,10 @@ scoped_ptr<cc::OutputSurface> CompositorImpl::CreateOutputSurface(
if (!window_)
output_surface.reset(new DirectOutputSurface(context_provider));
else
- output_surface.reset(new cc::OutputSurface(context_provider));
+ output_surface.reset(
+ new cc::OutputSurface(
+ context_provider,
+ cc::OutputSurface::kDefaultMaxTransferBufferUsageBytes));
return output_surface.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698