Interpolate patch vertices in destination color space
Change-Id: I4e1403eb63370f5e61283ed4a504fb352368adc0
Reviewed-on: https://skia-review.googlesource.com/139862
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/utils/SkPatchUtils.h b/src/utils/SkPatchUtils.h
index ee7a1f6..0751f81 100644
--- a/src/utils/SkPatchUtils.h
+++ b/src/utils/SkPatchUtils.h
@@ -12,6 +12,8 @@
#include "SkMatrix.h"
#include "SkVertices.h"
+class SkColorSpace;
+
class SK_API SkPatchUtils {
public:
@@ -49,7 +51,7 @@
static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4],
const SkPoint texCoords[4], int lodX, int lodY,
- bool interpColorsLinearly = false);
+ SkColorSpace* colorSpace = nullptr);
};
#endif