| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 1 | /* |
| bsalomon@google.com | 1da0746 | 2011-03-10 14:51:57 +0000 | [diff] [blame] | 2 | Copyright 2011 Google Inc. |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 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 | |
| 18 | #ifndef GrTexture_DEFINED |
| 19 | #define GrTexture_DEFINED |
| 20 | |
| 21 | #include "GrRefCnt.h" |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 22 | #include "GrClip.h" |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 23 | #include "GrResource.h" |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 24 | |
| 25 | class GrTexture; |
| 26 | |
| 27 | /** |
| 28 | * GrRenderTarget represents a 2D buffer of pixels that can be rendered to. |
| 29 | * A context's render target is set by setRenderTarget(). Render targets are |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 30 | * created by a createTexture with the kRenderTarget_TextureFlag flag. |
| 31 | * Additionally, GrContext provides methods for creating GrRenderTargets |
| 32 | * that wrap externally created render targets. |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 33 | */ |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 34 | class GrRenderTarget : public GrResource { |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 35 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 36 | public: |
| 37 | /** |
| 38 | * @return the width of the rendertarget |
| 39 | */ |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 40 | int width() const { return fWidth; } |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 41 | /** |
| 42 | * @return the height of the rendertarget |
| 43 | */ |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 44 | int height() const { return fHeight; } |
| 45 | |
| 46 | /** |
| 47 | * @return the number of stencil bits in the rendertarget |
| 48 | */ |
| 49 | int stencilBits() const { return fStencilBits; } |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 50 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 51 | /** |
| 52 | * @return the texture associated with the rendertarget, may be NULL. |
| 53 | */ |
| 54 | GrTexture* asTexture() {return fTexture;} |
| 55 | |
| bsalomon@google.com | 669fdc4 | 2011-04-05 17:08:27 +0000 | [diff] [blame] | 56 | /** |
| bsalomon@google.com | 0b96a84 | 2011-07-13 21:53:49 +0000 | [diff] [blame] | 57 | * If this RT is multisampled, this is the multisample buffer |
| 58 | * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL) |
| 59 | */ |
| 60 | virtual intptr_t getRenderTargetHandle() const = 0; |
| 61 | |
| 62 | /** |
| 63 | * If this RT is multisampled, this is the buffer it is resolved to. |
| 64 | * Otherwise, same as getRenderTargetHandle(). |
| 65 | * (In GL a separate FBO ID is used for the msaa and resolved buffers) |
| 66 | * @return the 3D API's handle to this object (e.g. FBO ID in OpenGL) |
| 67 | */ |
| 68 | virtual intptr_t getRenderTargetResolvedHandle() const = 0; |
| 69 | |
| 70 | /** |
| bsalomon@google.com | f954d8d | 2011-04-06 17:50:02 +0000 | [diff] [blame] | 71 | * @return true if the render target is multisampled, false otherwise |
| 72 | */ |
| 73 | bool isMultisampled() { return fIsMultisampled; } |
| 74 | |
| 75 | /** |
| bsalomon@google.com | 5877ffd | 2011-04-11 17:58:48 +0000 | [diff] [blame] | 76 | * Call to indicate the multisample contents were modified such that the |
| 77 | * render target needs to be resolved before it can be used as texture. Gr |
| 78 | * tracks this for its own drawing and thus this only needs to be called |
| 79 | * when the render target has been modified outside of Gr. Only meaningful |
| 80 | * for Gr-created RT/Textures and Platform RT/Textures created with the |
| 81 | * kGrCanResolve flag. |
| bsalomon@google.com | 8295dc1 | 2011-05-02 12:53:34 +0000 | [diff] [blame] | 82 | * @param rect a rect bounding the area needing resolve. NULL indicates |
| 83 | * the whole RT needs resolving. |
| bsalomon@google.com | 5877ffd | 2011-04-11 17:58:48 +0000 | [diff] [blame] | 84 | */ |
| bsalomon@google.com | 8295dc1 | 2011-05-02 12:53:34 +0000 | [diff] [blame] | 85 | void flagAsNeedingResolve(const GrIRect* rect = NULL); |
| 86 | |
| 87 | /** |
| 88 | * Call to override the region that needs to be resolved. |
| 89 | */ |
| 90 | void overrideResolveRect(const GrIRect rect); |
| bsalomon@google.com | 5877ffd | 2011-04-11 17:58:48 +0000 | [diff] [blame] | 91 | |
| 92 | /** |
| 93 | * Call to indicate that GrRenderTarget was externally resolved. This may |
| 94 | * allow Gr to skip a redundant resolve step. |
| 95 | */ |
| bsalomon@google.com | 8295dc1 | 2011-05-02 12:53:34 +0000 | [diff] [blame] | 96 | void flagAsResolved() { fResolveRect.setLargestInverted(); } |
| bsalomon@google.com | 5877ffd | 2011-04-11 17:58:48 +0000 | [diff] [blame] | 97 | |
| 98 | /** |
| 99 | * @return true if the GrRenderTarget requires MSAA resolving |
| 100 | */ |
| bsalomon@google.com | 8295dc1 | 2011-05-02 12:53:34 +0000 | [diff] [blame] | 101 | bool needsResolve() const { return !fResolveRect.isEmpty(); } |
| 102 | |
| 103 | /** |
| 104 | * Returns a rect bounding the region needing resolving. |
| 105 | */ |
| 106 | const GrIRect& getResolveRect() const { return fResolveRect; } |
| bsalomon@google.com | 5877ffd | 2011-04-11 17:58:48 +0000 | [diff] [blame] | 107 | |
| 108 | /** |
| bsalomon@google.com | 669fdc4 | 2011-04-05 17:08:27 +0000 | [diff] [blame] | 109 | * Reads a rectangle of pixels from the render target. |
| 110 | * @param left left edge of the rectangle to read (inclusive) |
| 111 | * @param top top edge of the rectangle to read (inclusive) |
| 112 | * @param width width of rectangle to read in pixels. |
| 113 | * @param height height of rectangle to read in pixels. |
| 114 | * @param config the pixel config of the destination buffer |
| 115 | * @param buffer memory to read the rectangle into. |
| 116 | * |
| 117 | * @return true if the read succeeded, false if not. The read can fail |
| 118 | * because of a unsupported pixel config. |
| 119 | */ |
| 120 | bool readPixels(int left, int top, int width, int height, |
| 121 | GrPixelConfig config, void* buffer); |
| 122 | |
| bsalomon@google.com | 5877ffd | 2011-04-11 17:58:48 +0000 | [diff] [blame] | 123 | // a MSAA RT may require explicit resolving , it may auto-resolve (e.g. FBO |
| 124 | // 0 in GL), or be unresolvable because the client didn't give us the |
| 125 | // resolve destination. |
| 126 | enum ResolveType { |
| 127 | kCanResolve_ResolveType, |
| 128 | kAutoResolves_ResolveType, |
| 129 | kCantResolve_ResolveType, |
| 130 | }; |
| 131 | virtual ResolveType getResolveType() const = 0; |
| 132 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 133 | protected: |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 134 | GrRenderTarget(GrGpu* gpu, |
| 135 | GrTexture* texture, |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 136 | int width, |
| 137 | int height, |
| bsalomon@google.com | f954d8d | 2011-04-06 17:50:02 +0000 | [diff] [blame] | 138 | int stencilBits, |
| 139 | bool isMultisampled) |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 140 | : INHERITED(gpu) |
| 141 | , fTexture(texture) |
| 142 | , fWidth(width) |
| 143 | , fHeight(height) |
| 144 | , fStencilBits(stencilBits) |
| bsalomon@google.com | f954d8d | 2011-04-06 17:50:02 +0000 | [diff] [blame] | 145 | , fIsMultisampled(isMultisampled) |
| bsalomon@google.com | 8295dc1 | 2011-05-02 12:53:34 +0000 | [diff] [blame] | 146 | { |
| 147 | fResolveRect.setLargestInverted(); |
| 148 | } |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 149 | |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 150 | friend class GrTexture; |
| 151 | // When a texture unrefs an owned rendertarget this func |
| 152 | // removes the back pointer. This could be done called from |
| 153 | // texture's destructor but would have to be done in derived |
| 154 | // class. By the time of texture base destructor it has already |
| 155 | // lost its pointer to the rt. |
| 156 | void onTextureReleaseRenderTarget() { |
| 157 | GrAssert(NULL != fTexture); |
| 158 | fTexture = NULL; |
| 159 | } |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 160 | |
| bsalomon@google.com | 8295dc1 | 2011-05-02 12:53:34 +0000 | [diff] [blame] | 161 | private: |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 162 | GrTexture* fTexture; // not ref'ed |
| vandebo@chromium.org | ec36471 | 2011-07-26 03:44:05 +0000 | [diff] [blame^] | 163 | int fWidth; |
| 164 | int fHeight; |
| 165 | int fStencilBits; |
| 166 | bool fIsMultisampled; |
| 167 | GrIRect fResolveRect; |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 168 | |
| bsalomon@google.com | d302f14 | 2011-03-03 13:54:13 +0000 | [diff] [blame] | 169 | // GrGpu keeps a cached clip in the render target to avoid redundantly |
| 170 | // rendering the clip into the same stencil buffer. |
| 171 | friend class GrGpu; |
| 172 | GrClip fLastStencilClip; |
| 173 | |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 174 | typedef GrResource INHERITED; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 175 | }; |
| 176 | |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 177 | class GrTexture : public GrResource { |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 178 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 179 | public: |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 180 | /** |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 181 | * Retrieves the width of the texture. |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 182 | * |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 183 | * @return the width in texels |
| 184 | */ |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 185 | int width() const { return fWidth; } |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 186 | |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 187 | /** |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 188 | * Retrieves the height of the texture. |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 189 | * |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 190 | * @return the height in texels |
| 191 | */ |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 192 | int height() const { return fHeight; } |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 193 | |
| 194 | /** |
| 195 | * Convert from texels to normalized texture coords for POT textures |
| 196 | * only. |
| 197 | */ |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 198 | GrFixed normalizeFixedX(GrFixed x) const { GrAssert(GrIsPow2(fWidth)); |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 199 | return x >> fShiftFixedX; } |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 200 | GrFixed normalizeFixedY(GrFixed y) const { GrAssert(GrIsPow2(fHeight)); |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 201 | return y >> fShiftFixedY; } |
| 202 | |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 203 | /** |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 204 | * Retrieves the pixel config specified when the texture was created. |
| 205 | */ |
| bsalomon@google.com | 669fdc4 | 2011-04-05 17:08:27 +0000 | [diff] [blame] | 206 | GrPixelConfig config() const { return fConfig; } |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 207 | |
| 208 | /** |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 209 | * Approximate number of bytes used by the texture |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 210 | */ |
| vandebo@chromium.org | ec36471 | 2011-07-26 03:44:05 +0000 | [diff] [blame^] | 211 | size_t sizeInBytes() const { |
| bsalomon@google.com | 669fdc4 | 2011-04-05 17:08:27 +0000 | [diff] [blame] | 212 | return fWidth * fHeight * GrBytesPerPixel(fConfig); |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Updates a subrectangle of texels in the texture. |
| 217 | * |
| junov@google.com | 4ee7ae5 | 2011-06-30 17:30:49 +0000 | [diff] [blame] | 218 | * @param x left edge of rectangle to update |
| 219 | * @param y top edge of rectangle to update |
| 220 | * @param width width of rectangle to update |
| 221 | * @param height height of rectangle to update |
| 222 | * @param srcData width*height texels of data in same format that was |
| 223 | * used at texture creation. |
| 224 | * @param rowBytes number of bytes per row in srcData, 0 means rows are |
| 225 | * packed |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 226 | */ |
| bsalomon@google.com | 79d2dbe | 2011-06-13 19:28:02 +0000 | [diff] [blame] | 227 | virtual void uploadTextureData(int x, |
| 228 | int y, |
| 229 | int width, |
| 230 | int height, |
| junov@google.com | 4ee7ae5 | 2011-06-30 17:30:49 +0000 | [diff] [blame] | 231 | const void* srcData, |
| 232 | size_t rowBytes) = 0; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 233 | |
| 234 | /** |
| bsalomon@google.com | 669fdc4 | 2011-04-05 17:08:27 +0000 | [diff] [blame] | 235 | * Reads a rectangle of pixels from the texture. |
| 236 | * @param left left edge of the rectangle to read (inclusive) |
| 237 | * @param top top edge of the rectangle to read (inclusive) |
| 238 | * @param width width of rectangle to read in pixels. |
| 239 | * @param height height of rectangle to read in pixels. |
| 240 | * @param config the pixel config of the destination buffer |
| 241 | * @param buffer memory to read the rectangle into. |
| 242 | * |
| 243 | * @return true if the read succeeded, false if not. The read can fail |
| 244 | * because of a unsupported pixel config. |
| 245 | */ |
| 246 | bool readPixels(int left, int top, int width, int height, |
| 247 | GrPixelConfig config, void* buffer); |
| 248 | |
| 249 | /** |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 250 | * Retrieves the render target underlying this texture that can be passed to |
| 251 | * GrGpu::setRenderTarget(). |
| 252 | * |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 253 | * @return handle to render target or NULL if the texture is not a |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 254 | * render target |
| 255 | */ |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 256 | GrRenderTarget* asRenderTarget() { return fRenderTarget; } |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 257 | |
| 258 | /** |
| bsalomon@google.com | 1da0746 | 2011-03-10 14:51:57 +0000 | [diff] [blame] | 259 | * Removes the reference on the associated GrRenderTarget held by this |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 260 | * texture. Afterwards asRenderTarget() will return NULL. The |
| bsalomon@google.com | 1da0746 | 2011-03-10 14:51:57 +0000 | [diff] [blame] | 261 | * GrRenderTarget survives the release if another ref is held on it. |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 262 | */ |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 263 | void releaseRenderTarget() { |
| 264 | if (NULL != fRenderTarget) { |
| 265 | GrAssert(fRenderTarget->asTexture() == this); |
| 266 | fRenderTarget->onTextureReleaseRenderTarget(); |
| 267 | fRenderTarget->unref(); |
| 268 | fRenderTarget = NULL; |
| 269 | } |
| 270 | } |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 271 | |
| 272 | /** |
| 273 | * Return the native ID or handle to the texture, depending on the |
| 274 | * platform. e.g. on opengl, return the texture ID. |
| 275 | */ |
| vandebo@chromium.org | ec36471 | 2011-07-26 03:44:05 +0000 | [diff] [blame^] | 276 | virtual intptr_t getTextureHandle() = 0; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 277 | |
| 278 | #if GR_DEBUG |
| 279 | void validate() const { |
| 280 | this->INHERITED::validate(); |
| 281 | } |
| 282 | #else |
| 283 | void validate() const {} |
| 284 | #endif |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 285 | |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 286 | protected: |
| 287 | GrRenderTarget* fRenderTarget; // texture refs its rt representation |
| 288 | // base class cons sets to NULL |
| 289 | // subclass cons can create and set |
| 290 | |
| 291 | GrTexture(GrGpu* gpu, |
| 292 | int width, |
| 293 | int height, |
| 294 | GrPixelConfig config) |
| 295 | : INHERITED(gpu) |
| 296 | , fRenderTarget(NULL) |
| 297 | , fWidth(width) |
| 298 | , fHeight(height) |
| 299 | , fConfig(config) { |
| 300 | // only make sense if alloc size is pow2 |
| 301 | fShiftFixedX = 31 - Gr_clz(fWidth); |
| 302 | fShiftFixedY = 31 - Gr_clz(fHeight); |
| 303 | } |
| vandebo@chromium.org | ec36471 | 2011-07-26 03:44:05 +0000 | [diff] [blame^] | 304 | |
| bsalomon@google.com | 6dcf499 | 2011-04-05 21:16:14 +0000 | [diff] [blame] | 305 | // GrResource overrides |
| 306 | virtual void onRelease() { |
| 307 | releaseRenderTarget(); |
| 308 | } |
| 309 | |
| 310 | virtual void onAbandon() { |
| 311 | if (NULL != fRenderTarget) { |
| 312 | fRenderTarget->abandon(); |
| 313 | } |
| 314 | } |
| 315 | |
| bsalomon@google.com | 1c13c96 | 2011-02-14 16:51:21 +0000 | [diff] [blame] | 316 | private: |
| bsalomon@google.com | c6cf723 | 2011-02-17 16:43:10 +0000 | [diff] [blame] | 317 | int fWidth; |
| 318 | int fHeight; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 319 | // these two shift a fixed-point value into normalized coordinates |
| 320 | // for this texture if the texture is power of two sized. |
| 321 | int fShiftFixedX; |
| 322 | int fShiftFixedY; |
| bsalomon@google.com | 669fdc4 | 2011-04-05 17:08:27 +0000 | [diff] [blame] | 323 | |
| 324 | GrPixelConfig fConfig; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 325 | |
| bsalomon@google.com | 8fe7247 | 2011-03-30 21:26:44 +0000 | [diff] [blame] | 326 | typedef GrResource INHERITED; |
| reed@google.com | ac10a2d | 2010-12-22 21:39:39 +0000 | [diff] [blame] | 327 | }; |
| 328 | |
| 329 | #endif |
| 330 | |