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

Unified Diff: cc/playback/display_list_recording_source_unittest.cc

Issue 1312423005: Change the display list interest rect size to 4000px instead of 8000px. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/playback/display_list_recording_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_list_recording_source_unittest.cc
diff --git a/cc/playback/display_list_recording_source_unittest.cc b/cc/playback/display_list_recording_source_unittest.cc
index 1e602c270fb2a23651e49bb9baef6447d89b44a5..97811260f02a6f56a77e7e5ac86eb28bb7df3063 100644
--- a/cc/playback/display_list_recording_source_unittest.cc
+++ b/cc/playback/display_list_recording_source_unittest.cc
@@ -329,20 +329,20 @@ TEST_F(DisplayListRecordingSourceTest,
recording_source.UpdateAndExpandInvalidation(
&client, &invalidation, layer_size, visible_rect, 0,
RecordingSource::RECORD_NORMALLY);
- EXPECT_EQ(gfx::Rect(0, 0, 8256, 8256), recording_source.recorded_viewport());
+ EXPECT_EQ(gfx::Rect(0, 0, 4256, 4256), recording_source.recorded_viewport());
visible_rect.Offset(0, 512);
recording_source.UpdateAndExpandInvalidation(
&client, &invalidation, layer_size, visible_rect, 0,
RecordingSource::RECORD_NORMALLY);
- EXPECT_EQ(gfx::Rect(0, 0, 8256, 8256), recording_source.recorded_viewport());
+ EXPECT_EQ(gfx::Rect(0, 0, 4256, 4256), recording_source.recorded_viewport());
// Move past the threshold for enough exposed new area.
visible_rect.Offset(0, 1);
recording_source.UpdateAndExpandInvalidation(
&client, &invalidation, layer_size, visible_rect, 0,
RecordingSource::RECORD_NORMALLY);
- EXPECT_EQ(gfx::Rect(0, 0, 8256, 8769), recording_source.recorded_viewport());
+ EXPECT_EQ(gfx::Rect(0, 0, 4256, 4769), recording_source.recorded_viewport());
// Make the bottom of the potential new recorded viewport coincide with the
// layer's bottom edge.
@@ -350,7 +350,7 @@ TEST_F(DisplayListRecordingSourceTest,
recording_source.UpdateAndExpandInvalidation(
&client, &invalidation, layer_size, visible_rect, 0,
RecordingSource::RECORD_NORMALLY);
- EXPECT_EQ(gfx::Rect(0, 0, 8256, 9000), recording_source.recorded_viewport());
+ EXPECT_EQ(gfx::Rect(0, 0, 4256, 4769), recording_source.recorded_viewport());
}
} // namespace
« no previous file with comments | « cc/playback/display_list_recording_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698