blob: 3947f224627289d0aefa0151b932484c2f5a69de [file] [log] [blame]
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -08001/*
2 * Copyright (C) 2008 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
Mathias Agopian9cce3252010-02-09 17:46:37 -080017#ifndef ANDROID_SF_LAYER_STATE_H
18#define ANDROID_SF_LAYER_STATE_H
chaviw308ddba2020-08-11 16:23:51 -070019
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080020
21#include <stdint.h>
22#include <sys/types.h>
23
Steven Thomas62a4cf82020-01-31 12:04:03 -080024#include <android/native_window.h>
Robert Carr0d480722017-01-10 16:42:54 -080025#include <gui/IGraphicBufferProducer.h>
Valerie Hau9dab9732019-08-20 09:29:25 -070026#include <gui/ITransactionCompletedListener.h>
Peiyong Lind3788632018-09-18 16:01:31 -070027#include <math/mat4.h>
Robert Carr2c358bf2018-08-08 15:58:15 -070028
29#ifndef NO_INPUT
Vishnu Naire798b472020-07-23 13:52:21 -070030#include <android/FocusRequest.h>
Robert Carr2c358bf2018-08-08 15:58:15 -070031#include <input/InputWindow.h>
32#endif
33
chaviw618c42d2020-07-24 15:25:08 -070034#include <gui/ISurfaceComposer.h>
Evan Rosky1f6d6d52018-12-06 10:47:26 -080035#include <gui/LayerMetadata.h>
Pablo Gamito11dcc222020-09-12 15:49:39 +000036#include <gui/SurfaceControl.h>
chaviw13fdc492017-06-27 12:40:18 -070037#include <math/vec3.h>
Lucas Dupinc3800b82020-10-02 16:24:48 -070038#include <ui/BlurRegion.h>
Marissa Wall61c58622018-07-18 10:12:20 -070039#include <ui/GraphicTypes.h>
Marissa Wall11303242018-07-26 13:36:24 -070040#include <ui/Rect.h>
41#include <ui/Region.h>
Dominik Laskowski718f9602019-11-09 20:01:35 -080042#include <ui/Rotation.h>
John Reckcdb4ed72021-02-04 13:39:33 -050043#include <ui/StretchEffect.h>
Vishnu Nair6213bd92020-05-08 17:42:25 -070044#include <ui/Transform.h>
Steven Thomas62a4cf82020-01-31 12:04:03 -080045#include <utils/Errors.h>
Mathias Agopian9cce3252010-02-09 17:46:37 -080046
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080047namespace android {
48
49class Parcel;
Mathias Agopian698c0872011-06-28 19:09:31 -070050class ISurfaceComposerClient;
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080051
Marissa Wall947d34e2019-03-29 14:03:53 -070052struct client_cache_t {
53 wp<IBinder> token = nullptr;
54 uint64_t id;
55
56 bool operator==(const client_cache_t& other) const { return id == other.id; }
57
58 bool isValid() const { return token != nullptr; }
Marissa Wall78b72202019-03-15 14:58:34 -070059};
60
Andy McFadden4125a4f2014-01-29 17:17:11 -080061/*
62 * Used to communicate layer information between SurfaceFlinger and its clients.
63 */
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080064struct layer_state_t {
Mathias Agopian3165cc22012-08-08 19:42:09 -070065 enum {
chaviwc5676c62020-09-18 15:01:04 -070066 eLayerHidden = 0x01, // SURFACE_HIDDEN in SurfaceControl.java
67 eLayerOpaque = 0x02, // SURFACE_OPAQUE
68 eLayerSkipScreenshot = 0x40, // SKIP_SCREENSHOT
69 eLayerSecure = 0x80, // SECURE
Vishnu Nairf6eddb62021-01-27 22:02:11 -080070 // Queue up BufferStateLayer buffers instead of dropping the oldest buffer when this flag is
71 // set. This blocks the client until all the buffers have been presented. If the buffers
72 // have presentation timestamps, then we may drop buffers.
73 eEnableBackpressure = 0x100, // ENABLE_BACKPRESSURE
Mathias Agopian3165cc22012-08-08 19:42:09 -070074 };
75
76 enum {
Marissa Wall11303242018-07-26 13:36:24 -070077 ePositionChanged = 0x00000001,
78 eLayerChanged = 0x00000002,
79 eSizeChanged = 0x00000004,
80 eAlphaChanged = 0x00000008,
81 eMatrixChanged = 0x00000010,
82 eTransparentRegionChanged = 0x00000020,
83 eFlagsChanged = 0x00000040,
84 eLayerStackChanged = 0x00000080,
Vishnu Nair1506b182021-02-22 14:35:15 -080085 eReleaseBufferListenerChanged = 0x00000400,
Vishnu Nairc97b8db2019-10-29 18:19:35 -070086 eShadowRadiusChanged = 0x00000800,
arthurhungdba591c2021-02-08 17:28:49 +080087 eLayerCreated = 0x00001000,
chaviwf3f40fe2021-04-27 15:54:02 -050088 eBufferCropChanged = 0x00002000,
Vishnu Nairdcce0e22018-08-23 08:35:19 -070089 eRelativeLayerChanged = 0x00004000,
90 eReparent = 0x00008000,
91 eColorChanged = 0x00010000,
92 eDestroySurface = 0x00020000,
93 eTransformChanged = 0x00040000,
94 eTransformToDisplayInverseChanged = 0x00080000,
95 eCropChanged = 0x00100000,
96 eBufferChanged = 0x00200000,
97 eAcquireFenceChanged = 0x00400000,
98 eDataspaceChanged = 0x00800000,
99 eHdrMetadataChanged = 0x01000000,
100 eSurfaceDamageRegionChanged = 0x02000000,
101 eApiChanged = 0x04000000,
102 eSidebandStreamChanged = 0x08000000,
Peiyong Lind3788632018-09-18 16:01:31 -0700103 eColorTransformChanged = 0x10000000,
Marissa Wall3dad52d2019-03-22 14:03:19 -0700104 eHasListenerCallbacksChanged = 0x20000000,
Robert Carr2c358bf2018-08-08 15:58:15 -0700105 eInputInfoChanged = 0x40000000,
Lucas Dupin1b6531c2018-07-05 17:18:21 -0700106 eCornerRadiusChanged = 0x80000000,
Chavi Weingartena5aedbd2021-04-09 13:37:33 +0000107 /* was eFrameChanged, now available 0x1'00000000, */
Marissa Wallebc2c052019-01-16 19:16:55 -0800108 eCachedBufferChanged = 0x2'00000000,
Valerie Haudd0b7572019-01-29 14:59:27 -0800109 eBackgroundColorChanged = 0x4'00000000,
110 eMetadataChanged = 0x8'00000000,
Peiyong Linc502cb72019-03-01 15:00:23 -0800111 eColorSpaceAgnosticChanged = 0x10'00000000,
Ana Krulecc84d09b2019-11-02 23:10:29 +0100112 eFrameRateSelectionPriority = 0x20'00000000,
Steven Thomas3172e202020-01-06 19:25:30 -0800113 eFrameRateChanged = 0x40'00000000,
Lucas Dupin19c8f0e2019-11-25 17:55:44 -0800114 eBackgroundBlurRadiusChanged = 0x80'00000000,
Valerie Hau871d6352020-01-29 08:44:02 -0800115 eProducerDisconnect = 0x100'00000000,
Vishnu Nair6213bd92020-05-08 17:42:25 -0700116 eFixedTransformHintChanged = 0x200'00000000,
Vishnu Nair6b7c5c92020-09-29 17:27:05 -0700117 eFrameNumberChanged = 0x400'00000000,
Ady Abraham8db10102021-03-15 17:19:23 -0700118 eBlurRegionsChanged = 0x800'00000000,
119 eAutoRefreshChanged = 0x1000'00000000,
120 eStretchChanged = 0x2000'00000000,
Mathias Agopian3165cc22012-08-08 19:42:09 -0700121 };
122
Pablo Gamito11dcc222020-09-12 15:49:39 +0000123 layer_state_t();
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800124
Robert Carr2c5f6d22017-09-26 12:30:35 -0700125 void merge(const layer_state_t& other);
Marissa Wall11303242018-07-26 13:36:24 -0700126 status_t write(Parcel& output) const;
127 status_t read(const Parcel& input);
Vishnu Nairddf9b5c2021-03-29 18:53:41 -0700128 bool hasBufferChanges() const;
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800129
Marissa Wall11303242018-07-26 13:36:24 -0700130 struct matrix22_t {
131 float dsdx{0};
132 float dtdx{0};
133 float dtdy{0};
134 float dsdy{0};
chaviw308ddba2020-08-11 16:23:51 -0700135 status_t write(Parcel& output) const;
136 status_t read(const Parcel& input);
Marissa Wall11303242018-07-26 13:36:24 -0700137 };
138 sp<IBinder> surface;
Pablo Gamitodbc31672020-09-01 18:28:58 +0000139 int32_t layerId;
Garfield Tan8a3083e2018-12-03 13:21:07 -0800140 uint64_t what;
Marissa Wall11303242018-07-26 13:36:24 -0700141 float x;
142 float y;
143 int32_t z;
144 uint32_t w;
145 uint32_t h;
146 uint32_t layerStack;
147 float alpha;
Vishnu Nairf6eddb62021-01-27 22:02:11 -0800148 uint32_t flags;
149 uint32_t mask;
Marissa Wall11303242018-07-26 13:36:24 -0700150 uint8_t reserved;
151 matrix22_t matrix;
Lucas Dupin1b6531c2018-07-05 17:18:21 -0700152 float cornerRadius;
Lucas Dupin19c8f0e2019-11-25 17:55:44 -0800153 uint32_t backgroundBlurRadius;
Pablo Gamito11dcc222020-09-12 15:49:39 +0000154 sp<SurfaceControl> reparentSurfaceControl;
Robert Carr0d480722017-01-10 16:42:54 -0800155
Pablo Gamito11dcc222020-09-12 15:49:39 +0000156 sp<SurfaceControl> relativeLayerSurfaceControl;
Robert Carrdb66e622017-04-10 16:55:57 -0700157
Pablo Gamito11dcc222020-09-12 15:49:39 +0000158 sp<SurfaceControl> parentSurfaceControlForChild;
chaviw06178942017-07-27 10:25:59 -0700159
Marissa Wall11303242018-07-26 13:36:24 -0700160 half3 color;
chaviw13fdc492017-06-27 12:40:18 -0700161
Marissa Wall11303242018-07-26 13:36:24 -0700162 // non POD must be last. see write/read
163 Region transparentRegion;
Marissa Wall61c58622018-07-18 10:12:20 -0700164
165 uint32_t transform;
166 bool transformToDisplayInverse;
167 Rect crop;
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200168 Rect orientedDisplaySpaceRect;
Marissa Wall61c58622018-07-18 10:12:20 -0700169 sp<GraphicBuffer> buffer;
170 sp<Fence> acquireFence;
171 ui::Dataspace dataspace;
172 HdrMetadata hdrMetadata;
173 Region surfaceDamageRegion;
174 int32_t api;
175 sp<NativeHandle> sidebandStream;
Peiyong Lind3788632018-09-18 16:01:31 -0700176 mat4 colorTransform;
Lucas Dupinc3800b82020-10-02 16:24:48 -0700177 std::vector<BlurRegion> blurRegions;
Marissa Wallc837b5e2018-10-12 10:04:44 -0700178
Robert Carr2c358bf2018-08-08 15:58:15 -0700179#ifndef NO_INPUT
Chris Ye0783e992020-06-02 21:34:49 -0700180 sp<InputWindowHandle> inputHandle = new InputWindowHandle();
Robert Carr2c358bf2018-08-08 15:58:15 -0700181#endif
Marissa Wallebc2c052019-01-16 19:16:55 -0800182
Marissa Wall947d34e2019-03-29 14:03:53 -0700183 client_cache_t cachedBuffer;
Valerie Haued54efa2019-01-11 20:03:14 -0800184
Evan Rosky1f6d6d52018-12-06 10:47:26 -0800185 LayerMetadata metadata;
Valerie Haudd0b7572019-01-29 14:59:27 -0800186
187 // The following refer to the alpha, and dataspace, respectively of
188 // the background color layer
189 float bgColorAlpha;
190 ui::Dataspace bgColorDataspace;
Peiyong Linc502cb72019-03-01 15:00:23 -0800191
192 // A color space agnostic layer means the color of this layer can be
193 // interpreted in any color space.
194 bool colorSpaceAgnostic;
Valerie Hau9dab9732019-08-20 09:29:25 -0700195
196 std::vector<ListenerCallbacks> listeners;
Vishnu Nairc97b8db2019-10-29 18:19:35 -0700197
198 // Draws a shadow around the surface.
199 float shadowRadius;
Ana Krulecc84d09b2019-11-02 23:10:29 +0100200
201 // Priority of the layer assigned by Window Manager.
202 int32_t frameRateSelectionPriority;
Steven Thomas3172e202020-01-06 19:25:30 -0800203
Steven Thomas62a4cf82020-01-31 12:04:03 -0800204 // Layer frame rate and compatibility. See ANativeWindow_setFrameRate().
Steven Thomas3172e202020-01-06 19:25:30 -0800205 float frameRate;
Steven Thomas62a4cf82020-01-31 12:04:03 -0800206 int8_t frameRateCompatibility;
Marin Shalamanovc5986772021-03-16 16:09:49 +0100207 int8_t changeFrameRateStrategy;
Vishnu Nair6213bd92020-05-08 17:42:25 -0700208
209 // Set by window manager indicating the layer and all its children are
210 // in a different orientation than the display. The hint suggests that
211 // the graphic producers should receive a transform hint as if the
212 // display was in this orientation. When the display changes to match
213 // the layer orientation, the graphic producer may not need to allocate
214 // a buffer of a different size. -1 means the transform hint is not set,
215 // otherwise the value will be a valid ui::Rotation.
216 ui::Transform::RotationFlags fixedTransformHint;
Vishnu Nair6b7c5c92020-09-29 17:27:05 -0700217
218 // Used by BlastBufferQueue to forward the framenumber generated by the
219 // graphics producer.
220 uint64_t frameNumber;
Robert Carr9b611b72020-10-19 12:00:23 -0700221
Vishnu Naircf26a0a2020-11-13 12:56:20 -0800222 // Indicates that the consumer should acquire the next frame as soon as it
223 // can and not wait for a frame to become available. This is only relevant
224 // in shared buffer mode.
225 bool autoRefresh;
John Reckcdb4ed72021-02-04 13:39:33 -0500226
227 // Stretch effect to be applied to this layer
228 StretchEffect stretchEffect;
Vishnu Nair1506b182021-02-22 14:35:15 -0800229
chaviwf3f40fe2021-04-27 15:54:02 -0500230 Rect bufferCrop;
231
Vishnu Nair1506b182021-02-22 14:35:15 -0800232 // Listens to when the buffer is safe to be released. This is used for blast
233 // layers only. The callback includes a release fence as well as the graphic
234 // buffer id to identify the buffer.
235 sp<ITransactionCompletedListener> releaseBufferListener;
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800236};
237
Mathias Agopian698c0872011-06-28 19:09:31 -0700238struct ComposerState {
Mathias Agopian698c0872011-06-28 19:09:31 -0700239 layer_state_t state;
Marissa Wall11303242018-07-26 13:36:24 -0700240 status_t write(Parcel& output) const;
241 status_t read(const Parcel& input);
Mathias Agopian698c0872011-06-28 19:09:31 -0700242};
243
Mathias Agopian8b33f032012-07-24 20:43:54 -0700244struct DisplayState {
Mathias Agopian3165cc22012-08-08 19:42:09 -0700245 enum {
Marissa Wall11303242018-07-26 13:36:24 -0700246 eSurfaceChanged = 0x01,
247 eLayerStackChanged = 0x02,
248 eDisplayProjectionChanged = 0x04,
249 eDisplaySizeChanged = 0x08
Mathias Agopiane57f2922012-08-09 16:29:12 -0700250 };
251
Pablo Ceballos60d69222015-08-07 14:47:20 -0700252 DisplayState();
Robert Carr2c5f6d22017-09-26 12:30:35 -0700253 void merge(const DisplayState& other);
Pablo Ceballos60d69222015-08-07 14:47:20 -0700254
Mathias Agopiane57f2922012-08-09 16:29:12 -0700255 uint32_t what;
256 sp<IBinder> token;
Andy McFadden2adaf042012-12-18 09:49:45 -0800257 sp<IGraphicBufferProducer> surface;
Mathias Agopiane57f2922012-08-09 16:29:12 -0700258 uint32_t layerStack;
Chia-I Wuff79ef82018-08-22 15:27:32 -0700259
260 // These states define how layers are projected onto the physical display.
261 //
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200262 // Layers are first clipped to `layerStackSpaceRect'. They are then translated and
263 // scaled from `layerStackSpaceRect' to `orientedDisplaySpaceRect'. Finally, they are rotated
264 // according to `orientation', `width', and `height'.
Chia-I Wuff79ef82018-08-22 15:27:32 -0700265 //
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200266 // For example, assume layerStackSpaceRect is Rect(0, 0, 200, 100), orientedDisplaySpaceRect is
267 // Rect(20, 10, 420, 210), and the size of the display is WxH. When orientation is 0, layers
268 // will be scaled by a factor of 2 and translated by (20, 10). When orientation is 1, layers
269 // will be additionally rotated by 90 degrees around the origin clockwise and translated by (W,
270 // 0).
Dominik Laskowski718f9602019-11-09 20:01:35 -0800271 ui::Rotation orientation = ui::ROTATION_0;
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200272 Rect layerStackSpaceRect;
273 Rect orientedDisplaySpaceRect;
Chia-I Wuff79ef82018-08-22 15:27:32 -0700274
Michael Wright1f6078a2014-06-26 16:01:02 -0700275 uint32_t width, height;
Chia-I Wuff79ef82018-08-22 15:27:32 -0700276
Mathias Agopiane57f2922012-08-09 16:29:12 -0700277 status_t write(Parcel& output) const;
278 status_t read(const Parcel& input);
Mathias Agopian8b33f032012-07-24 20:43:54 -0700279};
280
chaviw273171b2018-12-26 11:46:30 -0800281struct InputWindowCommands {
Vishnu Naire798b472020-07-23 13:52:21 -0700282#ifndef NO_INPUT
283 std::vector<FocusRequest> focusRequests;
284#endif
chaviw291d88a2019-02-14 10:33:58 -0800285 bool syncInputWindows{false};
chaviw273171b2018-12-26 11:46:30 -0800286
Vishnu Naire798b472020-07-23 13:52:21 -0700287 // Merges the passed in commands and returns true if there were any changes.
288 bool merge(const InputWindowCommands& other);
Vishnu Nair958da932020-08-21 17:12:37 -0700289 bool empty() const;
chaviw273171b2018-12-26 11:46:30 -0800290 void clear();
chaviw308ddba2020-08-11 16:23:51 -0700291 status_t write(Parcel& output) const;
292 status_t read(const Parcel& input);
chaviw273171b2018-12-26 11:46:30 -0800293};
294
Marissa Wall11303242018-07-26 13:36:24 -0700295static inline int compare_type(const ComposerState& lhs, const ComposerState& rhs) {
Marissa Wall11303242018-07-26 13:36:24 -0700296 if (lhs.state.surface < rhs.state.surface) return -1;
297 if (lhs.state.surface > rhs.state.surface) return 1;
Robert Carr4cdc58f2017-08-23 14:22:20 -0700298 return 0;
299}
300
Marissa Wall11303242018-07-26 13:36:24 -0700301static inline int compare_type(const DisplayState& lhs, const DisplayState& rhs) {
Robert Carr4cdc58f2017-08-23 14:22:20 -0700302 return compare_type(lhs.token, rhs.token);
303}
304
Ady Abrahamdd5bfa92021-01-07 17:56:08 -0800305// Returns true if the frameRate is valid.
306//
307// @param frameRate the frame rate in Hz
308// @param compatibility a ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_*
Marin Shalamanovc5986772021-03-16 16:09:49 +0100309// @param changeFrameRateStrategy a ANATIVEWINDOW_CHANGE_FRAME_RATE_*
Ady Abrahamdd5bfa92021-01-07 17:56:08 -0800310// @param functionName calling function or nullptr. Used for logging
311// @param privileged whether caller has unscoped surfaceflinger access
Marin Shalamanovc5986772021-03-16 16:09:49 +0100312bool ValidateFrameRate(float frameRate, int8_t compatibility, int8_t changeFrameRateStrategy,
313 const char* functionName, bool privileged = false);
Steven Thomas62a4cf82020-01-31 12:04:03 -0800314
chaviw618c42d2020-07-24 15:25:08 -0700315struct CaptureArgs {
chaviw4b9d5e12020-08-04 18:30:35 -0700316 const static int32_t UNSET_UID = -1;
chaviw618c42d2020-07-24 15:25:08 -0700317 virtual ~CaptureArgs() = default;
318
319 ui::PixelFormat pixelFormat{ui::PixelFormat::RGBA_8888};
320 Rect sourceCrop;
chaviw17ac24b2021-01-28 18:50:05 -0800321 float frameScaleX{1};
322 float frameScaleY{1};
chaviw618c42d2020-07-24 15:25:08 -0700323 bool captureSecureLayers{false};
chaviw4b9d5e12020-08-04 18:30:35 -0700324 int32_t uid{UNSET_UID};
Peiyong Lincd261472020-10-06 18:05:25 -0700325 // Force capture to be in a color space. If the value is ui::Dataspace::UNKNOWN, the captured
326 // result will be in the display's colorspace.
arthurhung79e81aa2020-08-28 00:09:19 +0800327 // The display may use non-RGB dataspace (ex. displayP3) that could cause pixel data could be
Peiyong Lincd261472020-10-06 18:05:25 -0700328 // different from SRGB (byte per color), and failed when checking colors in tests.
329 // NOTE: In normal cases, we want the screen to be captured in display's colorspace.
330 ui::Dataspace dataspace = ui::Dataspace::UNKNOWN;
chaviw618c42d2020-07-24 15:25:08 -0700331
Peiyong Lin05cc0112020-10-14 16:16:37 -0700332 // The receiver of the capture can handle protected buffer. A protected buffer has
333 // GRALLOC_USAGE_PROTECTED usage bit and must not be accessed unprotected behaviour.
334 // Any read/write access from unprotected context will result in undefined behaviour.
335 // Protected contents are typically DRM contents. This has no direct implication to the
336 // secure property of the surface, which is specified by the application explicitly to avoid
337 // the contents being accessed/captured by screenshot or unsecure display.
338 bool allowProtected = false;
339
chaviw17ac24b2021-01-28 18:50:05 -0800340 bool grayscale = false;
341
chaviw618c42d2020-07-24 15:25:08 -0700342 virtual status_t write(Parcel& output) const;
343 virtual status_t read(const Parcel& input);
344};
345
346struct DisplayCaptureArgs : CaptureArgs {
347 sp<IBinder> displayToken;
348 uint32_t width{0};
349 uint32_t height{0};
350 bool useIdentityTransform{false};
chaviw618c42d2020-07-24 15:25:08 -0700351
352 status_t write(Parcel& output) const override;
353 status_t read(const Parcel& input) override;
354};
355
356struct LayerCaptureArgs : CaptureArgs {
357 sp<IBinder> layerHandle;
358 std::unordered_set<sp<IBinder>, ISurfaceComposer::SpHash<IBinder>> excludeHandles;
chaviw70cb6a42020-07-30 13:57:36 -0700359 bool childrenOnly{false};
chaviw618c42d2020-07-24 15:25:08 -0700360
361 status_t write(Parcel& output) const override;
362 status_t read(const Parcel& input) override;
363};
364
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800365}; // namespace android
366
Mathias Agopian9cce3252010-02-09 17:46:37 -0800367#endif // ANDROID_SF_LAYER_STATE_H