blob: 29a7deafce01b6a19963842d7f12213b3797600a [file] [log] [blame]
Lloyd Piquefeb73d72018-12-04 17:23:44 -08001/*
2 * Copyright 2019 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 <cstdint>
20
21#include <utils/StrongPointer.h>
22
23namespace android {
24
25typedef int64_t nsecs_t;
26
27namespace compositionengine {
28
29class Display;
30class LayerFE;
31
32/**
33 * A layer contains the output-independent composition state for a front-end
34 * Layer
35 */
36class Layer {
37public:
38 virtual ~Layer();
39
40 // Gets the front-end interface for this layer. Can return nullptr if the
41 // front-end layer no longer exists.
42 virtual sp<LayerFE> getLayerFE() const = 0;
43};
44
45} // namespace compositionengine
46} // namespace android