| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrGpuGL_DEFINED | 8 #ifndef GrGpuGL_DEFINED |
| 9 #define GrGpuGL_DEFINED | 9 #define GrGpuGL_DEFINED |
| 10 | 10 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 void initStencilFormats(); | 228 void initStencilFormats(); |
| 229 | 229 |
| 230 // sets a texture unit to use for texture operations other than binding a te
xture to a program. | 230 // sets a texture unit to use for texture operations other than binding a te
xture to a program. |
| 231 // ensures that such operations don't negatively interact with tracking boun
d textures. | 231 // ensures that such operations don't negatively interact with tracking boun
d textures. |
| 232 void setScratchTextureUnit(); | 232 void setScratchTextureUnit(); |
| 233 | 233 |
| 234 // bounds is region that may be modified and therefore has to be resolved. | 234 // bounds is region that may be modified and therefore has to be resolved. |
| 235 // NULL means whole target. Can be an empty rect. | 235 // NULL means whole target. Can be an empty rect. |
| 236 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); | 236 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); |
| 237 | 237 |
| 238 void flushStencil(DrawType); | 238 void flushStencil(const GrStencilSettings&, DrawType); |
| 239 void flushAAState(const GrOptDrawState&, DrawType); | 239 void flushAAState(const GrOptDrawState&, DrawType); |
| 240 | 240 |
| 241 bool configToGLFormats(GrPixelConfig config, | 241 bool configToGLFormats(GrPixelConfig config, |
| 242 bool getSizedInternal, | 242 bool getSizedInternal, |
| 243 GrGLenum* internalFormat, | 243 GrGLenum* internalFormat, |
| 244 GrGLenum* externalFormat, | 244 GrGLenum* externalFormat, |
| 245 GrGLenum* externalType); | 245 GrGLenum* externalType); |
| 246 // helper for onCreateTexture and writeTexturePixels | 246 // helper for onCreateTexture and writeTexturePixels |
| 247 bool uploadTexData(const GrGLTexture::Desc& desc, | 247 bool uploadTexData(const GrGLTexture::Desc& desc, |
| 248 bool isNewTexture, | 248 bool isNewTexture, |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 // we record what stencil format worked last time to hopefully exit early | 441 // we record what stencil format worked last time to hopefully exit early |
| 442 // from our loop that tries stencil formats and calls check fb status. | 442 // from our loop that tries stencil formats and calls check fb status. |
| 443 int fLastSuccessfulStencilFmtIdx; | 443 int fLastSuccessfulStencilFmtIdx; |
| 444 | 444 |
| 445 typedef GrGpu INHERITED; | 445 typedef GrGpu INHERITED; |
| 446 friend class GrGLPathRendering; // For accessing setTextureUnit. | 446 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 447 }; | 447 }; |
| 448 | 448 |
| 449 #endif | 449 #endif |
| OLD | NEW |