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

Unified Diff: cc/test/layer_tree_pixel_test.cc

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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/test/layer_tree_json_parser.cc ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index dbb9ba5c4546d18e1d622a5e09fff0fce78637b4..436f818f0e5851192f5277cd905ebc85f35dc184 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -119,7 +119,8 @@ void LayerTreePixelTest::AfterTest() {
scoped_refptr<SolidColorLayer> LayerTreePixelTest::CreateSolidColorLayer(
const gfx::Rect& rect, SkColor color) {
- scoped_refptr<SolidColorLayer> layer = SolidColorLayer::Create();
+ scoped_refptr<SolidColorLayer> layer =
+ SolidColorLayer::Create(layer_settings());
layer->SetIsDrawable(true);
layer->SetBounds(rect.size());
layer->SetPosition(rect.origin());
@@ -176,7 +177,8 @@ scoped_refptr<SolidColorLayer> LayerTreePixelTest::
scoped_refptr<TextureLayer> LayerTreePixelTest::CreateTextureLayer(
const gfx::Rect& rect, const SkBitmap& bitmap) {
- scoped_refptr<TextureLayer> layer = TextureLayer::CreateForMailbox(NULL);
+ scoped_refptr<TextureLayer> layer =
+ TextureLayer::CreateForMailbox(layer_settings(), NULL);
layer->SetIsDrawable(true);
layer->SetBounds(rect.size());
layer->SetPosition(rect.origin());
@@ -229,7 +231,7 @@ void LayerTreePixelTest::RunPixelTestWithReadbackTarget(
}
void LayerTreePixelTest::SetupTree() {
- scoped_refptr<Layer> root = Layer::Create();
+ scoped_refptr<Layer> root = Layer::Create(layer_settings());
root->SetBounds(content_root_->bounds());
root->AddChild(content_root_);
layer_tree_host()->SetRootLayer(root);
« no previous file with comments | « cc/test/layer_tree_json_parser.cc ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698