aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorSpaceXformCanvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkColorSpaceXformCanvas.h')
-rw-r--r--include/core/SkColorSpaceXformCanvas.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/core/SkColorSpaceXformCanvas.h b/include/core/SkColorSpaceXformCanvas.h
new file mode 100644
index 0000000000..08981703c5
--- /dev/null
+++ b/include/core/SkColorSpaceXformCanvas.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2017 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkColorSpaceXformCanvas_DEFINED
+#define SkColorSpaceXformCanvas_DEFINED
+
+#include <SkCanvas.h>
+#include <SkColorSpace.h>
+#include <memory>
+
+// Proxy SkCanvas calls to unowned target, transforming colors into targetCS as it goes.
+std::unique_ptr<SkCanvas> SkCreateColorSpaceXformCanvas(SkCanvas* target,
+ sk_sp<SkColorSpace> targetCS);
+
+
+#endif//SkColorSpaceXformCanvas_DEFINED