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

Unified Diff: cc/playback/display_list_recording_source_unittest.cc

Issue 1452353002: Turn off computation of the interest rect in cc in synchronized paint mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/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 98f827bafe07c5e269d3e8e6173f8dad5b66b63d..bbd94674e83917c01bc7fc5fd05b1cfa346e7321 100644
--- a/cc/playback/display_list_recording_source_unittest.cc
+++ b/cc/playback/display_list_recording_source_unittest.cc
@@ -215,42 +215,6 @@ TEST(DisplayListRecordingSourceTest, ExposesEnoughNewAreaScrollScenarios) {
current_recorded_viewport, new_recorded_viewport, layer_size));
}
-// Verifies that UpdateAndExpandInvalidation calls ExposesEnoughNewArea with the
-// right arguments.
-TEST(DisplayListRecordingSourceTest,
- ExposesEnoughNewAreaCalledWithCorrectArguments) {
- DisplayListRecordingSource recording_source;
- FakeContentLayerClient client;
- Region invalidation;
- gfx::Size layer_size(9000, 9000);
- gfx::Rect visible_rect(0, 0, 256, 256);
-
- recording_source.UpdateAndExpandInvalidation(
- &client, &invalidation, layer_size, visible_rect, 0,
- DisplayListRecordingSource::RECORD_NORMALLY);
- 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,
- DisplayListRecordingSource::RECORD_NORMALLY);
- 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,
- DisplayListRecordingSource::RECORD_NORMALLY);
- 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.
- visible_rect.Offset(0, 231);
- recording_source.UpdateAndExpandInvalidation(
- &client, &invalidation, layer_size, visible_rect, 0,
- DisplayListRecordingSource::RECORD_NORMALLY);
- EXPECT_EQ(gfx::Rect(0, 0, 4256, 4769), recording_source.recorded_viewport());
-}
TEST(DisplayListRecordingSourceTest, NoGatherImageEmptyImages) {
gfx::Rect recorded_viewport(0, 0, 256, 256);

Powered by Google App Engine
This is Rietveld 408576698