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

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 2131233003: cc: Clean up PictureLayer API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove constructor/destructor of the internal struct Created 4 years, 5 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/picture_layer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index 93a178baadfc7e64d0cf3e8a924aa0f4e0329792..bb1405ed6af548c7b87696aaa02895f6b5ce5e7d 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -61,7 +61,7 @@ class TestSerializationPictureLayer : public PictureLayer {
void set_is_mask(bool is_mask) { is_mask_ = is_mask; }
void set_nearest_neighbor(bool nearest_neighbor) {
- nearest_neighbor_ = nearest_neighbor;
+ inputs_.nearest_neighbor = nearest_neighbor;
}
void ValidateSerialization(
@@ -93,7 +93,7 @@ class TestSerializationPictureLayer : public PictureLayer {
EXPECT_TRUE(recording_source()->EqualsTo(*layer->recording_source()));
EXPECT_EQ(update_source_frame_number_, layer->update_source_frame_number_);
EXPECT_EQ(is_mask_, layer->is_mask_);
- EXPECT_EQ(nearest_neighbor_, layer->nearest_neighbor_);
+ EXPECT_EQ(inputs_.nearest_neighbor, layer->inputs_.nearest_neighbor);
}
std::vector<uint32_t> GetPictureIds() {
« cc/layers/picture_layer.h ('K') | « cc/layers/picture_layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698