blob: f71fdfaf3fbaf75f66d561e1d226e23fd49b5d60 [file] [log] [blame]
John Reck9ce2bf72018-07-02 18:33:32 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <SkCanvas.h>
20#include <SkPaintFilterCanvas.h>
21
22#include <memory>
23
24namespace android::uirenderer {
25
26enum class UsageHint {
27 Unknown = 0,
28 Background = 1,
29};
30
31enum class ColorTransform {
32 None,
33 Light,
34 Dark,
35};
36
37std::unique_ptr<SkCanvas> makeTransformCanvas(SkCanvas* inCanvas, ColorTransform transform);
38std::unique_ptr<SkCanvas> makeTransformCanvas(SkCanvas* inCanvas, UsageHint usageHint);
39
40} // namespace android::uirenderer;