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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 2141233002: cc: Clean up RecordingSource API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove recoding_source_ from PictureLayer, and move all its internal state to PictureLayer 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
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index aa60e08d12010a958e5531e68fa503a8a96ebfc2..c1bd8482b210b56aa7be923176294eae5edc0064 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -4330,8 +4330,8 @@ void PictureLayerImplTest::TestQuadsForSolidColor(bool test_for_solid) {
Region invalidation(layer_rect);
recording_source->UpdateAndExpandInvalidation(
- &client, &invalidation, layer_bounds, frame_number++,
- RecordingSource::RECORD_NORMALLY);
+ &client, &invalidation, layer_bounds, RecordingSource::RECORD_NORMALLY);
+ frame_number++;
Menglin 2016/07/19 22:56:37 This is test code. don't need to look at change in
scoped_refptr<RasterSource> pending_raster_source =
recording_source->CreateRasterSource(true);
@@ -4394,8 +4394,8 @@ TEST_F(PictureLayerImplTest, NonSolidToSolidNoTilings) {
recording_source->SetNeedsDisplayRect(layer_rect);
Region invalidation1;
recording_source->UpdateAndExpandInvalidation(
- &client, &invalidation1, layer_bounds, frame_number++,
- RecordingSource::RECORD_NORMALLY);
+ &client, &invalidation1, layer_bounds, RecordingSource::RECORD_NORMALLY);
+ frame_number++;
scoped_refptr<RasterSource> raster_source1 =
recording_source->CreateRasterSource(true);
@@ -4414,8 +4414,8 @@ TEST_F(PictureLayerImplTest, NonSolidToSolidNoTilings) {
recording_source->SetNeedsDisplayRect(layer_rect);
Region invalidation2;
recording_source->UpdateAndExpandInvalidation(
- &client, &invalidation2, layer_bounds, frame_number++,
- RecordingSource::RECORD_NORMALLY);
+ &client, &invalidation2, layer_bounds, RecordingSource::RECORD_NORMALLY);
+ frame_number++;
scoped_refptr<RasterSource> raster_source2 =
recording_source->CreateRasterSource(true);

Powered by Google App Engine
This is Rietveld 408576698