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

Side by Side Diff: include/gpu/GrColorSpaceXform.h

Issue 2154753003: Introduce GrColorSpaceXform, for gamut conversion on textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrColorSpaceXform_DEFINED
9 #define GrColorSpaceXform_DEFINED
10
11 #include "SkColorSpace.h"
12 #include "SkRefCnt.h"
13
14 /**
15 * Represents a color gamut transformation (as a 4x4 color matrix)
16 */
17 class GrColorSpaceXform : public SkRefCnt {
18 public:
19 GrColorSpaceXform(const SkMatrix44& srcToDst) : fSrcToDst(srcToDst) {}
20
21 static sk_sp<GrColorSpaceXform> Make(SkColorSpace* src, SkColorSpace* dst);
22
23 const SkMatrix44& srcToDst() { return fSrcToDst; }
24
25 private:
26 SkMatrix44 fSrcToDst;
27 };
28 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrPaint.h » ('j') | include/gpu/GrTextureAccess.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698