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

Unified Diff: cc/resources/picture_pile_impl.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/picture_pile_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index e5f217bee04458ba22b835563f425d05613f1fc6..9c68137f6510691fa2dce11f4dcafba91798d046 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -80,17 +80,13 @@ PicturePileImpl::~PicturePileImpl() {
void PicturePileImpl::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 PicturePileImpl::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 PicturePileImpl::PlaybackToCanvas(SkCanvas* canvas,
@@ -99,11 +95,7 @@ void PicturePileImpl::PlaybackToCanvas(SkCanvas* canvas,
RasterSourceHelper::PrepareForPlaybackToCanvas(
canvas, canvas_rect, gfx::Rect(tiling_.tiling_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 PicturePileImpl::CoalesceRasters(const gfx::Rect& canvas_rect,
@@ -201,12 +193,10 @@ void PicturePileImpl::CoalesceRasters(const gfx::Rect& canvas_rect,
}
}
-void PicturePileImpl::RasterCommon(
- SkCanvas* canvas,
- SkDrawPictureCallback* callback,
- const gfx::Rect& canvas_rect,
- float contents_scale,
- bool is_analysis) const {
+void PicturePileImpl::RasterCommon(SkCanvas* canvas,
+ SkDrawPictureCallback* callback,
+ const gfx::Rect& canvas_rect,
+ float contents_scale) const {
DCHECK(contents_scale >= min_contents_scale_);
canvas->translate(-canvas_rect.x(), -canvas_rect.y());
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698