blob: 311d4935fc493bdb6154fc421680998ef19f65bc [file] [log] [blame]
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -08001/*
2 * Copyright (C) 2007 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 */
Robert Carrcdf83202018-03-07 12:48:34 -080016#pragma once
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080017
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080018#include <sys/types.h>
19
Robert Carrcdf83202018-03-07 12:48:34 -080020#include <cstdint>
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080021
Vishnu Nairbc4ee5c2022-08-16 03:19:37 +000022#include "BufferStateLayer.h"
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080023
Mathias Agopiancbb288b2009-09-07 16:32:45 -070024namespace android {
25
Vishnu Nairfa247b12020-02-11 08:58:26 -080026// A layer that can render a combination of the following effects.
27// * fill the bounds of the layer with a color
28// * render a shadow cast by the bounds of the layer
29// If no effects are enabled, the layer is considered to be invisible.
Vishnu Nairbc4ee5c2022-08-16 03:19:37 +000030class EffectLayer : public BufferStateLayer {
Jesse Hall382574d2014-08-07 22:33:14 -070031public:
Vishnu Nairfa247b12020-02-11 08:58:26 -080032 explicit EffectLayer(const LayerCreationArgs&);
33 ~EffectLayer() override;
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080034};
35
Robert Carrcdf83202018-03-07 12:48:34 -080036} // namespace android