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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.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: s/max_bytes_pending_upload/max_transfer_buffer_usage_bytes/ 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_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 0c4fc352eb970af98e5aa15501e6382ac2f56abd..2b7df0b8ae0b63860457d2cf7bc59466df7cbb05 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -5,6 +5,7 @@
#include "cc/trees/layer_tree_host_impl.h"
#include <cmath>
+#include <limits>
#include "base/bind.h"
#include "base/command_line.h"
@@ -83,6 +84,8 @@ class LayerTreeHostImplTest : public testing::Test,
settings.minimum_occlusion_tracking_size = gfx::Size();
settings.impl_side_painting = true;
settings.solid_color_scrollbars = true;
+ settings.max_transfer_buffer_usage_bytes
+ = std::numeric_limits<size_t>::max();
danakj 2013/08/23 01:21:46 nit: = on prev line, and all the other places this
kaanb 2013/08/23 01:37:31 Done.
host_impl_ = LayerTreeHostImpl::Create(settings,
this,
@@ -371,6 +374,7 @@ TEST_F(LayerTreeHostImplTest, NotifyIfCanDrawChanged) {
TEST_F(LayerTreeHostImplTest, CanDrawIncompleteFrames) {
LayerTreeSettings settings;
settings.impl_side_painting = true;
+ settings.max_transfer_buffer_usage_bytes = std::numeric_limits<size_t>::max();
host_impl_ = LayerTreeHostImpl::Create(
settings, this, &proxy_, &stats_instrumentation_);
@@ -2850,6 +2854,8 @@ class LayerTreeHostImplViewportCoveredTest : public LayerTreeHostImplTest {
LayerTreeSettings settings;
settings.minimum_occlusion_tracking_size = gfx::Size();
settings.impl_side_painting = true;
+ settings.max_transfer_buffer_usage_bytes
+ = std::numeric_limits<size_t>::max();
host_impl_ = LayerTreeHostImpl::Create(
settings, this, &proxy_, &stats_instrumentation_);

Powered by Google App Engine
This is Rietveld 408576698