blob: b1305c66073f7600ca809b398a910808e87fb7f0 [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#define SAFE_PARCEL(FUNC, ...) \
20 { \
21 status_t error = FUNC(__VA_ARGS__); \
22 if (error) { \
23 ALOGE("ERROR(%d). Failed to call parcel %s(%s)", error, #FUNC, #__VA_ARGS__); \
24 return error; \
25 } \
26 }
27
28#define SAFE_PARCEL_READ_SIZE(FUNC, COUNT, SIZE) \
29 { \
30 SAFE_PARCEL(FUNC, COUNT); \
31 if (static_cast<unsigned int>(*COUNT) > SIZE) { \
32 ALOGE("ERROR(BAD_VALUE). %s was greater than dataSize", #COUNT); \
33 return BAD_VALUE; \
34 } \
35 }
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080036
37#include <stdint.h>
38#include <sys/types.h>
39
Steven Thomas62a4cf82020-01-31 12:04:03 -080040#include <android/native_window.h>
Robert Carr0d480722017-01-10 16:42:54 -080041#include <gui/IGraphicBufferProducer.h>
Valerie Hau9dab9732019-08-20 09:29:25 -070042#include <gui/ITransactionCompletedListener.h>
Peiyong Lind3788632018-09-18 16:01:31 -070043#include <math/mat4.h>
Robert Carr2c358bf2018-08-08 15:58:15 -070044
45#ifndef NO_INPUT
Vishnu Naire798b472020-07-23 13:52:21 -070046#include <android/FocusRequest.h>
Robert Carr2c358bf2018-08-08 15:58:15 -070047#include <input/InputWindow.h>
48#endif
49
chaviw618c42d2020-07-24 15:25:08 -070050#include <gui/ISurfaceComposer.h>
Evan Rosky1f6d6d52018-12-06 10:47:26 -080051#include <gui/LayerMetadata.h>
Pablo Gamito11dcc222020-09-12 15:49:39 +000052#include <gui/SurfaceControl.h>
chaviw13fdc492017-06-27 12:40:18 -070053#include <math/vec3.h>
Lucas Dupinc3800b82020-10-02 16:24:48 -070054#include <ui/BlurRegion.h>
Marissa Wall61c58622018-07-18 10:12:20 -070055#include <ui/GraphicTypes.h>
Marissa Wall11303242018-07-26 13:36:24 -070056#include <ui/Rect.h>
57#include <ui/Region.h>
Dominik Laskowski718f9602019-11-09 20:01:35 -080058#include <ui/Rotation.h>
Vishnu Nair6213bd92020-05-08 17:42:25 -070059#include <ui/Transform.h>
Steven Thomas62a4cf82020-01-31 12:04:03 -080060#include <utils/Errors.h>
Mathias Agopian9cce3252010-02-09 17:46:37 -080061
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080062namespace android {
63
64class Parcel;
Mathias Agopian698c0872011-06-28 19:09:31 -070065class ISurfaceComposerClient;
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080066
Marissa Wall947d34e2019-03-29 14:03:53 -070067struct client_cache_t {
68 wp<IBinder> token = nullptr;
69 uint64_t id;
70
71 bool operator==(const client_cache_t& other) const { return id == other.id; }
72
73 bool isValid() const { return token != nullptr; }
Marissa Wall78b72202019-03-15 14:58:34 -070074};
75
Andy McFadden4125a4f2014-01-29 17:17:11 -080076/*
77 * Used to communicate layer information between SurfaceFlinger and its clients.
78 */
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080079struct layer_state_t {
Mathias Agopian3165cc22012-08-08 19:42:09 -070080 enum {
chaviwc5676c62020-09-18 15:01:04 -070081 eLayerHidden = 0x01, // SURFACE_HIDDEN in SurfaceControl.java
82 eLayerOpaque = 0x02, // SURFACE_OPAQUE
83 eLayerSkipScreenshot = 0x40, // SKIP_SCREENSHOT
84 eLayerSecure = 0x80, // SECURE
Vishnu Nairf6eddb62021-01-27 22:02:11 -080085 // Queue up BufferStateLayer buffers instead of dropping the oldest buffer when this flag is
86 // set. This blocks the client until all the buffers have been presented. If the buffers
87 // have presentation timestamps, then we may drop buffers.
88 eEnableBackpressure = 0x100, // ENABLE_BACKPRESSURE
Mathias Agopian3165cc22012-08-08 19:42:09 -070089 };
90
91 enum {
Marissa Wall11303242018-07-26 13:36:24 -070092 ePositionChanged = 0x00000001,
93 eLayerChanged = 0x00000002,
94 eSizeChanged = 0x00000004,
95 eAlphaChanged = 0x00000008,
96 eMatrixChanged = 0x00000010,
97 eTransparentRegionChanged = 0x00000020,
98 eFlagsChanged = 0x00000040,
99 eLayerStackChanged = 0x00000080,
Marissa Wallf58c14b2018-07-24 10:50:43 -0700100 eCropChanged_legacy = 0x00000100,
101 eDeferTransaction_legacy = 0x00000200,
Robert Carr916b0362020-10-06 13:53:03 -0700102 /* was ScalingModeChanged, now available 0x00000400, */
Vishnu Nairc97b8db2019-10-29 18:19:35 -0700103 eShadowRadiusChanged = 0x00000800,
Vishnu Nairdcce0e22018-08-23 08:35:19 -0700104 eReparentChildren = 0x00001000,
105 eDetachChildren = 0x00002000,
106 eRelativeLayerChanged = 0x00004000,
107 eReparent = 0x00008000,
108 eColorChanged = 0x00010000,
109 eDestroySurface = 0x00020000,
110 eTransformChanged = 0x00040000,
111 eTransformToDisplayInverseChanged = 0x00080000,
112 eCropChanged = 0x00100000,
113 eBufferChanged = 0x00200000,
114 eAcquireFenceChanged = 0x00400000,
115 eDataspaceChanged = 0x00800000,
116 eHdrMetadataChanged = 0x01000000,
117 eSurfaceDamageRegionChanged = 0x02000000,
118 eApiChanged = 0x04000000,
119 eSidebandStreamChanged = 0x08000000,
Peiyong Lind3788632018-09-18 16:01:31 -0700120 eColorTransformChanged = 0x10000000,
Marissa Wall3dad52d2019-03-22 14:03:19 -0700121 eHasListenerCallbacksChanged = 0x20000000,
Robert Carr2c358bf2018-08-08 15:58:15 -0700122 eInputInfoChanged = 0x40000000,
Lucas Dupin1b6531c2018-07-05 17:18:21 -0700123 eCornerRadiusChanged = 0x80000000,
Marissa Wall861616d2018-10-22 12:52:23 -0700124 eFrameChanged = 0x1'00000000,
Marissa Wallebc2c052019-01-16 19:16:55 -0800125 eCachedBufferChanged = 0x2'00000000,
Valerie Haudd0b7572019-01-29 14:59:27 -0800126 eBackgroundColorChanged = 0x4'00000000,
127 eMetadataChanged = 0x8'00000000,
Peiyong Linc502cb72019-03-01 15:00:23 -0800128 eColorSpaceAgnosticChanged = 0x10'00000000,
Ana Krulecc84d09b2019-11-02 23:10:29 +0100129 eFrameRateSelectionPriority = 0x20'00000000,
Steven Thomas3172e202020-01-06 19:25:30 -0800130 eFrameRateChanged = 0x40'00000000,
Lucas Dupin19c8f0e2019-11-25 17:55:44 -0800131 eBackgroundBlurRadiusChanged = 0x80'00000000,
Valerie Hau871d6352020-01-29 08:44:02 -0800132 eProducerDisconnect = 0x100'00000000,
Vishnu Nair6213bd92020-05-08 17:42:25 -0700133 eFixedTransformHintChanged = 0x200'00000000,
Vishnu Nair6b7c5c92020-09-29 17:27:05 -0700134 eFrameNumberChanged = 0x400'00000000,
Robert Carr9b611b72020-10-19 12:00:23 -0700135 eFrameTimelineVsyncChanged = 0x800'00000000,
Lucas Dupinc3800b82020-10-02 16:24:48 -0700136 eBlurRegionsChanged = 0x1000'00000000,
Vishnu Naircf26a0a2020-11-13 12:56:20 -0800137 eAutoRefreshChanged = 0x2000'00000000,
Mathias Agopian3165cc22012-08-08 19:42:09 -0700138 };
139
Pablo Gamito11dcc222020-09-12 15:49:39 +0000140 layer_state_t();
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800141
Robert Carr2c5f6d22017-09-26 12:30:35 -0700142 void merge(const layer_state_t& other);
Marissa Wall11303242018-07-26 13:36:24 -0700143 status_t write(Parcel& output) const;
144 status_t read(const Parcel& input);
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800145
Marissa Wall11303242018-07-26 13:36:24 -0700146 struct matrix22_t {
147 float dsdx{0};
148 float dtdx{0};
149 float dtdy{0};
150 float dsdy{0};
chaviw308ddba2020-08-11 16:23:51 -0700151 status_t write(Parcel& output) const;
152 status_t read(const Parcel& input);
Marissa Wall11303242018-07-26 13:36:24 -0700153 };
154 sp<IBinder> surface;
Pablo Gamitodbc31672020-09-01 18:28:58 +0000155 int32_t layerId;
Garfield Tan8a3083e2018-12-03 13:21:07 -0800156 uint64_t what;
Marissa Wall11303242018-07-26 13:36:24 -0700157 float x;
158 float y;
159 int32_t z;
160 uint32_t w;
161 uint32_t h;
162 uint32_t layerStack;
163 float alpha;
Vishnu Nairf6eddb62021-01-27 22:02:11 -0800164 uint32_t flags;
165 uint32_t mask;
Marissa Wall11303242018-07-26 13:36:24 -0700166 uint8_t reserved;
167 matrix22_t matrix;
Marissa Wallf58c14b2018-07-24 10:50:43 -0700168 Rect crop_legacy;
Lucas Dupin1b6531c2018-07-05 17:18:21 -0700169 float cornerRadius;
Lucas Dupin19c8f0e2019-11-25 17:55:44 -0800170 uint32_t backgroundBlurRadius;
Pablo Gamito11dcc222020-09-12 15:49:39 +0000171 sp<SurfaceControl> barrierSurfaceControl_legacy;
172 sp<SurfaceControl> reparentSurfaceControl;
Vishnu Nair6b7c5c92020-09-29 17:27:05 -0700173 uint64_t barrierFrameNumber;
Robert Carr0d480722017-01-10 16:42:54 -0800174
Pablo Gamito11dcc222020-09-12 15:49:39 +0000175 sp<SurfaceControl> relativeLayerSurfaceControl;
Robert Carrdb66e622017-04-10 16:55:57 -0700176
Pablo Gamito11dcc222020-09-12 15:49:39 +0000177 sp<SurfaceControl> parentSurfaceControlForChild;
chaviw06178942017-07-27 10:25:59 -0700178
Marissa Wall11303242018-07-26 13:36:24 -0700179 half3 color;
chaviw13fdc492017-06-27 12:40:18 -0700180
Marissa Wall11303242018-07-26 13:36:24 -0700181 // non POD must be last. see write/read
182 Region transparentRegion;
Marissa Wall61c58622018-07-18 10:12:20 -0700183
184 uint32_t transform;
185 bool transformToDisplayInverse;
186 Rect crop;
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200187 Rect orientedDisplaySpaceRect;
Marissa Wall61c58622018-07-18 10:12:20 -0700188 sp<GraphicBuffer> buffer;
189 sp<Fence> acquireFence;
190 ui::Dataspace dataspace;
191 HdrMetadata hdrMetadata;
192 Region surfaceDamageRegion;
193 int32_t api;
194 sp<NativeHandle> sidebandStream;
Peiyong Lind3788632018-09-18 16:01:31 -0700195 mat4 colorTransform;
Lucas Dupinc3800b82020-10-02 16:24:48 -0700196 std::vector<BlurRegion> blurRegions;
Marissa Wallc837b5e2018-10-12 10:04:44 -0700197
Robert Carr2c358bf2018-08-08 15:58:15 -0700198#ifndef NO_INPUT
Chris Ye0783e992020-06-02 21:34:49 -0700199 sp<InputWindowHandle> inputHandle = new InputWindowHandle();
Robert Carr2c358bf2018-08-08 15:58:15 -0700200#endif
Marissa Wallebc2c052019-01-16 19:16:55 -0800201
Marissa Wall947d34e2019-03-29 14:03:53 -0700202 client_cache_t cachedBuffer;
Valerie Haued54efa2019-01-11 20:03:14 -0800203
Evan Rosky1f6d6d52018-12-06 10:47:26 -0800204 LayerMetadata metadata;
Valerie Haudd0b7572019-01-29 14:59:27 -0800205
206 // The following refer to the alpha, and dataspace, respectively of
207 // the background color layer
208 float bgColorAlpha;
209 ui::Dataspace bgColorDataspace;
Peiyong Linc502cb72019-03-01 15:00:23 -0800210
211 // A color space agnostic layer means the color of this layer can be
212 // interpreted in any color space.
213 bool colorSpaceAgnostic;
Valerie Hau9dab9732019-08-20 09:29:25 -0700214
215 std::vector<ListenerCallbacks> listeners;
Vishnu Nairc97b8db2019-10-29 18:19:35 -0700216
217 // Draws a shadow around the surface.
218 float shadowRadius;
Ana Krulecc84d09b2019-11-02 23:10:29 +0100219
220 // Priority of the layer assigned by Window Manager.
221 int32_t frameRateSelectionPriority;
Steven Thomas3172e202020-01-06 19:25:30 -0800222
Steven Thomas62a4cf82020-01-31 12:04:03 -0800223 // Layer frame rate and compatibility. See ANativeWindow_setFrameRate().
Steven Thomas3172e202020-01-06 19:25:30 -0800224 float frameRate;
Steven Thomas62a4cf82020-01-31 12:04:03 -0800225 int8_t frameRateCompatibility;
Marin Shalamanov46084422020-10-13 12:33:42 +0200226 bool shouldBeSeamless;
Vishnu Nair6213bd92020-05-08 17:42:25 -0700227
228 // Set by window manager indicating the layer and all its children are
229 // in a different orientation than the display. The hint suggests that
230 // the graphic producers should receive a transform hint as if the
231 // display was in this orientation. When the display changes to match
232 // the layer orientation, the graphic producer may not need to allocate
233 // a buffer of a different size. -1 means the transform hint is not set,
234 // otherwise the value will be a valid ui::Rotation.
235 ui::Transform::RotationFlags fixedTransformHint;
Vishnu Nair6b7c5c92020-09-29 17:27:05 -0700236
237 // Used by BlastBufferQueue to forward the framenumber generated by the
238 // graphics producer.
239 uint64_t frameNumber;
Robert Carr9b611b72020-10-19 12:00:23 -0700240
241 int64_t frameTimelineVsyncId;
Vishnu Naircf26a0a2020-11-13 12:56:20 -0800242
243 // Indicates that the consumer should acquire the next frame as soon as it
244 // can and not wait for a frame to become available. This is only relevant
245 // in shared buffer mode.
246 bool autoRefresh;
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800247};
248
Mathias Agopian698c0872011-06-28 19:09:31 -0700249struct ComposerState {
Mathias Agopian698c0872011-06-28 19:09:31 -0700250 layer_state_t state;
Marissa Wall11303242018-07-26 13:36:24 -0700251 status_t write(Parcel& output) const;
252 status_t read(const Parcel& input);
Mathias Agopian698c0872011-06-28 19:09:31 -0700253};
254
Mathias Agopian8b33f032012-07-24 20:43:54 -0700255struct DisplayState {
Mathias Agopian3165cc22012-08-08 19:42:09 -0700256 enum {
Marissa Wall11303242018-07-26 13:36:24 -0700257 eSurfaceChanged = 0x01,
258 eLayerStackChanged = 0x02,
259 eDisplayProjectionChanged = 0x04,
260 eDisplaySizeChanged = 0x08
Mathias Agopiane57f2922012-08-09 16:29:12 -0700261 };
262
Pablo Ceballos60d69222015-08-07 14:47:20 -0700263 DisplayState();
Robert Carr2c5f6d22017-09-26 12:30:35 -0700264 void merge(const DisplayState& other);
Pablo Ceballos60d69222015-08-07 14:47:20 -0700265
Mathias Agopiane57f2922012-08-09 16:29:12 -0700266 uint32_t what;
267 sp<IBinder> token;
Andy McFadden2adaf042012-12-18 09:49:45 -0800268 sp<IGraphicBufferProducer> surface;
Mathias Agopiane57f2922012-08-09 16:29:12 -0700269 uint32_t layerStack;
Chia-I Wuff79ef82018-08-22 15:27:32 -0700270
271 // These states define how layers are projected onto the physical display.
272 //
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200273 // Layers are first clipped to `layerStackSpaceRect'. They are then translated and
274 // scaled from `layerStackSpaceRect' to `orientedDisplaySpaceRect'. Finally, they are rotated
275 // according to `orientation', `width', and `height'.
Chia-I Wuff79ef82018-08-22 15:27:32 -0700276 //
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200277 // For example, assume layerStackSpaceRect is Rect(0, 0, 200, 100), orientedDisplaySpaceRect is
278 // Rect(20, 10, 420, 210), and the size of the display is WxH. When orientation is 0, layers
279 // will be scaled by a factor of 2 and translated by (20, 10). When orientation is 1, layers
280 // will be additionally rotated by 90 degrees around the origin clockwise and translated by (W,
281 // 0).
Dominik Laskowski718f9602019-11-09 20:01:35 -0800282 ui::Rotation orientation = ui::ROTATION_0;
Marin Shalamanov6ad317c2020-07-29 23:34:07 +0200283 Rect layerStackSpaceRect;
284 Rect orientedDisplaySpaceRect;
Chia-I Wuff79ef82018-08-22 15:27:32 -0700285
Michael Wright1f6078a2014-06-26 16:01:02 -0700286 uint32_t width, height;
Chia-I Wuff79ef82018-08-22 15:27:32 -0700287
Mathias Agopiane57f2922012-08-09 16:29:12 -0700288 status_t write(Parcel& output) const;
289 status_t read(const Parcel& input);
Mathias Agopian8b33f032012-07-24 20:43:54 -0700290};
291
chaviw273171b2018-12-26 11:46:30 -0800292struct InputWindowCommands {
Vishnu Naire798b472020-07-23 13:52:21 -0700293#ifndef NO_INPUT
294 std::vector<FocusRequest> focusRequests;
295#endif
chaviw291d88a2019-02-14 10:33:58 -0800296 bool syncInputWindows{false};
chaviw273171b2018-12-26 11:46:30 -0800297
Vishnu Naire798b472020-07-23 13:52:21 -0700298 // Merges the passed in commands and returns true if there were any changes.
299 bool merge(const InputWindowCommands& other);
Vishnu Nair958da932020-08-21 17:12:37 -0700300 bool empty() const;
chaviw273171b2018-12-26 11:46:30 -0800301 void clear();
chaviw308ddba2020-08-11 16:23:51 -0700302 status_t write(Parcel& output) const;
303 status_t read(const Parcel& input);
chaviw273171b2018-12-26 11:46:30 -0800304};
305
Marissa Wall11303242018-07-26 13:36:24 -0700306static inline int compare_type(const ComposerState& lhs, const ComposerState& rhs) {
Marissa Wall11303242018-07-26 13:36:24 -0700307 if (lhs.state.surface < rhs.state.surface) return -1;
308 if (lhs.state.surface > rhs.state.surface) return 1;
Robert Carr4cdc58f2017-08-23 14:22:20 -0700309 return 0;
310}
311
Marissa Wall11303242018-07-26 13:36:24 -0700312static inline int compare_type(const DisplayState& lhs, const DisplayState& rhs) {
Robert Carr4cdc58f2017-08-23 14:22:20 -0700313 return compare_type(lhs.token, rhs.token);
314}
315
Ady Abrahamdd5bfa92021-01-07 17:56:08 -0800316// Returns true if the frameRate is valid.
317//
318// @param frameRate the frame rate in Hz
319// @param compatibility a ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_*
320// @param functionName calling function or nullptr. Used for logging
321// @param privileged whether caller has unscoped surfaceflinger access
322bool ValidateFrameRate(float frameRate, int8_t compatibility, const char* functionName,
323 bool privileged = false);
Steven Thomas62a4cf82020-01-31 12:04:03 -0800324
chaviw618c42d2020-07-24 15:25:08 -0700325struct CaptureArgs {
chaviw4b9d5e12020-08-04 18:30:35 -0700326 const static int32_t UNSET_UID = -1;
chaviw618c42d2020-07-24 15:25:08 -0700327 virtual ~CaptureArgs() = default;
328
329 ui::PixelFormat pixelFormat{ui::PixelFormat::RGBA_8888};
330 Rect sourceCrop;
331 float frameScale{1};
332 bool captureSecureLayers{false};
chaviw4b9d5e12020-08-04 18:30:35 -0700333 int32_t uid{UNSET_UID};
Peiyong Lincd261472020-10-06 18:05:25 -0700334 // Force capture to be in a color space. If the value is ui::Dataspace::UNKNOWN, the captured
335 // result will be in the display's colorspace.
arthurhung79e81aa2020-08-28 00:09:19 +0800336 // The display may use non-RGB dataspace (ex. displayP3) that could cause pixel data could be
Peiyong Lincd261472020-10-06 18:05:25 -0700337 // different from SRGB (byte per color), and failed when checking colors in tests.
338 // NOTE: In normal cases, we want the screen to be captured in display's colorspace.
339 ui::Dataspace dataspace = ui::Dataspace::UNKNOWN;
chaviw618c42d2020-07-24 15:25:08 -0700340
Peiyong Lin05cc0112020-10-14 16:16:37 -0700341 // The receiver of the capture can handle protected buffer. A protected buffer has
342 // GRALLOC_USAGE_PROTECTED usage bit and must not be accessed unprotected behaviour.
343 // Any read/write access from unprotected context will result in undefined behaviour.
344 // Protected contents are typically DRM contents. This has no direct implication to the
345 // secure property of the surface, which is specified by the application explicitly to avoid
346 // the contents being accessed/captured by screenshot or unsecure display.
347 bool allowProtected = false;
348
chaviw618c42d2020-07-24 15:25:08 -0700349 virtual status_t write(Parcel& output) const;
350 virtual status_t read(const Parcel& input);
351};
352
353struct DisplayCaptureArgs : CaptureArgs {
354 sp<IBinder> displayToken;
355 uint32_t width{0};
356 uint32_t height{0};
357 bool useIdentityTransform{false};
chaviw618c42d2020-07-24 15:25:08 -0700358
359 status_t write(Parcel& output) const override;
360 status_t read(const Parcel& input) override;
361};
362
363struct LayerCaptureArgs : CaptureArgs {
364 sp<IBinder> layerHandle;
365 std::unordered_set<sp<IBinder>, ISurfaceComposer::SpHash<IBinder>> excludeHandles;
chaviw70cb6a42020-07-30 13:57:36 -0700366 bool childrenOnly{false};
chaviw618c42d2020-07-24 15:25:08 -0700367
368 status_t write(Parcel& output) const override;
369 status_t read(const Parcel& input) override;
370};
371
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -0800372}; // namespace android
373
Mathias Agopian9cce3252010-02-09 17:46:37 -0800374#endif // ANDROID_SF_LAYER_STATE_H