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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2898583002: color: Fix color not being reset between layout tests (Closed)
Patch Set: Review feedbakc Created 3 years, 7 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') | content/renderer/render_widget.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 962a513671ce9328520cac15bdb637f434f8400a..641d8a67e831d0e6d75b3e862bc9b7543e80c2cc 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -12468,5 +12468,18 @@ TEST_F(LayerTreeHostImplTest, CheckerImagingTileInvalidation) {
EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation()));
}
+TEST_F(LayerTreeHostImplTest, RasterColorSpaceNoColorCorrection) {
+ LayerTreeSettings settings = DefaultSettings();
+ CreateHostImpl(settings, CreateCompositorFrameSink());
+ EXPECT_FALSE(host_impl_->GetRasterColorSpace().IsValid());
+}
+
+TEST_F(LayerTreeHostImplTest, RasterColorSpace) {
+ LayerTreeSettings settings = DefaultSettings();
+ settings.enable_color_correct_rasterization = true;
+ CreateHostImpl(settings, CreateCompositorFrameSink());
+ EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB());
+}
+
} // namespace
} // namespace cc
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698