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

Unified Diff: cc/resources/display_list_raster_source.cc

Issue 1008373002: cc: Remove is_analysis parameter in RasterCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/resources/display_list_raster_source.h ('k') | cc/resources/picture_pile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/display_list_raster_source.cc
diff --git a/cc/resources/display_list_raster_source.cc b/cc/resources/display_list_raster_source.cc
index ab0292e8537aabc401e84da6ac8596c686a65a78..e35900a065f7637f8f3aa3ceb23d3b3518687fb3 100644
--- a/cc/resources/display_list_raster_source.cc
+++ b/cc/resources/display_list_raster_source.cc
@@ -87,13 +87,13 @@ void DisplayListRasterSource::PlaybackToSharedCanvas(
SkCanvas* canvas,
const gfx::Rect& canvas_rect,
float contents_scale) const {
- RasterCommon(canvas, NULL, canvas_rect, contents_scale, false);
+ RasterCommon(canvas, NULL, canvas_rect, contents_scale);
}
void DisplayListRasterSource::RasterForAnalysis(skia::AnalysisCanvas* canvas,
const gfx::Rect& canvas_rect,
float contents_scale) const {
- RasterCommon(canvas, canvas, canvas_rect, contents_scale, true);
+ RasterCommon(canvas, canvas, canvas_rect, contents_scale);
}
void DisplayListRasterSource::PlaybackToCanvas(SkCanvas* canvas,
@@ -103,14 +103,13 @@ void DisplayListRasterSource::PlaybackToCanvas(SkCanvas* canvas,
canvas, canvas_rect, gfx::Rect(size_), contents_scale, background_color_,
clear_canvas_with_debug_color_, requires_clear_);
- RasterCommon(canvas, NULL, canvas_rect, contents_scale, false);
+ RasterCommon(canvas, NULL, canvas_rect, contents_scale);
}
void DisplayListRasterSource::RasterCommon(SkCanvas* canvas,
SkDrawPictureCallback* callback,
const gfx::Rect& canvas_rect,
- float contents_scale,
- bool is_analysis) const {
+ float contents_scale) const {
canvas->translate(-canvas_rect.x(), -canvas_rect.y());
gfx::Rect content_rect =
gfx::ToEnclosingRect(gfx::ScaleRect(gfx::Rect(size_), contents_scale));
« no previous file with comments | « cc/resources/display_list_raster_source.h ('k') | cc/resources/picture_pile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698