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

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: Added a unit test for solid color on picturelayerimpl 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_impl.cc ('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
danakj 2014/09/10 18:46:40 Comments should be complete sentence including cap
hendrikw 2014/09/11 00:27:40 Acknowledged.
+ layer_impl->SetSolidColorState(false, SK_ColorBLACK);
danakj 2014/09/10 18:46:40 This seems awkward. Maybe we should make FakeConte
hendrikw 2014/09/11 00:27:40 Hmm, well, the test does require a solid color to
danakj 2014/09/11 23:43:50 You need a layer with a solid color with a pile th
push_properties_count_++;
}
« cc/layers/picture_layer_impl.cc ('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