Romain Guy | ac670c0 | 2010-07-27 17:39:27 -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_PROGRAM_CACHE_H |
| 18 | #define ANDROID_HWUI_PROGRAM_CACHE_H |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 19 | |
| 20 | #include <utils/KeyedVector.h> |
| 21 | #include <utils/Log.h> |
Romain Guy | 06f96e2 | 2010-07-30 19:18:16 -0700 | [diff] [blame] | 22 | #include <utils/String8.h> |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 23 | |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 24 | #include <GLES2/gl2.h> |
| 25 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 26 | #include <SkXfermode.h> |
| 27 | |
Romain Guy | c15008e | 2010-11-10 11:59:15 -0800 | [diff] [blame] | 28 | #include "Debug.h" |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 29 | #include "Program.h" |
| 30 | |
| 31 | namespace android { |
| 32 | namespace uirenderer { |
| 33 | |
| 34 | /////////////////////////////////////////////////////////////////////////////// |
| 35 | // Defines |
| 36 | /////////////////////////////////////////////////////////////////////////////// |
| 37 | |
| 38 | // Debug |
Romain Guy | c15008e | 2010-11-10 11:59:15 -0800 | [diff] [blame] | 39 | #if DEBUG_PROGRAMS |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 40 | #define PROGRAM_LOGD(...) LOGD(__VA_ARGS__) |
| 41 | #else |
| 42 | #define PROGRAM_LOGD(...) |
| 43 | #endif |
| 44 | |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 45 | // TODO: This should be set in properties |
Romain Guy | dbc26d2 | 2010-10-11 17:58:29 -0700 | [diff] [blame] | 46 | #define PANEL_BIT_DEPTH 20 |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 47 | #define COLOR_COMPONENT_THRESHOLD (1.0f - (0.5f / PANEL_BIT_DEPTH)) |
| 48 | #define COLOR_COMPONENT_INV_THRESHOLD (0.5f / PANEL_BIT_DEPTH) |
| 49 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 50 | #define PROGRAM_KEY_TEXTURE 0x1 |
| 51 | #define PROGRAM_KEY_A8_TEXTURE 0x2 |
| 52 | #define PROGRAM_KEY_BITMAP 0x4 |
| 53 | #define PROGRAM_KEY_GRADIENT 0x8 |
| 54 | #define PROGRAM_KEY_BITMAP_FIRST 0x10 |
| 55 | #define PROGRAM_KEY_COLOR_MATRIX 0x20 |
| 56 | #define PROGRAM_KEY_COLOR_LIGHTING 0x40 |
| 57 | #define PROGRAM_KEY_COLOR_BLEND 0x80 |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 58 | #define PROGRAM_KEY_BITMAP_NPOT 0x100 |
Romain Guy | f607bdc | 2010-09-10 19:20:06 -0700 | [diff] [blame] | 59 | #define PROGRAM_KEY_SWAP_SRC_DST 0x2000 |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 60 | |
| 61 | #define PROGRAM_KEY_BITMAP_WRAPS_MASK 0x600 |
| 62 | #define PROGRAM_KEY_BITMAP_WRAPT_MASK 0x1800 |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 63 | |
Romain Guy | 48daa54 | 2010-08-10 19:21:34 -0700 | [diff] [blame] | 64 | // Encode the xfermodes on 6 bits |
| 65 | #define PROGRAM_MAX_XFERMODE 0x1f |
| 66 | #define PROGRAM_XFERMODE_SHADER_SHIFT 26 |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 67 | #define PROGRAM_XFERMODE_COLOR_OP_SHIFT 20 |
Romain Guy | a5aed0d | 2010-09-09 14:42:43 -0700 | [diff] [blame] | 68 | #define PROGRAM_XFERMODE_FRAMEBUFFER_SHIFT 14 |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 69 | |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 70 | #define PROGRAM_BITMAP_WRAPS_SHIFT 9 |
| 71 | #define PROGRAM_BITMAP_WRAPT_SHIFT 11 |
| 72 | |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 73 | #define PROGRAM_GRADIENT_TYPE_SHIFT 33 |
Romain Guy | ed6fcb0 | 2011-03-21 13:11:28 -0700 | [diff] [blame] | 74 | #define PROGRAM_MODULATE_SHIFT 35 |
| 75 | |
| 76 | #define PROGRAM_IS_POINT_SHIFT 36 |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 77 | |
Chet Haase | 99585ad | 2011-05-02 15:00:16 -0700 | [diff] [blame] | 78 | #define PROGRAM_HAS_AA_SHIFT 37 |
Chet Haase | 6fca988 | 2011-04-25 14:49:07 -0700 | [diff] [blame] | 79 | |
Romain Guy | aa6c24c | 2011-04-28 18:40:04 -0700 | [diff] [blame] | 80 | #define PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT 38 |
Romain Guy | 8f0095c | 2011-05-02 17:24:22 -0700 | [diff] [blame] | 81 | #define PROGRAM_HAS_TEXTURE_TRANSFORM_SHIFT 39 |
Romain Guy | aa6c24c | 2011-04-28 18:40:04 -0700 | [diff] [blame] | 82 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 83 | /////////////////////////////////////////////////////////////////////////////// |
| 84 | // Types |
| 85 | /////////////////////////////////////////////////////////////////////////////// |
| 86 | |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 87 | typedef uint64_t programid; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 88 | |
| 89 | /////////////////////////////////////////////////////////////////////////////// |
| 90 | // Cache |
| 91 | /////////////////////////////////////////////////////////////////////////////// |
| 92 | |
| 93 | /** |
| 94 | * Describe the features required for a given program. The features |
| 95 | * determine the generation of both the vertex and fragment shaders. |
| 96 | * A ProgramDescription must be used in conjunction with a ProgramCache. |
| 97 | */ |
| 98 | struct ProgramDescription { |
| 99 | enum ColorModifier { |
| 100 | kColorNone, |
| 101 | kColorMatrix, |
| 102 | kColorLighting, |
| 103 | kColorBlend |
| 104 | }; |
| 105 | |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 106 | enum Gradient { |
| 107 | kGradientLinear, |
| 108 | kGradientCircular, |
| 109 | kGradientSweep |
| 110 | }; |
| 111 | |
Romain Guy | 70ca14e | 2010-12-13 18:24:33 -0800 | [diff] [blame] | 112 | ProgramDescription() { |
| 113 | reset(); |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | // Texturing |
| 117 | bool hasTexture; |
| 118 | bool hasAlpha8Texture; |
Romain Guy | aa6c24c | 2011-04-28 18:40:04 -0700 | [diff] [blame] | 119 | bool hasExternalTexture; |
Romain Guy | 8f0095c | 2011-05-02 17:24:22 -0700 | [diff] [blame] | 120 | bool hasTextureTransform; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 121 | |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 122 | // Modulate, this should only be set when setColor() return true |
| 123 | bool modulate; |
| 124 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 125 | // Shaders |
| 126 | bool hasBitmap; |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 127 | bool isBitmapNpot; |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 128 | |
Chet Haase | 99585ad | 2011-05-02 15:00:16 -0700 | [diff] [blame] | 129 | bool isAA; |
Chet Haase | 5b0200b | 2011-04-13 17:58:08 -0700 | [diff] [blame] | 130 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 131 | bool hasGradient; |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 132 | Gradient gradientType; |
| 133 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 134 | SkXfermode::Mode shadersMode; |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 135 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 136 | bool isBitmapFirst; |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 137 | GLenum bitmapWrapS; |
| 138 | GLenum bitmapWrapT; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 139 | |
| 140 | // Color operations |
Romain Guy | 4afdf66 | 2010-10-13 21:31:28 -0700 | [diff] [blame] | 141 | ColorModifier colorOp; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 142 | SkXfermode::Mode colorMode; |
| 143 | |
Romain Guy | a5aed0d | 2010-09-09 14:42:43 -0700 | [diff] [blame] | 144 | // Framebuffer blending (requires Extensions.hasFramebufferFetch()) |
| 145 | // Ignored for all values < SkXfermode::kPlus_Mode |
| 146 | SkXfermode::Mode framebufferMode; |
Romain Guy | f607bdc | 2010-09-10 19:20:06 -0700 | [diff] [blame] | 147 | bool swapSrcDst; |
Romain Guy | a5aed0d | 2010-09-09 14:42:43 -0700 | [diff] [blame] | 148 | |
Romain Guy | ed6fcb0 | 2011-03-21 13:11:28 -0700 | [diff] [blame] | 149 | bool isPoint; |
| 150 | float pointSize; |
| 151 | |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 152 | /** |
Romain Guy | 70ca14e | 2010-12-13 18:24:33 -0800 | [diff] [blame] | 153 | * Resets this description. All fields are reset back to the default |
| 154 | * values they hold after building a new instance. |
| 155 | */ |
| 156 | void reset() { |
| 157 | hasTexture = false; |
| 158 | hasAlpha8Texture = false; |
Romain Guy | aa6c24c | 2011-04-28 18:40:04 -0700 | [diff] [blame] | 159 | hasExternalTexture = false; |
Romain Guy | 8f0095c | 2011-05-02 17:24:22 -0700 | [diff] [blame] | 160 | hasTextureTransform = false; |
Romain Guy | 70ca14e | 2010-12-13 18:24:33 -0800 | [diff] [blame] | 161 | |
Chet Haase | 99585ad | 2011-05-02 15:00:16 -0700 | [diff] [blame] | 162 | isAA = false; |
Chet Haase | 5b0200b | 2011-04-13 17:58:08 -0700 | [diff] [blame] | 163 | |
Romain Guy | 70ca14e | 2010-12-13 18:24:33 -0800 | [diff] [blame] | 164 | modulate = false; |
| 165 | |
| 166 | hasBitmap = false; |
| 167 | isBitmapNpot = false; |
| 168 | |
| 169 | hasGradient = false; |
| 170 | gradientType = kGradientLinear; |
| 171 | |
| 172 | shadersMode = SkXfermode::kClear_Mode; |
| 173 | |
| 174 | isBitmapFirst = false; |
| 175 | bitmapWrapS = GL_CLAMP_TO_EDGE; |
| 176 | bitmapWrapT = GL_CLAMP_TO_EDGE; |
| 177 | |
| 178 | colorOp = kColorNone; |
| 179 | colorMode = SkXfermode::kClear_Mode; |
| 180 | |
| 181 | framebufferMode = SkXfermode::kClear_Mode; |
| 182 | swapSrcDst = false; |
Romain Guy | ed6fcb0 | 2011-03-21 13:11:28 -0700 | [diff] [blame] | 183 | |
| 184 | isPoint = false; |
| 185 | pointSize = 0.0f; |
Romain Guy | 70ca14e | 2010-12-13 18:24:33 -0800 | [diff] [blame] | 186 | } |
| 187 | |
| 188 | /** |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 189 | * Indicates, for a given color, whether color modulation is required in |
| 190 | * the fragment shader. When this method returns true, the program should |
| 191 | * be provided with a modulation color. |
| 192 | */ |
| 193 | bool setColor(const float r, const float g, const float b, const float a) { |
| 194 | modulate = a < COLOR_COMPONENT_THRESHOLD || r < COLOR_COMPONENT_THRESHOLD || |
| 195 | g < COLOR_COMPONENT_THRESHOLD || b < COLOR_COMPONENT_THRESHOLD; |
| 196 | return modulate; |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 197 | } |
| 198 | |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 199 | /** |
| 200 | * Indicates, for a given color, whether color modulation is required in |
| 201 | * the fragment shader. When this method returns true, the program should |
| 202 | * be provided with a modulation color. |
| 203 | */ |
| 204 | bool setAlpha8Color(const float r, const float g, const float b, const float a) { |
| 205 | modulate = a < COLOR_COMPONENT_THRESHOLD || r > COLOR_COMPONENT_INV_THRESHOLD || |
| 206 | g > COLOR_COMPONENT_INV_THRESHOLD || b > COLOR_COMPONENT_INV_THRESHOLD; |
| 207 | return modulate; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Computes the unique key identifying this program. |
| 212 | */ |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 213 | programid key() const { |
| 214 | programid key = 0; |
| 215 | if (hasTexture) key |= PROGRAM_KEY_TEXTURE; |
| 216 | if (hasAlpha8Texture) key |= PROGRAM_KEY_A8_TEXTURE; |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 217 | if (hasBitmap) { |
| 218 | key |= PROGRAM_KEY_BITMAP; |
| 219 | if (isBitmapNpot) { |
| 220 | key |= PROGRAM_KEY_BITMAP_NPOT; |
| 221 | key |= getEnumForWrap(bitmapWrapS) << PROGRAM_BITMAP_WRAPS_SHIFT; |
| 222 | key |= getEnumForWrap(bitmapWrapT) << PROGRAM_BITMAP_WRAPT_SHIFT; |
| 223 | } |
| 224 | } |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 225 | if (hasGradient) key |= PROGRAM_KEY_GRADIENT; |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 226 | key |= programid(gradientType) << PROGRAM_GRADIENT_TYPE_SHIFT; |
| 227 | if (isBitmapFirst) key |= PROGRAM_KEY_BITMAP_FIRST; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 228 | if (hasBitmap && hasGradient) { |
| 229 | key |= (shadersMode & PROGRAM_MAX_XFERMODE) << PROGRAM_XFERMODE_SHADER_SHIFT; |
| 230 | } |
| 231 | switch (colorOp) { |
| 232 | case kColorMatrix: |
| 233 | key |= PROGRAM_KEY_COLOR_MATRIX; |
| 234 | break; |
| 235 | case kColorLighting: |
| 236 | key |= PROGRAM_KEY_COLOR_LIGHTING; |
| 237 | break; |
| 238 | case kColorBlend: |
| 239 | key |= PROGRAM_KEY_COLOR_BLEND; |
| 240 | key |= (colorMode & PROGRAM_MAX_XFERMODE) << PROGRAM_XFERMODE_COLOR_OP_SHIFT; |
| 241 | break; |
| 242 | case kColorNone: |
| 243 | break; |
| 244 | } |
Romain Guy | a5aed0d | 2010-09-09 14:42:43 -0700 | [diff] [blame] | 245 | key |= (framebufferMode & PROGRAM_MAX_XFERMODE) << PROGRAM_XFERMODE_FRAMEBUFFER_SHIFT; |
Romain Guy | f607bdc | 2010-09-10 19:20:06 -0700 | [diff] [blame] | 246 | if (swapSrcDst) key |= PROGRAM_KEY_SWAP_SRC_DST; |
Romain Guy | ed6fcb0 | 2011-03-21 13:11:28 -0700 | [diff] [blame] | 247 | if (modulate) key |= programid(0x1) << PROGRAM_MODULATE_SHIFT; |
| 248 | if (isPoint) key |= programid(0x1) << PROGRAM_IS_POINT_SHIFT; |
Chet Haase | 99585ad | 2011-05-02 15:00:16 -0700 | [diff] [blame] | 249 | if (isAA) key |= programid(0x1) << PROGRAM_HAS_AA_SHIFT; |
Romain Guy | aa6c24c | 2011-04-28 18:40:04 -0700 | [diff] [blame] | 250 | if (hasExternalTexture) key |= programid(0x1) << PROGRAM_HAS_EXTERNAL_TEXTURE_SHIFT; |
Romain Guy | 8f0095c | 2011-05-02 17:24:22 -0700 | [diff] [blame] | 251 | if (hasTextureTransform) key |= programid(0x1) << PROGRAM_HAS_TEXTURE_TRANSFORM_SHIFT; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 252 | return key; |
| 253 | } |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 254 | |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 255 | /** |
| 256 | * Logs the specified message followed by the key identifying this program. |
| 257 | */ |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 258 | void log(const char* message) const { |
Romain Guy | 7b5b6ab | 2011-03-14 18:05:08 -0700 | [diff] [blame] | 259 | #if DEBUG_PROGRAMS |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 260 | programid k = key(); |
| 261 | PROGRAM_LOGD("%s (key = 0x%.8x%.8x)", message, uint32_t(k >> 32), |
| 262 | uint32_t(k & 0xffffffff)); |
Romain Guy | 7b5b6ab | 2011-03-14 18:05:08 -0700 | [diff] [blame] | 263 | #endif |
Romain Guy | ee916f1 | 2010-09-20 17:53:08 -0700 | [diff] [blame] | 264 | } |
Romain Guy | 707b2f7 | 2010-10-11 16:34:59 -0700 | [diff] [blame] | 265 | |
| 266 | private: |
| 267 | inline uint32_t getEnumForWrap(GLenum wrap) const { |
| 268 | switch (wrap) { |
| 269 | case GL_CLAMP_TO_EDGE: |
| 270 | return 0; |
| 271 | case GL_REPEAT: |
| 272 | return 1; |
| 273 | case GL_MIRRORED_REPEAT: |
| 274 | return 2; |
| 275 | } |
| 276 | return 0; |
| 277 | } |
| 278 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 279 | }; // struct ProgramDescription |
| 280 | |
| 281 | /** |
| 282 | * Generates and caches program. Programs are generated based on |
| 283 | * ProgramDescriptions. |
| 284 | */ |
| 285 | class ProgramCache { |
| 286 | public: |
| 287 | ProgramCache(); |
| 288 | ~ProgramCache(); |
| 289 | |
| 290 | Program* get(const ProgramDescription& description); |
| 291 | |
| 292 | void clear(); |
| 293 | |
| 294 | private: |
| 295 | Program* generateProgram(const ProgramDescription& description, programid key); |
| 296 | String8 generateVertexShader(const ProgramDescription& description); |
| 297 | String8 generateFragmentShader(const ProgramDescription& description); |
Romain Guy | 48daa54 | 2010-08-10 19:21:34 -0700 | [diff] [blame] | 298 | void generateBlend(String8& shader, const char* name, SkXfermode::Mode mode); |
Romain Guy | 889f8d1 | 2010-07-29 14:37:42 -0700 | [diff] [blame] | 299 | void generateTextureWrap(String8& shader, GLenum wrapS, GLenum wrapT); |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 300 | |
Romain Guy | db1938e | 2010-08-02 18:50:22 -0700 | [diff] [blame] | 301 | void printLongString(const String8& shader) const; |
| 302 | |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 303 | KeyedVector<programid, Program*> mCache; |
Romain Guy | ac670c0 | 2010-07-27 17:39:27 -0700 | [diff] [blame] | 304 | }; // class ProgramCache |
| 305 | |
| 306 | }; // namespace uirenderer |
| 307 | }; // namespace android |
| 308 | |
Romain Guy | 5b3b352 | 2010-10-27 18:57:51 -0700 | [diff] [blame] | 309 | #endif // ANDROID_HWUI_PROGRAM_CACHE_H |