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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a single switch with string values Created 6 years, 10 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 2333d9787a94d6d06f2edc198ad571a50c6c9b92..8688351194b3d124ebb0f75bb595dd7fe14c088b 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -5531,7 +5531,8 @@ TEST_F(LayerTreeHostImplTest, MemoryPolicy) {
gpu::MemoryAllocation::CUTOFF_ALLOW_NOTHING);
// GPU rasterization should be disabled by default.
- EXPECT_EQ(host_impl_->settings().gpu_rasterization, false);
+ EXPECT_EQ(LayerTreeSettings::CpuRasterization,
+ host_impl_->settings().rasterization_site);
host_impl_->SetVisible(true);
host_impl_->SetMemoryPolicy(policy1);
@@ -5549,7 +5550,7 @@ TEST_F(LayerTreeHostImplTest, MemoryPolicy) {
// Now enable GPU rasterization and test if we get required only cutoff,
// when visible.
LayerTreeSettings settings;
- settings.gpu_rasterization = true;
+ settings.rasterization_site = LayerTreeSettings::GpuRasterization;
host_impl_ = LayerTreeHostImpl::Create(
settings, this, &proxy_, &stats_instrumentation_, NULL, 0);

Powered by Google App Engine
This is Rietveld 408576698