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

Unified Diff: ui/gfx/color_space.h

Issue 2364633003: color: Set GpuMemoryBuffer color spaces for Canvas (Closed)
Patch Set: Fix constexpr Created 4 years, 3 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
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index bc5d267164dcb2367ecff7cfce05902ab67f2ca6..01cc056860a5ef6f15b42f75e8f40c04442a3678 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -161,6 +161,7 @@ class GFX_EXPORT ColorSpace {
// Note that this may return nullptr.
sk_sp<SkColorSpace> ToSkColorSpace() const;
+ static ColorSpace FromSkColorSpace(const sk_sp<SkColorSpace>& sk_color_space);
private:
PrimaryID primaries_ = PrimaryID::UNSPECIFIED;

Powered by Google App Engine
This is Rietveld 408576698