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

Unified Diff: cc/trees/layer_tree_host_pixeltest_readback.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: Add comment 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: cc/trees/layer_tree_host_pixeltest_readback.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_readback.cc b/cc/trees/layer_tree_host_pixeltest_readback.cc
index a9bc6ceff1b6f04bfe9a03772ad2faf82f27dd27..729a9aa3b5d763f05f28fdd15cd6774c1c746769 100644
--- a/cc/trees/layer_tree_host_pixeltest_readback.cc
+++ b/cc/trees/layer_tree_host_pixeltest_readback.cc
@@ -69,6 +69,10 @@ class LayerTreeHostReadbackPixelTest : public LayerTreePixelTest {
ReadbackResultAsBitmap(CopyOutputResult::CreateBitmapResult(bitmap.Pass()));
}
+ virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
+ settings->max_bytes_pending_upload = 16 * 1024 * 1024;
+ }
+
gfx::Rect copy_subrect_;
};
@@ -474,6 +478,7 @@ class LayerTreeHostReadbackDeviceScalePixelTest
virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
// Cause the device scale factor to be inherited by contents scales.
settings->layer_transforms_should_scale_layer_contents = true;
+ settings->max_bytes_pending_upload = 16 * 1024 * 1024;
}
virtual void SetupTree() OVERRIDE {
@@ -639,6 +644,7 @@ class LayerTreeHostReadbackViaCompositeAndReadbackPixelTest
virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
// Cause the device scale factor to be inherited by contents scales.
settings->layer_transforms_should_scale_layer_contents = true;
+ settings->max_bytes_pending_upload = 16 * 1024 * 1024;
}
virtual void SetupTree() OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698