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

Unified Diff: cc/playback/raster_source.cc

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: Rebase Created 3 years, 10 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/playback/raster_source.cc
diff --git a/cc/playback/raster_source.cc b/cc/playback/raster_source.cc
index 06b678856bd02c474cb3f89b1d942de93b8d4d87..1897025dcf1777b7c031075a4dbfa8164ca9aed3 100644
--- a/cc/playback/raster_source.cc
+++ b/cc/playback/raster_source.cc
@@ -90,8 +90,8 @@ void RasterSource::PlaybackToCanvas(SkCanvas* raster_canvas,
RasterCommon(&canvas, nullptr);
} else if (settings.use_image_hijack_canvas) {
const SkImageInfo& info = raster_canvas->imageInfo();
-
- ImageHijackCanvas canvas(info.width(), info.height(), image_decode_cache_);
+ ImageHijackCanvas canvas(info.width(), info.height(), image_decode_cache_,
+ &settings.images_to_skip);
// Before adding the canvas, make sure that the ImageHijackCanvas is aware
// of the current transform and clip, which may affect the clip bounds.
// Since we query the clip bounds of the current canvas to get the list of
@@ -312,4 +312,9 @@ RasterSource::PlaybackSettings::PlaybackSettings()
skip_images(false),
use_image_hijack_canvas(true) {}
+RasterSource::PlaybackSettings::PlaybackSettings(const PlaybackSettings&) =
+ default;
+
+RasterSource::PlaybackSettings::~PlaybackSettings() = default;
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698