| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 2 | /* |
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 9 | |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 10 | #ifndef GrPaint_DEFINED |
| 11 | #define GrPaint_DEFINED |
| 12 | |
| 13 | #include "GrTexture.h" |
| 14 | #include "GrColor.h" |
| 15 | #include "GrSamplerState.h" |
| 16 | |
| Scroggo | 97c88c2 | 2011-05-11 14:05:25 +0000 | [diff] [blame] | 17 | #include "SkXfermode.h" |
| 18 | |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 19 | /** |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 20 | * The paint describes how color and coverage are computed at each pixel by GrContext draw |
| 21 | * functions and the how color is blended with the destination pixel. |
| 22 | * |
| 23 | * The paint allows installation of custom color and coverage stages. New types of stages are |
| 24 | * created by subclassing GrCustomStage. |
| 25 | * |
| 26 | * The primitive color computation starts with the color specified by setColor(). This color is the |
| 27 | * input to the first color stage. Each color stage feeds its output to the next color stage. The |
| 28 | * final color stage's output color is input to the color filter specified by |
| 29 | * setXfermodeColorFilter which it turn feeds into the color matrix. The output of the color matrix |
| 30 | * is the final source color, S. |
| 31 | * |
| 32 | * Fractional pixel coverage follows a similar flow. The coverage is initially the value specified |
| 33 | * by setCoverage(). This is input to the first coverage stage. Coverage stages are chained |
| 34 | * together in the same manner as color stages. The output of the last stage is modulated by any |
| 35 | * fractional coverage produced by anti-aliasing. This last step produces the final coverage, C. |
| 36 | * |
| 37 | * setBlendFunc() specifies blending coefficients for S (described above) and D, the initial value |
| 38 | * of the destination pixel, labeled Bs and Bd respectively. The final value of the destination |
| 39 | * pixel is then D' = (1-C)*D + C*(Bd*D + Bs*S). |
| 40 | * |
| 41 | * Note that the coverage is applied after the blend. This is why they are computed as distinct |
| 42 | * values. |
| 43 | * |
| 44 | * TODO: Encapsulate setXfermodeColorFilter and color matrix in stages and remove from GrPaint. |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 45 | */ |
| 46 | class GrPaint { |
| 47 | public: |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 48 | enum { |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 49 | kMaxColorStages = 2, |
| 50 | kMaxCoverageStages = 1, |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 51 | }; |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 52 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 53 | GrPaint() { this->reset(); } |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 54 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 55 | GrPaint(const GrPaint& paint) { *this = paint; } |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 56 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 57 | ~GrPaint() {} |
| Scroggo | 97c88c2 | 2011-05-11 14:05:25 +0000 | [diff] [blame] | 58 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 59 | /** |
| 60 | * Sets the blending coefficients to use to blend the final primitive color with the |
| 61 | * destination color. Defaults to kOne for src and kZero for dst (i.e. src mode). |
| 62 | */ |
| 63 | void setBlendFunc(GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff) { |
| 64 | fSrcBlendCoeff = srcCoeff; |
| 65 | fDstBlendCoeff = dstCoeff; |
| 66 | } |
| 67 | GrBlendCoeff getSrcBlendCoeff() const { return fSrcBlendCoeff; } |
| 68 | GrBlendCoeff getDstBlendCoeff() const { return fDstBlendCoeff; } |
| 69 | |
| 70 | /** |
| 71 | * The initial color of the drawn primitive. Defaults to solid white. |
| 72 | */ |
| 73 | void setColor(GrColor color) { fColor = color; } |
| 74 | GrColor getColor() const { return fColor; } |
| 75 | |
| 76 | /** |
| 77 | * Applies fractional coverage to the entire drawn primitive. Defaults to 0xff. |
| 78 | */ |
| 79 | void setCoverage(uint8_t coverage) { fCoverage = coverage; } |
| 80 | uint8_t getCoverage() const { return fCoverage; } |
| 81 | |
| 82 | /** |
| 83 | * Should primitives be anti-aliased or not. Defaults to false. |
| 84 | */ |
| 85 | void setAntiAlias(bool aa) { fAntiAlias = aa; } |
| 86 | bool isAntiAlias() const { return fAntiAlias; } |
| 87 | |
| 88 | /** |
| 89 | * Should dithering be applied. Defaults to false. |
| 90 | */ |
| 91 | void setDither(bool dither) { fDither = dither; } |
| 92 | bool isDither() const { return fDither; } |
| 93 | |
| 94 | /** |
| 95 | * Enables a SkXfermode::Mode-based color filter applied to the primitive color. The constant |
| 96 | * color passed to this function is considered the "src" color and the primitive's color is |
| 97 | * considered the "dst" color. Defaults to kDst_Mode which equates to simply passing through |
| 98 | * the primitive color unmodified. |
| 99 | */ |
| 100 | void setXfermodeColorFilter(SkXfermode::Mode mode, GrColor color) { |
| 101 | fColorFilterColor = color; |
| 102 | fColorFilterXfermode = mode; |
| 103 | } |
| 104 | SkXfermode::Mode getColorFilterMode() const { return fColorFilterXfermode; } |
| 105 | GrColor getColorFilterColor() const { return fColorFilterColor; } |
| 106 | |
| 107 | /** |
| 108 | * Turns off application of a color matrix. By default the color matrix is disabled. |
| 109 | */ |
| 110 | void disableColorMatrix() { fColorMatrixEnabled = false; } |
| 111 | |
| 112 | /** |
| 113 | * Specifies and enables a 4 x 5 color matrix. |
| 114 | */ |
| 115 | void setColorMatrix(const float matrix[20]) { |
| 116 | fColorMatrixEnabled = true; |
| 117 | memcpy(fColorMatrix, matrix, sizeof(fColorMatrix)); |
| 118 | } |
| 119 | |
| 120 | bool isColorMatrixEnabled() const { return fColorMatrixEnabled; } |
| 121 | const float* getColorMatrix() const { return fColorMatrix; } |
| 122 | |
| 123 | /** |
| 124 | * Disables both the matrix and SkXfermode::Mode color filters. |
| 125 | */ |
| 126 | void resetColorFilter() { |
| 127 | fColorFilterXfermode = SkXfermode::kDst_Mode; |
| 128 | fColorFilterColor = GrColorPackRGBA(0xff, 0xff, 0xff, 0xff); |
| 129 | fColorMatrixEnabled = false; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Specifies a stage of the color pipeline. Usually the texture matrices of color stages apply |
| 134 | * to the primitive's positions. Some GrContext calls take explicit coords as an array or a |
| 135 | * rect. In this case these are the pre-matrix coords to colorSampler(0). |
| 136 | */ |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 137 | GrSamplerState* colorSampler(int i) { |
| 138 | GrAssert((unsigned)i < kMaxColorStages); |
| 139 | return fColorSamplers + i; |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 140 | } |
| 141 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 142 | const GrSamplerState& getColorSampler(int i) const { |
| 143 | GrAssert((unsigned)i < kMaxColorStages); |
| 144 | return fColorSamplers[i]; |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 145 | } |
| 146 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 147 | bool isColorStageEnabled(int i) const { |
| 148 | GrAssert((unsigned)i < kMaxColorStages); |
| 149 | return (NULL != fColorSamplers[i].getCustomStage()); |
| tomhudson@google.com | f13f588 | 2012-06-25 17:27:28 +0000 | [diff] [blame] | 150 | } |
| 151 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 152 | /** |
| 153 | * Specifies a stage of the coverage pipeline. Coverage stages' texture matrices are always |
| 154 | * applied to the primitive's position, never to explicit texture coords. |
| 155 | */ |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 156 | GrSamplerState* coverageSampler(int i) { |
| 157 | GrAssert((unsigned)i < kMaxCoverageStages); |
| 158 | return fCoverageSamplers + i; |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 159 | } |
| 160 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 161 | const GrSamplerState& getCoverageSampler(int i) const { |
| 162 | GrAssert((unsigned)i < kMaxCoverageStages); |
| 163 | return fCoverageSamplers[i]; |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 164 | } |
| 165 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 166 | bool isCoverageStageEnabled(int i) const { |
| 167 | GrAssert((unsigned)i < kMaxCoverageStages); |
| 168 | return (NULL != fCoverageSamplers[i].getCustomStage()); |
| tomhudson@google.com | f13f588 | 2012-06-25 17:27:28 +0000 | [diff] [blame] | 169 | } |
| 170 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 171 | bool hasCoverageStage() const { |
| 172 | for (int i = 0; i < kMaxCoverageStages; ++i) { |
| 173 | if (this->isCoverageStageEnabled(i)) { |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 174 | return true; |
| 175 | } |
| 176 | } |
| 177 | return false; |
| 178 | } |
| 179 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 180 | bool hasColorStage() const { |
| 181 | for (int i = 0; i < kMaxColorStages; ++i) { |
| 182 | if (this->isColorStageEnabled(i)) { |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 183 | return true; |
| 184 | } |
| 185 | } |
| 186 | return false; |
| 187 | } |
| 188 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 189 | bool hasStage() const { return this->hasColorStage() || this->hasCoverageStage(); } |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 190 | |
| 191 | /** |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 192 | * Preconcats the matrix of all samplers in the mask with the inverse of a matrix. If the |
| 193 | * matrix inverse cannot be computed (and there is at least one enabled stage) then false is |
| 194 | * returned. |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 195 | */ |
| 196 | bool preConcatSamplerMatricesWithInverse(const GrMatrix& matrix) { |
| 197 | GrMatrix inv; |
| 198 | bool computed = false; |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 199 | for (int i = 0; i < kMaxColorStages; ++i) { |
| 200 | if (this->isColorStageEnabled(i)) { |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 201 | if (!computed && !matrix.invert(&inv)) { |
| 202 | return false; |
| 203 | } else { |
| 204 | computed = true; |
| 205 | } |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 206 | fColorSamplers[i].preConcatMatrix(inv); |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 207 | } |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 208 | } |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 209 | for (int i = 0; i < kMaxCoverageStages; ++i) { |
| 210 | if (this->isCoverageStageEnabled(i)) { |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 211 | if (!computed && !matrix.invert(&inv)) { |
| 212 | return false; |
| 213 | } else { |
| 214 | computed = true; |
| 215 | } |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 216 | fCoverageSamplers[i].preConcatMatrix(inv); |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 217 | } |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 218 | } |
| bsalomon@google.com | e3d3216 | 2012-07-20 13:37:06 +0000 | [diff] [blame] | 219 | return true; |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 220 | } |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 221 | |
| bsalomon@google.com | 27c9b6d | 2011-09-12 14:30:27 +0000 | [diff] [blame] | 222 | GrPaint& operator=(const GrPaint& paint) { |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 223 | fSrcBlendCoeff = paint.fSrcBlendCoeff; |
| 224 | fDstBlendCoeff = paint.fDstBlendCoeff; |
| 225 | fAntiAlias = paint.fAntiAlias; |
| 226 | fDither = paint.fDither; |
| 227 | |
| 228 | fColor = paint.fColor; |
| bsalomon@google.com | dd1be60 | 2012-01-18 20:34:00 +0000 | [diff] [blame] | 229 | fCoverage = paint.fCoverage; |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 230 | |
| Scroggo | 97c88c2 | 2011-05-11 14:05:25 +0000 | [diff] [blame] | 231 | fColorFilterColor = paint.fColorFilterColor; |
| 232 | fColorFilterXfermode = paint.fColorFilterXfermode; |
| senorblanco@chromium.org | 50bdad8 | 2012-01-03 20:51:57 +0000 | [diff] [blame] | 233 | fColorMatrixEnabled = paint.fColorMatrixEnabled; |
| bsalomon@google.com | dddf6f6 | 2012-03-16 17:50:37 +0000 | [diff] [blame] | 234 | if (fColorMatrixEnabled) { |
| 235 | memcpy(fColorMatrix, paint.fColorMatrix, sizeof(fColorMatrix)); |
| 236 | } |
| rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 237 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 238 | for (int i = 0; i < kMaxColorStages; ++i) { |
| 239 | if (paint.isColorStageEnabled(i)) { |
| 240 | fColorSamplers[i] = paint.fColorSamplers[i]; |
| bsalomon@google.com | dddf6f6 | 2012-03-16 17:50:37 +0000 | [diff] [blame] | 241 | } |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 242 | } |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 243 | for (int i = 0; i < kMaxCoverageStages; ++i) { |
| 244 | if (paint.isCoverageStageEnabled(i)) { |
| 245 | fCoverageSamplers[i] = paint.fCoverageSamplers[i]; |
| bsalomon@google.com | dddf6f6 | 2012-03-16 17:50:37 +0000 | [diff] [blame] | 246 | } |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 247 | } |
| bsalomon@google.com | 27c9b6d | 2011-09-12 14:30:27 +0000 | [diff] [blame] | 248 | return *this; |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 249 | } |
| 250 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 251 | /** |
| 252 | * Resets the paint to the defaults. |
| 253 | */ |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 254 | void reset() { |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 255 | this->resetBlend(); |
| 256 | this->resetOptions(); |
| 257 | this->resetColor(); |
| bsalomon@google.com | dd1be60 | 2012-01-18 20:34:00 +0000 | [diff] [blame] | 258 | this->resetCoverage(); |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 259 | this->resetTextures(); |
| 260 | this->resetColorFilter(); |
| 261 | this->resetMasks(); |
| Scroggo | 97c88c2 | 2011-05-11 14:05:25 +0000 | [diff] [blame] | 262 | } |
| 263 | |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 264 | // internal use |
| 265 | // GrPaint's textures and masks map to the first N stages |
| 266 | // of GrDrawTarget in that order (textures followed by masks) |
| 267 | enum { |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 268 | kFirstColorStage = 0, |
| 269 | kFirstCoverageStage = kMaxColorStages, |
| 270 | kTotalStages = kFirstColorStage + kMaxColorStages + kMaxCoverageStages, |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 271 | }; |
| 272 | |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 273 | private: |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 274 | |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 275 | GrSamplerState fColorSamplers[kMaxColorStages]; |
| 276 | GrSamplerState fCoverageSamplers[kMaxCoverageStages]; |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 277 | |
| bsalomon@google.com | c7448ce | 2012-10-05 19:04:13 +0000 | [diff] [blame^] | 278 | GrBlendCoeff fSrcBlendCoeff; |
| 279 | GrBlendCoeff fDstBlendCoeff; |
| 280 | bool fAntiAlias; |
| 281 | bool fDither; |
| 282 | bool fColorMatrixEnabled; |
| 283 | |
| 284 | GrColor fColor; |
| 285 | uint8_t fCoverage; |
| 286 | |
| 287 | GrColor fColorFilterColor; |
| 288 | SkXfermode::Mode fColorFilterXfermode; |
| 289 | float fColorMatrix[20]; |
| 290 | |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 291 | void resetBlend() { |
| bsalomon@google.com | 4705954 | 2012-06-06 20:51:20 +0000 | [diff] [blame] | 292 | fSrcBlendCoeff = kOne_GrBlendCoeff; |
| 293 | fDstBlendCoeff = kZero_GrBlendCoeff; |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 294 | } |
| 295 | |
| 296 | void resetOptions() { |
| 297 | fAntiAlias = false; |
| 298 | fDither = false; |
| 299 | } |
| 300 | |
| 301 | void resetColor() { |
| 302 | fColor = GrColorPackRGBA(0xff, 0xff, 0xff, 0xff); |
| 303 | } |
| 304 | |
| bsalomon@google.com | dd1be60 | 2012-01-18 20:34:00 +0000 | [diff] [blame] | 305 | void resetCoverage() { |
| 306 | fCoverage = 0xff; |
| 307 | } |
| 308 | |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 309 | void resetTextures() { |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 310 | for (int i = 0; i < kMaxColorStages; ++i) { |
| 311 | fColorSamplers[i].reset(); |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 312 | } |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 313 | } |
| 314 | |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 315 | void resetMasks() { |
| bsalomon@google.com | 88becf4 | 2012-10-05 14:54:42 +0000 | [diff] [blame] | 316 | for (int i = 0; i < kMaxCoverageStages; ++i) { |
| 317 | fCoverageSamplers[i].reset(); |
| bsalomon@google.com | 26c2d0a | 2011-05-17 20:15:30 +0000 | [diff] [blame] | 318 | } |
| 319 | } |
| bsalomon@google.com | 27847de | 2011-02-22 20:59:41 +0000 | [diff] [blame] | 320 | }; |
| 321 | |
| 322 | #endif |