Skia
2DGraphicsLibrary
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SkColorSpaceXformCanvas.h
1
/*
2
* Copyright 2017 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 SkColorSpaceXformCanvas_DEFINED
9
#define SkColorSpaceXformCanvas_DEFINED
10
11
#include <SkCanvas.h>
12
#include <SkColorSpace.h>
13
#include <memory>
14
15
// Proxy SkCanvas calls to unowned target, transforming colors into targetCS as it goes.
16
// May return nullptr if |targetCS| is unsupported.
17
std::unique_ptr<SkCanvas> SK_API SkCreateColorSpaceXformCanvas(
SkCanvas
* target,
18
sk_sp<SkColorSpace>
targetCS);
19
20
#endif //SkColorSpaceXformCanvas_DEFINED
SkCanvas
A Canvas encapsulates all of the state about drawing into a device (bitmap).
Definition:
SkCanvas.h:59
sk_sp< SkColorSpace >