aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkColorSpaceXformCanvas.h
blob: 08981703c5b27295f1004f62f79059c9eedfd425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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