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

Unified Diff: cc/raster/raster_source.h

Issue 2797583002: cc: Add color space to image decode caches (Closed)
Patch Set: Remove dead code Created 3 years, 8 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/raster/image_hijack_canvas_unittest.cc ('k') | cc/raster/raster_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/raster_source.h
diff --git a/cc/raster/raster_source.h b/cc/raster/raster_source.h
index b6292c5b8052fb1994ac4105accfa53e77c4d66e..df899ab220c7d9a11768edb59d491e6dd16342b4 100644
--- a/cc/raster/raster_source.h
+++ b/cc/raster/raster_source.h
@@ -68,7 +68,7 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// canvas_playback_rect can be used to replay only part of the recording in,
// the content space, so only a sub-rect of the tile gets rastered.
void PlaybackToCanvas(SkCanvas* canvas,
- const gfx::ColorSpace& canvas_color_space,
+ const gfx::ColorSpace& target_color_space,
const gfx::Rect& canvas_bitmap_rect,
const gfx::Rect& canvas_playback_rect,
const gfx::AxisTransform2d& raster_transform,
@@ -84,7 +84,7 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// Note that this should only be called after the image decode controller has
// been set, which happens during commit.
virtual void PlaybackToCanvas(SkCanvas* canvas,
- const gfx::ColorSpace& canvas_color_space,
+ const gfx::ColorSpace& target_color_space,
const PlaybackSettings& settings) const;
// Returns whether the given rect at given scale is of solid color in
@@ -108,6 +108,7 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
// they were being using during raster at scale |raster_scale|.
void GetDiscardableImagesInRect(const gfx::Rect& layer_rect,
float contents_scale,
+ const gfx::ColorSpace& target_color_space,
std::vector<DrawImage>* images) const;
// Return true iff this raster source can raster the given rect in layer
@@ -167,7 +168,6 @@ class CC_EXPORT RasterSource : public base::RefCountedThreadSafe<RasterSource> {
private:
void RasterCommon(SkCanvas* canvas,
- const gfx::ColorSpace& canvas_color_space,
SkPicture::AbortCallback* callback) const;
void PrepareForPlaybackToCanvas(SkCanvas* canvas) const;
« no previous file with comments | « cc/raster/image_hijack_canvas_unittest.cc ('k') | cc/raster/raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698