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

Unified Diff: cc/playback/raster_source.h

Issue 2629233002: cc: Remove separate x/y raster scales. (Closed)
Patch Set: Created 3 years, 11 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/draw_image.h ('k') | cc/playback/raster_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source.h
diff --git a/cc/playback/raster_source.h b/cc/playback/raster_source.h
index ad7e5acdc442425f6f855e04cf27496bdca92c3f..471f7ba6ee479e616621729cf55bee52c1c6b1a4 100644
--- a/cc/playback/raster_source.h
+++ b/cc/playback/raster_source.h
@@ -51,7 +51,7 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
void PlaybackToCanvas(SkCanvas* canvas,
const gfx::Rect& canvas_bitmap_rect,
const gfx::Rect& canvas_playback_rect,
- const gfx::SizeF& raster_scales,
+ float contents_scale,
const PlaybackSettings& settings) const;
// Raster this RasterSource into the given canvas. Canvas states such as
@@ -69,7 +69,7 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// Returns whether the given rect at given scale is of solid color in
// this raster source, as well as the solid color value.
bool PerformSolidColorAnalysis(const gfx::Rect& content_rect,
- const gfx::SizeF& raster_scales,
+ float contents_scale,
SkColor* color) const;
// Returns true iff the whole raster source is of solid color.
@@ -94,7 +94,7 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// rect in layer space. The returned draw images' matrices are modified as if
// they were being using during raster at scale |raster_scale|.
void GetDiscardableImagesInRect(const gfx::Rect& layer_rect,
- const gfx::SizeF& raster_scales,
+ float contents_scale,
std::vector<DrawImage>* images) const;
// Return true iff this raster source can raster the given rect in layer
« no previous file with comments | « cc/playback/draw_image.h ('k') | cc/playback/raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698