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

Unified Diff: cc/test/fake_picture_layer.cc

Issue 519583003: Use the solid color detection to create solid layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Passed the right color to the quad Created 6 years, 3 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
« cc/layers/picture_layer.h ('K') | « cc/layers/solid_color_layer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer.cc
diff --git a/cc/test/fake_picture_layer.cc b/cc/test/fake_picture_layer.cc
index 2a5d2e9a77469e000486cf4d4d924731713deb43..2882c86154910a756d6daa4f50c9406b9f1dcef1 100644
--- a/cc/test/fake_picture_layer.cc
+++ b/cc/test/fake_picture_layer.cc
@@ -33,6 +33,9 @@ bool FakePictureLayer::Update(ResourceUpdateQueue* queue,
void FakePictureLayer::PushPropertiesTo(LayerImpl* layer) {
PictureLayer::PushPropertiesTo(layer);
+ PictureLayerImpl* layer_impl = static_cast<PictureLayerImpl*>(layer);
+ // the tests expect a non-solid layer
+ layer_impl->SetSolidColorState(false, SK_ColorBLACK);
push_properties_count_++;
}
« cc/layers/picture_layer.h ('K') | « cc/layers/solid_color_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698