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

Unified Diff: ui/gfx/color_space.h

Issue 2605743002: Use consistent types for ICC profiles (Closed)
Patch Set: No export for static lib Created 4 years 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: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index e05fbc3124c572f9f1cea342343e343f9ff4c331..c9e9038619678dba0d9eee20f06ef66a75a8e7b3 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -162,7 +162,7 @@ class GFX_EXPORT ColorSpace {
bool operator<(const ColorSpace& other) const;
// Note that this may return nullptr.
- sk_sp<SkColorSpace> ToSkColorSpace() const;
+ const sk_sp<SkColorSpace>& ToSkColorSpace() const { return sk_color_space_; }
static ColorSpace FromSkColorSpace(const sk_sp<SkColorSpace>& sk_color_space);
private:

Powered by Google App Engine
This is Rietveld 408576698