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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 189883009: Define a --force-gpu-rasterization flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add null check to render_view_impl.cc Created 6 years, 9 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1f6209e12bb7a92394543a764d74da9ecc7c96f2..426199938a067de40fe4727822995cd34f1c0ca6 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -5535,7 +5535,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);
@@ -5553,7 +5554,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);
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698