Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 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 | |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 17 | #ifndef ANDROID_HWUI_CACHES_H |
| 18 | #define ANDROID_HWUI_CACHES_H |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 19 | |
Romain Guy | a2341a9 | 2010-09-08 18:04:33 -0700 | [diff] [blame] | 20 | #ifndef LOG_TAG |
| 21 | #define LOG_TAG "OpenGLRenderer" |
| 22 | #endif |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 23 | |
| 24 | #include <utils/Singleton.h> |
| 25 | |
Romain Guy | 7953745 | 2011-10-12 13:48:51 -0700 | [diff] [blame] | 26 | #include <cutils/compiler.h> |
| 27 | |
Romain Guy | 746b740 | 2010-10-26 16:27:31 -0700 | [diff] [blame] | 28 | #include "Extensions.h" |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 29 | #include "FontRenderer.h" |
| 30 | #include "GammaFontRenderer.h" |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 31 | #include "TextureCache.h" |
| 32 | #include "LayerCache.h" |
| 33 | #include "GradientCache.h" |
| 34 | #include "PatchCache.h" |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 35 | #include "ProgramCache.h" |
Romain Guy | 01d58e4 | 2011-01-19 21:54:02 -0800 | [diff] [blame] | 36 | #include "ShapeCache.h" |
Romain Guy | ff26a0c | 2011-01-20 11:35:46 -0800 | [diff] [blame] | 37 | #include "PathCache.h" |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 38 | #include "TextDropShadowCache.h" |
Romain Guy | e2d345e | 2010-09-24 18:39:22 -0700 | [diff] [blame] | 39 | #include "FboCache.h" |
Chet Haase | 5c13d89 | 2010-10-08 08:37:55 -0700 | [diff] [blame] | 40 | #include "ResourceCache.h" |
Romain Guy | 0baaac5 | 2012-08-31 20:31:01 -0700 | [diff] [blame] | 41 | #include "Stencil.h" |
Romain Guy | 211efea | 2012-07-31 21:16:07 -0700 | [diff] [blame] | 42 | #include "Dither.h" |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 43 | |
| 44 | namespace android { |
| 45 | namespace uirenderer { |
| 46 | |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 47 | /////////////////////////////////////////////////////////////////////////////// |
| 48 | // Globals |
| 49 | /////////////////////////////////////////////////////////////////////////////// |
| 50 | |
| 51 | #define REQUIRED_TEXTURE_UNITS_COUNT 3 |
| 52 | |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 53 | #define REGION_MESH_QUAD_COUNT 512 |
| 54 | |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 55 | // Generates simple and textured vertices |
| 56 | #define FV(x, y, u, v) { { x, y }, { u, v } } |
| 57 | |
| 58 | // This array is never used directly but used as a memcpy source in the |
| 59 | // OpenGLRenderer constructor |
| 60 | static const TextureVertex gMeshVertices[] = { |
| 61 | FV(0.0f, 0.0f, 0.0f, 0.0f), |
| 62 | FV(1.0f, 0.0f, 1.0f, 0.0f), |
| 63 | FV(0.0f, 1.0f, 0.0f, 1.0f), |
| 64 | FV(1.0f, 1.0f, 1.0f, 1.0f) |
| 65 | }; |
| 66 | static const GLsizei gMeshStride = sizeof(TextureVertex); |
Chet Haase | 5b0200b | 2011-04-13 17:58:08 -0700 | [diff] [blame] | 67 | static const GLsizei gVertexStride = sizeof(Vertex); |
| 68 | static const GLsizei gAlphaVertexStride = sizeof(AlphaVertex); |
Chet Haase | 99585ad | 2011-05-02 15:00:16 -0700 | [diff] [blame] | 69 | static const GLsizei gAAVertexStride = sizeof(AAVertex); |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 70 | static const GLsizei gMeshTextureOffset = 2 * sizeof(float); |
Chris Craik | 6ebdc11 | 2012-08-31 18:24:33 -0700 | [diff] [blame] | 71 | static const GLsizei gVertexAlphaOffset = 2 * sizeof(float); |
Chet Haase | 99585ad | 2011-05-02 15:00:16 -0700 | [diff] [blame] | 72 | static const GLsizei gVertexAAWidthOffset = 2 * sizeof(float); |
| 73 | static const GLsizei gVertexAALengthOffset = 3 * sizeof(float); |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 74 | static const GLsizei gMeshCount = 4; |
| 75 | |
Romain Guy | a1d3c91 | 2011-12-13 14:55:06 -0800 | [diff] [blame] | 76 | static const GLenum gTextureUnits[] = { |
| 77 | GL_TEXTURE0, |
| 78 | GL_TEXTURE1, |
| 79 | GL_TEXTURE2 |
| 80 | }; |
| 81 | |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 82 | /////////////////////////////////////////////////////////////////////////////// |
| 83 | // Debug |
| 84 | /////////////////////////////////////////////////////////////////////////////// |
| 85 | |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 86 | struct CacheLogger { |
| 87 | CacheLogger() { |
Romain Guy | d6b2a00 | 2011-06-17 17:45:59 -0700 | [diff] [blame] | 88 | INIT_LOGD("Creating OpenGL renderer caches"); |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 89 | } |
| 90 | }; // struct CacheLogger |
| 91 | |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 92 | /////////////////////////////////////////////////////////////////////////////// |
| 93 | // Caches |
| 94 | /////////////////////////////////////////////////////////////////////////////// |
| 95 | |
Romain Guy | bb0acdf | 2012-03-05 13:44:35 -0800 | [diff] [blame] | 96 | class DisplayList; |
| 97 | |
Romain Guy | 7953745 | 2011-10-12 13:48:51 -0700 | [diff] [blame] | 98 | class ANDROID_API Caches: public Singleton<Caches> { |
Chet Haase | dd78cca | 2010-10-22 18:59:26 -0700 | [diff] [blame] | 99 | Caches(); |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 100 | |
| 101 | friend class Singleton<Caches>; |
| 102 | |
Romain Guy | e190aa6 | 2010-11-10 19:01:29 -0800 | [diff] [blame] | 103 | CacheLogger mLogger; |
Romain Guy | 9bca479 | 2010-10-25 18:42:25 -0700 | [diff] [blame] | 104 | |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 105 | public: |
Romain Guy | bdf7609 | 2011-07-18 15:00:43 -0700 | [diff] [blame] | 106 | enum FlushMode { |
Romain Guy | 6d7475d | 2011-07-27 16:28:21 -0700 | [diff] [blame] | 107 | kFlushMode_Layers = 0, |
| 108 | kFlushMode_Moderate, |
Romain Guy | bdf7609 | 2011-07-18 15:00:43 -0700 | [diff] [blame] | 109 | kFlushMode_Full |
| 110 | }; |
| 111 | |
| 112 | /** |
Romain Guy | dfa1046 | 2012-05-12 16:18:58 -0700 | [diff] [blame] | 113 | * Initialize caches. |
Romain Guy | 8ff6b9e | 2011-11-09 20:10:18 -0800 | [diff] [blame] | 114 | */ |
| 115 | void init(); |
| 116 | |
| 117 | /** |
Romain Guy | bdf7609 | 2011-07-18 15:00:43 -0700 | [diff] [blame] | 118 | * Flush the cache. |
| 119 | * |
| 120 | * @param mode Indicates how much of the cache should be flushed |
| 121 | */ |
| 122 | void flush(FlushMode mode); |
| 123 | |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 124 | /** |
Romain Guy | 8ff6b9e | 2011-11-09 20:10:18 -0800 | [diff] [blame] | 125 | * Destroys all resources associated with this cache. This should |
| 126 | * be called after a flush(kFlushMode_Full). |
| 127 | */ |
| 128 | void terminate(); |
| 129 | |
| 130 | /** |
Romain Guy | e190aa6 | 2010-11-10 19:01:29 -0800 | [diff] [blame] | 131 | * Indicates whether the renderer is in debug mode. |
| 132 | * This debug mode provides limited information to app developers. |
| 133 | */ |
| 134 | DebugLevel getDebugLevel() const { |
| 135 | return mDebugLevel; |
| 136 | } |
| 137 | |
| 138 | /** |
Romain Guy | fe48f65 | 2010-11-11 15:36:56 -0800 | [diff] [blame] | 139 | * Call this on each frame to ensure that garbage is deleted from |
| 140 | * GPU memory. |
| 141 | */ |
| 142 | void clearGarbage(); |
| 143 | |
| 144 | /** |
Romain Guy | ada830f | 2011-01-13 12:13:20 -0800 | [diff] [blame] | 145 | * Can be used to delete a layer from a non EGL thread. |
Romain Guy | 57066eb | 2011-01-12 12:53:32 -0800 | [diff] [blame] | 146 | */ |
Romain Guy | ada830f | 2011-01-13 12:13:20 -0800 | [diff] [blame] | 147 | void deleteLayerDeferred(Layer* layer); |
Romain Guy | 57066eb | 2011-01-12 12:53:32 -0800 | [diff] [blame] | 148 | |
Romain Guy | bb0acdf | 2012-03-05 13:44:35 -0800 | [diff] [blame] | 149 | /* |
| 150 | * Can be used to delete a display list from a non EGL thread. |
| 151 | */ |
| 152 | void deleteDisplayListDeferred(DisplayList* layer); |
| 153 | |
Romain Guy | 57066eb | 2011-01-12 12:53:32 -0800 | [diff] [blame] | 154 | /** |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 155 | * Binds the VBO used to render simple textured quads. |
| 156 | */ |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 157 | bool bindMeshBuffer(); |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 158 | |
| 159 | /** |
| 160 | * Binds the specified VBO if needed. |
| 161 | */ |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 162 | bool bindMeshBuffer(const GLuint buffer); |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 163 | |
| 164 | /** |
| 165 | * Unbinds the VBO used to render simple textured quads. |
| 166 | */ |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 167 | bool unbindMeshBuffer(); |
| 168 | |
Romain Guy | 15bc643 | 2011-12-13 13:11:32 -0800 | [diff] [blame] | 169 | bool bindIndicesBuffer(const GLuint buffer); |
| 170 | bool unbindIndicesBuffer(); |
| 171 | |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 172 | /** |
| 173 | * Binds an attrib to the specified float vertex pointer. |
| 174 | * Assumes a stride of gMeshStride and a size of 2. |
| 175 | */ |
| 176 | void bindPositionVertexPointer(bool force, GLuint slot, GLvoid* vertices, |
| 177 | GLsizei stride = gMeshStride); |
| 178 | |
| 179 | /** |
| 180 | * Binds an attrib to the specified float vertex pointer. |
| 181 | * Assumes a stride of gMeshStride and a size of 2. |
| 182 | */ |
| 183 | void bindTexCoordsVertexPointer(bool force, GLuint slot, GLvoid* vertices); |
| 184 | |
| 185 | /** |
| 186 | * Resets the vertex pointers. |
| 187 | */ |
| 188 | void resetVertexPointers(); |
| 189 | void resetTexCoordsVertexPointer(); |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 190 | |
Romain Guy | 15bc643 | 2011-12-13 13:11:32 -0800 | [diff] [blame] | 191 | void enableTexCoordsVertexArray(); |
| 192 | void disbaleTexCoordsVertexArray(); |
| 193 | |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 194 | /** |
Romain Guy | a1d3c91 | 2011-12-13 14:55:06 -0800 | [diff] [blame] | 195 | * Activate the specified texture unit. The texture unit must |
| 196 | * be specified using an integer number (0 for GL_TEXTURE0 etc.) |
| 197 | */ |
| 198 | void activeTexture(GLuint textureUnit); |
| 199 | |
| 200 | /** |
Romain Guy | 8f85e80 | 2011-12-14 19:23:32 -0800 | [diff] [blame] | 201 | * Sets the scissor for the current surface. |
| 202 | */ |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 203 | bool setScissor(GLint x, GLint y, GLint width, GLint height); |
Romain Guy | 8f85e80 | 2011-12-14 19:23:32 -0800 | [diff] [blame] | 204 | |
| 205 | /** |
Romain Guy | 82bc7a7 | 2012-01-03 14:13:39 -0800 | [diff] [blame] | 206 | * Resets the scissor state. |
| 207 | */ |
| 208 | void resetScissor(); |
| 209 | |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 210 | bool enableScissor(); |
| 211 | bool disableScissor(); |
Romain Guy | 586cae3 | 2012-07-13 15:28:31 -0700 | [diff] [blame] | 212 | void setScissorEnabled(bool enabled); |
| 213 | |
Romain Guy | 82bc7a7 | 2012-01-03 14:13:39 -0800 | [diff] [blame] | 214 | /** |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 215 | * Returns the mesh used to draw regions. Calling this method will |
| 216 | * bind a VBO of type GL_ELEMENT_ARRAY_BUFFER that contains the |
| 217 | * indices for the region mesh. |
| 218 | */ |
| 219 | TextureVertex* getRegionMesh(); |
| 220 | |
Romain Guy | c15008e | 2010-11-10 11:59:15 -0800 | [diff] [blame] | 221 | /** |
| 222 | * Displays the memory usage of each cache and the total sum. |
| 223 | */ |
| 224 | void dumpMemoryUsage(); |
Chet Haase | 9c1e23b | 2011-03-24 10:51:31 -0700 | [diff] [blame] | 225 | void dumpMemoryUsage(String8& log); |
Romain Guy | c15008e | 2010-11-10 11:59:15 -0800 | [diff] [blame] | 226 | |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 227 | bool blend; |
| 228 | GLenum lastSrcMode; |
| 229 | GLenum lastDstMode; |
| 230 | Program* currentProgram; |
Romain Guy | 586cae3 | 2012-07-13 15:28:31 -0700 | [diff] [blame] | 231 | bool scissorEnabled; |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 232 | |
Romain Guy | 746b740 | 2010-10-26 16:27:31 -0700 | [diff] [blame] | 233 | // VBO to draw with |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 234 | GLuint meshBuffer; |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 235 | |
Romain Guy | 746b740 | 2010-10-26 16:27:31 -0700 | [diff] [blame] | 236 | // GL extensions |
| 237 | Extensions extensions; |
| 238 | |
| 239 | // Misc |
| 240 | GLint maxTextureSize; |
Romain Guy | 4ff0cf4 | 2012-08-06 14:51:10 -0700 | [diff] [blame] | 241 | bool debugLayersUpdates; |
Romain Guy | 746b740 | 2010-10-26 16:27:31 -0700 | [diff] [blame] | 242 | |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 243 | TextureCache textureCache; |
| 244 | LayerCache layerCache; |
| 245 | GradientCache gradientCache; |
| 246 | ProgramCache programCache; |
| 247 | PathCache pathCache; |
Romain Guy | 01d58e4 | 2011-01-19 21:54:02 -0800 | [diff] [blame] | 248 | RoundRectShapeCache roundRectShapeCache; |
| 249 | CircleShapeCache circleShapeCache; |
Romain Guy | c1cd9ba3 | 2011-01-23 14:18:41 -0800 | [diff] [blame] | 250 | OvalShapeCache ovalShapeCache; |
| 251 | RectShapeCache rectShapeCache; |
Romain Guy | 8b2f526 | 2011-01-23 16:15:02 -0800 | [diff] [blame] | 252 | ArcShapeCache arcShapeCache; |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 253 | PatchCache patchCache; |
| 254 | TextDropShadowCache dropShadowCache; |
Romain Guy | e2d345e | 2010-09-24 18:39:22 -0700 | [diff] [blame] | 255 | FboCache fboCache; |
Chet Haase | 5c13d89 | 2010-10-08 08:37:55 -0700 | [diff] [blame] | 256 | ResourceCache resourceCache; |
Romain Guy | 29d8997 | 2010-09-22 16:10:57 -0700 | [diff] [blame] | 257 | |
Romain Guy | b1d0a4e | 2012-07-13 18:25:35 -0700 | [diff] [blame] | 258 | GammaFontRenderer* fontRenderer; |
| 259 | |
Romain Guy | 0baaac5 | 2012-08-31 20:31:01 -0700 | [diff] [blame] | 260 | Dither dither; |
| 261 | #if STENCIL_BUFFER_SIZE |
| 262 | Stencil stencil; |
| 263 | #endif |
| 264 | |
Romain Guy | dfa1046 | 2012-05-12 16:18:58 -0700 | [diff] [blame] | 265 | // Debug methods |
Romain Guy | 13631f3 | 2012-01-30 17:41:55 -0800 | [diff] [blame] | 266 | PFNGLINSERTEVENTMARKEREXTPROC eventMark; |
| 267 | PFNGLPUSHGROUPMARKEREXTPROC startMark; |
| 268 | PFNGLPOPGROUPMARKEREXTPROC endMark; |
| 269 | |
Romain Guy | dfa1046 | 2012-05-12 16:18:58 -0700 | [diff] [blame] | 270 | PFNGLLABELOBJECTEXTPROC setLabel; |
| 271 | PFNGLGETOBJECTLABELEXTPROC getLabel; |
| 272 | |
Romain Guy | e190aa6 | 2010-11-10 19:01:29 -0800 | [diff] [blame] | 273 | private: |
Romain Guy | b1d0a4e | 2012-07-13 18:25:35 -0700 | [diff] [blame] | 274 | void initFont(); |
Romain Guy | dfa1046 | 2012-05-12 16:18:58 -0700 | [diff] [blame] | 275 | void initExtensions(); |
| 276 | void initConstraints(); |
Romain Guy | 4ff0cf4 | 2012-08-06 14:51:10 -0700 | [diff] [blame] | 277 | void initProperties(); |
Romain Guy | dfa1046 | 2012-05-12 16:18:58 -0700 | [diff] [blame] | 278 | |
| 279 | static void eventMarkNull(GLsizei length, const GLchar* marker) { } |
| 280 | static void startMarkNull(GLsizei length, const GLchar* marker) { } |
Romain Guy | 13631f3 | 2012-01-30 17:41:55 -0800 | [diff] [blame] | 281 | static void endMarkNull() { } |
| 282 | |
Romain Guy | dfa1046 | 2012-05-12 16:18:58 -0700 | [diff] [blame] | 283 | static void setLabelNull(GLenum type, uint object, GLsizei length, |
| 284 | const char* label) { } |
| 285 | static void getLabelNull(GLenum type, uint object, GLsizei bufferSize, |
| 286 | GLsizei* length, char* label) { |
| 287 | if (length) *length = 0; |
| 288 | if (label) *label = '\0'; |
| 289 | } |
| 290 | |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 291 | GLuint mCurrentBuffer; |
Romain Guy | 15bc643 | 2011-12-13 13:11:32 -0800 | [diff] [blame] | 292 | GLuint mCurrentIndicesBuffer; |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 293 | void* mCurrentPositionPointer; |
| 294 | void* mCurrentTexCoordsPointer; |
| 295 | |
Romain Guy | 15bc643 | 2011-12-13 13:11:32 -0800 | [diff] [blame] | 296 | bool mTexCoordsArrayEnabled; |
| 297 | |
Romain Guy | a1d3c91 | 2011-12-13 14:55:06 -0800 | [diff] [blame] | 298 | GLuint mTextureUnit; |
| 299 | |
Romain Guy | 8f85e80 | 2011-12-14 19:23:32 -0800 | [diff] [blame] | 300 | GLint mScissorX; |
| 301 | GLint mScissorY; |
| 302 | GLint mScissorWidth; |
| 303 | GLint mScissorHeight; |
| 304 | |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 305 | // Used to render layers |
| 306 | TextureVertex* mRegionMesh; |
| 307 | GLuint mRegionMeshIndices; |
| 308 | |
| 309 | mutable Mutex mGarbageLock; |
| 310 | Vector<Layer*> mLayerGarbage; |
Romain Guy | bb0acdf | 2012-03-05 13:44:35 -0800 | [diff] [blame] | 311 | Vector<DisplayList*> mDisplayListGarbage; |
Romain Guy | f3a910b4 | 2011-12-12 20:35:21 -0800 | [diff] [blame] | 312 | |
Romain Guy | e190aa6 | 2010-11-10 19:01:29 -0800 | [diff] [blame] | 313 | DebugLevel mDebugLevel; |
Romain Guy | 8ff6b9e | 2011-11-09 20:10:18 -0800 | [diff] [blame] | 314 | bool mInitialized; |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 315 | }; // class Caches |
| 316 | |
| 317 | }; // namespace uirenderer |
Romain Guy | fb8b763 | 2010-08-23 21:05:08 -0700 | [diff] [blame] | 318 | }; // namespace android |
| 319 | |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 320 | #endif // ANDROID_HWUI_CACHES_H |