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

Unified Diff: cc/playback/display_list_recording_source.cc

Issue 1146813012: cc: Add tests for DisplayListRasterSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displaytest: . Created 5 years, 7 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.h ('k') | cc/playback/display_list_recording_source_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_list_recording_source.cc
diff --git a/cc/playback/display_list_recording_source.cc b/cc/playback/display_list_recording_source.cc
index cb044d35a0340a3e37fab60e113db3bdcd8e0f49..43d11287f74d7a945e7c95a19349e67696f456d6 100644
--- a/cc/playback/display_list_recording_source.cc
+++ b/cc/playback/display_list_recording_source.cc
@@ -23,6 +23,12 @@ const int kPixelDistanceToRecord = 8000;
// operations.
const int kOpCountThatIsOkToAnalyze = 10;
+#ifdef NDEBUG
+const bool kDefaultClearCanvasSetting = false;
+#else
+const bool kDefaultClearCanvasSetting = true;
+#endif
+
DEFINE_SCOPED_UMA_HISTOGRAM_AREA_TIMER(
ScopedDisplayListRecordingSourceUpdateTimer,
"Compositing.DisplayListRecordingSource.UpdateUs",
@@ -38,6 +44,7 @@ DisplayListRecordingSource::DisplayListRecordingSource(
gather_pixel_refs_(false),
requires_clear_(false),
is_solid_color_(false),
+ clear_canvas_with_debug_color_(kDefaultClearCanvasSetting),
solid_color_(SK_ColorTRANSPARENT),
background_color_(SK_ColorTRANSPARENT),
pixel_record_distance_(kPixelDistanceToRecord),
@@ -116,6 +123,7 @@ bool DisplayListRecordingSource::UpdateAndExpandInvalidation(
repeat_count = slow_down_raster_scale_factor_for_debug_;
painting_control = ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED;
}
+
for (int i = 0; i < repeat_count; ++i) {
display_list_ = painter->PaintContentsToDisplayList(recorded_viewport_,
painting_control);
« no previous file with comments | « cc/playback/display_list_recording_source.h ('k') | cc/playback/display_list_recording_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698