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

Unified Diff: ui/gfx/color_space.cc

Issue 2364633003: color: Set GpuMemoryBuffer color spaces for Canvas (Closed)
Patch Set: Fix windows build 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
« gpu/ipc/common/surface_handle.h ('K') | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.cc
diff --git a/ui/gfx/color_space.cc b/ui/gfx/color_space.cc
index 14e2f15ad86ea9378fc01cf3e1d339eaa613dd46..df74a56b01ec2eeb046b086cb99c8cea4e11e584 100644
--- a/ui/gfx/color_space.cc
+++ b/ui/gfx/color_space.cc
@@ -154,4 +154,14 @@ sk_sp<SkColorSpace> ColorSpace::ToSkColorSpace() const {
return result;
}
+ColorSpace ColorSpace::FromSkColorSpace(
+ const sk_sp<SkColorSpace>& sk_color_space) {
+ if (!sk_color_space)
+ return gfx::ColorSpace();
+
+ // TODO(crbug.com/634102): Add conversion to gfx::ColorSpace.
+ return gfx::ColorSpace();
+}
+
+
} // namespace gfx
« gpu/ipc/common/surface_handle.h ('K') | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698