blob: 82e6914e8b7fe5a6c64a0995b770becdd23adac4 [file] [log] [blame]
Stan Iliev500a0c32016-10-26 10:30:09 -04001/*
2 * Copyright (C) 2016 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 <SkSurface.h>
20#include "Matrix.h"
21
22namespace android {
23namespace uirenderer {
24namespace skiapipeline {
25
26/**
27 * An offscreen rendering target used to contain the contents a RenderNode.
28 */
John Reck1bcacfd2017-11-03 10:12:19 -070029struct SkiaLayer {
Stan Iliev500a0c32016-10-26 10:30:09 -040030 sk_sp<SkSurface> layerSurface;
31 Matrix4 inverseTransformInWindow;
Matt Sarett79756be2016-11-09 16:13:54 -050032 bool hasRenderedSinceRepaint = false;
Stan Iliev500a0c32016-10-26 10:30:09 -040033};
34
Stan Iliev500a0c32016-10-26 10:30:09 -040035} /* namespace skiapipeline */
36} /* namespace uirenderer */
37} /* namespace android */