The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | |
| 17 | #ifndef ANDROID_LAYER_BASE_H |
| 18 | #define ANDROID_LAYER_BASE_H |
| 19 | |
| 20 | #include <stdint.h> |
| 21 | #include <sys/types.h> |
| 22 | |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 23 | #include <EGL/egl.h> |
| 24 | #include <EGL/eglext.h> |
| 25 | |
Mathias Agopian | 9779b22 | 2009-09-07 16:32:45 -0700 | [diff] [blame] | 26 | #include <private/ui/SharedBufferStack.h> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 27 | #include <private/ui/LayerState.h> |
| 28 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 29 | #include <utils/RefBase.h> |
| 30 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 31 | #include <ui/Region.h> |
| 32 | #include <ui/Overlay.h> |
| 33 | |
| 34 | #include <pixelflinger/pixelflinger.h> |
| 35 | |
| 36 | #include "Transform.h" |
| 37 | |
| 38 | namespace android { |
| 39 | |
| 40 | // --------------------------------------------------------------------------- |
| 41 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | class DisplayHardware; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 43 | class Client; |
Mathias Agopian | 6950e42 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 44 | class GraphicBuffer; |
| 45 | class GraphicPlane; |
| 46 | class SurfaceFlinger; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | |
| 48 | // --------------------------------------------------------------------------- |
| 49 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 50 | class LayerBase : public RefBase |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | { |
| 52 | // poor man's dynamic_cast below |
| 53 | template<typename T> |
| 54 | struct getTypeInfoOfAnyType { |
| 55 | static uint32_t get() { return T::typeInfo; } |
| 56 | }; |
| 57 | |
| 58 | template<typename T> |
| 59 | struct getTypeInfoOfAnyType<T*> { |
| 60 | static uint32_t get() { return getTypeInfoOfAnyType<T>::get(); } |
| 61 | }; |
| 62 | |
| 63 | public: |
| 64 | static const uint32_t typeInfo; |
| 65 | static const char* const typeID; |
| 66 | virtual char const* getTypeID() const { return typeID; } |
| 67 | virtual uint32_t getTypeInfo() const { return typeInfo; } |
| 68 | |
| 69 | template<typename T> |
| 70 | static T dynamicCast(LayerBase* base) { |
| 71 | uint32_t mostDerivedInfo = base->getTypeInfo(); |
| 72 | uint32_t castToInfo = getTypeInfoOfAnyType<T>::get(); |
| 73 | if ((mostDerivedInfo & castToInfo) == castToInfo) |
| 74 | return static_cast<T>(base); |
| 75 | return 0; |
| 76 | } |
| 77 | |
| 78 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 79 | LayerBase(SurfaceFlinger* flinger, DisplayID display); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 80 | |
| 81 | DisplayID dpy; |
| 82 | mutable bool contentDirty; |
| 83 | Region visibleRegionScreen; |
| 84 | Region transparentRegionScreen; |
| 85 | Region coveredRegionScreen; |
| 86 | |
| 87 | struct State { |
| 88 | uint32_t w; |
| 89 | uint32_t h; |
Mathias Agopian | e1b6f24 | 2009-09-29 22:39:22 -0700 | [diff] [blame] | 90 | uint32_t requested_w; |
| 91 | uint32_t requested_h; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 92 | uint32_t z; |
| 93 | uint8_t alpha; |
| 94 | uint8_t flags; |
| 95 | uint8_t reserved[2]; |
| 96 | int32_t sequence; // changes when visible regions can change |
| 97 | uint32_t tint; |
| 98 | Transform transform; |
| 99 | Region transparentRegion; |
| 100 | }; |
| 101 | |
| 102 | // modify current state |
| 103 | bool setPosition(int32_t x, int32_t y); |
| 104 | bool setLayer(uint32_t z); |
| 105 | bool setSize(uint32_t w, uint32_t h); |
| 106 | bool setAlpha(uint8_t alpha); |
| 107 | bool setMatrix(const layer_state_t::matrix22_t& matrix); |
| 108 | bool setTransparentRegionHint(const Region& opaque); |
| 109 | bool setFlags(uint8_t flags, uint8_t mask); |
| 110 | |
Mathias Agopian | 8851617 | 2009-09-29 22:32:36 -0700 | [diff] [blame] | 111 | void commitTransaction(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 112 | bool requestTransaction(); |
| 113 | void forceVisibilityTransaction(); |
| 114 | |
| 115 | uint32_t getTransactionFlags(uint32_t flags); |
| 116 | uint32_t setTransactionFlags(uint32_t flags); |
| 117 | |
| 118 | Rect visibleBounds() const; |
| 119 | void drawRegion(const Region& reg) const; |
| 120 | |
| 121 | void invalidate(); |
| 122 | |
| 123 | /** |
| 124 | * draw - performs some global clipping optimizations |
| 125 | * and calls onDraw(). |
| 126 | * Typically this method is not overridden, instead implement onDraw() |
| 127 | * to perform the actual drawing. |
| 128 | */ |
| 129 | virtual void draw(const Region& clip) const; |
| 130 | |
| 131 | /** |
| 132 | * onDraw - draws the surface. |
| 133 | */ |
| 134 | virtual void onDraw(const Region& clip) const = 0; |
| 135 | |
| 136 | /** |
| 137 | * initStates - called just after construction |
| 138 | */ |
| 139 | virtual void initStates(uint32_t w, uint32_t h, uint32_t flags); |
| 140 | |
| 141 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 142 | * doTransaction - process the transaction. This is a good place to figure |
| 143 | * out which attributes of the surface have changed. |
| 144 | */ |
| 145 | virtual uint32_t doTransaction(uint32_t transactionFlags); |
| 146 | |
| 147 | /** |
| 148 | * setVisibleRegion - called to set the new visible region. This gives |
| 149 | * a chance to update the new visible region or record the fact it changed. |
| 150 | */ |
| 151 | virtual void setVisibleRegion(const Region& visibleRegion); |
| 152 | |
| 153 | /** |
| 154 | * setCoveredRegion - called when the covered region changes. The covered |
| 155 | * region correspond to any area of the surface that is covered |
| 156 | * (transparently or not) by another surface. |
| 157 | */ |
| 158 | virtual void setCoveredRegion(const Region& coveredRegion); |
| 159 | |
| 160 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 161 | * validateVisibility - cache a bunch of things |
| 162 | */ |
| 163 | virtual void validateVisibility(const Transform& globalTransform); |
| 164 | |
| 165 | /** |
| 166 | * lockPageFlip - called each time the screen is redrawn and returns whether |
| 167 | * the visible regions need to be recomputed (this is a fairly heavy |
| 168 | * operation, so this should be set only if needed). Typically this is used |
| 169 | * to figure out if the content or size of a surface has changed. |
| 170 | */ |
| 171 | virtual void lockPageFlip(bool& recomputeVisibleRegions); |
| 172 | |
| 173 | /** |
| 174 | * unlockPageFlip - called each time the screen is redrawn. updates the |
| 175 | * final dirty region wrt the planeTransform. |
| 176 | * At this point, all visible regions, surface position and size, etc... are |
| 177 | * correct. |
| 178 | */ |
| 179 | virtual void unlockPageFlip(const Transform& planeTransform, Region& outDirtyRegion); |
| 180 | |
| 181 | /** |
| 182 | * finishPageFlip - called after all surfaces have drawn. |
| 183 | */ |
| 184 | virtual void finishPageFlip(); |
| 185 | |
| 186 | /** |
| 187 | * needsBlending - true if this surface needs blending |
| 188 | */ |
| 189 | virtual bool needsBlending() const { return false; } |
| 190 | |
| 191 | /** |
Mathias Agopian | cc93476 | 2009-09-23 19:16:27 -0700 | [diff] [blame] | 192 | * needsDithering - true if this surface needs dithering |
| 193 | */ |
| 194 | virtual bool needsDithering() const { return false; } |
| 195 | |
| 196 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 197 | * transformed -- true is this surface needs a to be transformed |
| 198 | */ |
| 199 | virtual bool transformed() const { return mTransformed; } |
| 200 | |
| 201 | /** |
| 202 | * isSecure - true if this surface is secure, that is if it prevents |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 203 | * screenshots or VNC servers. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 204 | */ |
| 205 | virtual bool isSecure() const { return false; } |
| 206 | |
Mathias Agopian | 0c4cec7 | 2009-10-02 18:12:30 -0700 | [diff] [blame] | 207 | /** Called from the main thread, when the surface is removed from the |
| 208 | * draw list */ |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 209 | virtual status_t ditch() { return NO_ERROR; } |
| 210 | |
Mathias Agopian | 0c4cec7 | 2009-10-02 18:12:30 -0700 | [diff] [blame] | 211 | /** called with the state lock when the surface is removed from the |
| 212 | * current list */ |
| 213 | virtual void onRemoved() { }; |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 214 | |
| 215 | |
| 216 | enum { // flags for doTransaction() |
| 217 | eVisibleRegion = 0x00000002, |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 218 | }; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 219 | |
| 220 | |
| 221 | inline const State& drawingState() const { return mDrawingState; } |
| 222 | inline const State& currentState() const { return mCurrentState; } |
| 223 | inline State& currentState() { return mCurrentState; } |
| 224 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 225 | static int compareCurrentStateZ( |
| 226 | sp<LayerBase> const * layerA, |
| 227 | sp<LayerBase> const * layerB) { |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 228 | return layerA[0]->currentState().z - layerB[0]->currentState().z; |
| 229 | } |
| 230 | |
| 231 | int32_t getOrientation() const { return mOrientation; } |
| 232 | int tx() const { return mLeft; } |
| 233 | int ty() const { return mTop; } |
| 234 | |
| 235 | protected: |
| 236 | const GraphicPlane& graphicPlane(int dpy) const; |
| 237 | GraphicPlane& graphicPlane(int dpy); |
| 238 | |
| 239 | GLuint createTexture() const; |
| 240 | |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 241 | struct Texture { |
| 242 | Texture() : name(-1U), width(0), height(0), |
Mathias Agopian | 6950e42 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 243 | image(EGL_NO_IMAGE_KHR), transform(0), |
| 244 | NPOTAdjust(false), dirty(true) { } |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 245 | GLuint name; |
| 246 | GLuint width; |
| 247 | GLuint height; |
Mathias Agopian | 6950e42 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 248 | GLuint potWidth; |
| 249 | GLuint potHeight; |
| 250 | GLfloat wScale; |
| 251 | GLfloat hScale; |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 252 | EGLImageKHR image; |
| 253 | uint32_t transform; |
Mathias Agopian | 6950e42 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 254 | bool NPOTAdjust; |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 255 | bool dirty; |
| 256 | }; |
Rebecca Schultz Zavin | c854678 | 2009-09-01 23:06:45 -0700 | [diff] [blame] | 257 | |
| 258 | void clearWithOpenGL(const Region& clip, GLclampx r, GLclampx g, |
| 259 | GLclampx b, GLclampx alpha) const; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 260 | void clearWithOpenGL(const Region& clip) const; |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 261 | void drawWithOpenGL(const Region& clip, const Texture& texture) const; |
Mathias Agopian | 6950e42 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 262 | void loadTexture(Texture* texture, |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 263 | const Region& dirty, const GGLSurface& t) const; |
Mathias Agopian | 9042b45 | 2009-10-26 20:12:37 -0700 | [diff] [blame] | 264 | status_t initializeEglImage( |
| 265 | const sp<GraphicBuffer>& buffer, Texture* texture); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 266 | |
Mathias Agopian | 999543b | 2009-06-23 18:08:22 -0700 | [diff] [blame] | 267 | |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 268 | sp<SurfaceFlinger> mFlinger; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 269 | uint32_t mFlags; |
| 270 | |
| 271 | // cached during validateVisibility() |
| 272 | bool mTransformed; |
Mathias Agopian | 44cac13 | 2009-09-23 18:34:53 -0700 | [diff] [blame] | 273 | bool mUseLinearFiltering; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 274 | int32_t mOrientation; |
| 275 | GLfixed mVertices[4][2]; |
| 276 | Rect mTransformedBounds; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 277 | int mLeft; |
| 278 | int mTop; |
| 279 | |
| 280 | // these are protected by an external lock |
| 281 | State mCurrentState; |
| 282 | State mDrawingState; |
| 283 | volatile int32_t mTransactionFlags; |
| 284 | |
| 285 | // don't change, don't need a lock |
| 286 | bool mPremultipliedAlpha; |
| 287 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 288 | // atomic |
| 289 | volatile int32_t mInvalidate; |
| 290 | |
| 291 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 292 | protected: |
| 293 | virtual ~LayerBase(); |
| 294 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 295 | private: |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 296 | LayerBase(const LayerBase& rhs); |
| 297 | void validateTexture(GLint textureName) const; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 298 | }; |
| 299 | |
| 300 | |
| 301 | // --------------------------------------------------------------------------- |
| 302 | |
| 303 | class LayerBaseClient : public LayerBase |
| 304 | { |
| 305 | public: |
| 306 | class Surface; |
| 307 | static const uint32_t typeInfo; |
| 308 | static const char* const typeID; |
| 309 | virtual char const* getTypeID() const { return typeID; } |
| 310 | virtual uint32_t getTypeInfo() const { return typeInfo; } |
| 311 | |
Mathias Agopian | 248b5bd | 2009-09-10 19:41:18 -0700 | [diff] [blame] | 312 | // lcblk is (almost) only accessed from the main SF thread, in the places |
| 313 | // where it's not, a reference to Client must be held |
| 314 | SharedBufferServer* lcblk; |
| 315 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 316 | LayerBaseClient(SurfaceFlinger* flinger, DisplayID display, |
Mathias Agopian | 6edf5af | 2009-06-19 17:00:27 -0700 | [diff] [blame] | 317 | const sp<Client>& client, int32_t i); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 318 | virtual ~LayerBaseClient(); |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 319 | virtual void onFirstRef(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 320 | |
Mathias Agopian | 248b5bd | 2009-09-10 19:41:18 -0700 | [diff] [blame] | 321 | const wp<Client> client; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 322 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 323 | inline uint32_t getIdentity() const { return mIdentity; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 324 | inline int32_t clientIndex() const { return mIndex; } |
| 325 | int32_t serverIndex() const; |
| 326 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 327 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 328 | sp<Surface> getSurface(); |
| 329 | virtual sp<Surface> createSurface() const; |
| 330 | |
Mathias Agopian | 0c4cec7 | 2009-10-02 18:12:30 -0700 | [diff] [blame] | 331 | virtual void onRemoved(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 332 | |
| 333 | class Surface : public BnSurface |
| 334 | { |
| 335 | public: |
Mathias Agopian | 18b6b49 | 2009-08-19 17:46:26 -0700 | [diff] [blame] | 336 | int32_t getToken() const { return mToken; } |
| 337 | int32_t getIdentity() const { return mIdentity; } |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 338 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 339 | protected: |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 340 | Surface(const sp<SurfaceFlinger>& flinger, |
| 341 | SurfaceID id, int identity, |
| 342 | const sp<LayerBaseClient>& owner); |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 343 | virtual ~Surface(); |
| 344 | virtual status_t onTransact(uint32_t code, const Parcel& data, |
| 345 | Parcel* reply, uint32_t flags); |
| 346 | sp<LayerBaseClient> getOwner() const; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 347 | |
| 348 | private: |
Mathias Agopian | 6950e42 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 349 | virtual sp<GraphicBuffer> requestBuffer(int index, int usage); |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 350 | virtual status_t registerBuffers(const ISurface::BufferHeap& buffers); |
| 351 | virtual void postBuffer(ssize_t offset); |
| 352 | virtual void unregisterBuffers(); |
| 353 | virtual sp<OverlayRef> createOverlay(uint32_t w, uint32_t h, |
| 354 | int32_t format); |
| 355 | |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 356 | protected: |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 357 | friend class LayerBaseClient; |
Mathias Agopian | 6cf0db2 | 2009-04-17 19:36:26 -0700 | [diff] [blame] | 358 | sp<SurfaceFlinger> mFlinger; |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 359 | int32_t mToken; |
| 360 | int32_t mIdentity; |
| 361 | wp<LayerBaseClient> mOwner; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 362 | }; |
| 363 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 364 | friend class Surface; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 365 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 366 | private: |
| 367 | int32_t mIndex; |
| 368 | mutable Mutex mLock; |
| 369 | mutable wp<Surface> mClientSurface; |
Mathias Agopian | c660395 | 2009-06-23 20:06:46 -0700 | [diff] [blame] | 370 | // only read |
| 371 | const uint32_t mIdentity; |
| 372 | static int32_t sIdentity; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 373 | }; |
| 374 | |
| 375 | // --------------------------------------------------------------------------- |
| 376 | |
| 377 | }; // namespace android |
| 378 | |
| 379 | #endif // ANDROID_LAYER_BASE_H |