| 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 GrGLGpu_DEFINED | 8 #ifndef GrGLGpu_DEFINED |
| 9 #define GrGLGpu_DEFINED | 9 #define GrGLGpu_DEFINED |
| 10 | 10 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 void setScratchTextureUnit(); | 277 void setScratchTextureUnit(); |
| 278 | 278 |
| 279 // bounds is region that may be modified and therefore has to be resolved. | 279 // bounds is region that may be modified and therefore has to be resolved. |
| 280 // nullptr means whole target. Can be an empty rect. | 280 // nullptr means whole target. Can be an empty rect. |
| 281 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); | 281 void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); |
| 282 | 282 |
| 283 void flushStencil(const GrStencilSettings&); | 283 void flushStencil(const GrStencilSettings&); |
| 284 void flushHWAAState(GrRenderTarget* rt, bool useHWAA); | 284 void flushHWAAState(GrRenderTarget* rt, bool useHWAA); |
| 285 | 285 |
| 286 void generateConfigTable(); | 286 void generateConfigTable(); |
| 287 bool configToGLFormats(GrPixelConfig config, | 287 |
| 288 bool getSizedInternal, | |
| 289 GrGLenum* internalFormat, | |
| 290 GrGLenum* externalFormat, | |
| 291 GrGLenum* externalType) const; | |
| 292 // helper for onCreateTexture and writeTexturePixels | 288 // helper for onCreateTexture and writeTexturePixels |
| 293 bool uploadTexData(const GrSurfaceDesc& desc, | 289 bool uploadTexData(const GrSurfaceDesc& desc, |
| 294 GrGLenum target, | 290 GrGLenum target, |
| 295 bool isNewTexture, | 291 bool isNewTexture, |
| 296 int left, int top, int width, int height, | 292 int left, int top, int width, int height, |
| 297 GrPixelConfig dataConfig, | 293 GrPixelConfig dataConfig, |
| 298 const void* data, | 294 const void* data, |
| 299 size_t rowBytes); | 295 size_t rowBytes); |
| 300 | 296 |
| 301 // helper for onCreateCompressedTexture. If width and height are | 297 // helper for onCreateCompressedTexture. If width and height are |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 }; | 563 }; |
| 568 }; | 564 }; |
| 569 | 565 |
| 570 ConfigEntry fConfigTable[kGrPixelConfigCnt]; | 566 ConfigEntry fConfigTable[kGrPixelConfigCnt]; |
| 571 | 567 |
| 572 typedef GrGpu INHERITED; | 568 typedef GrGpu INHERITED; |
| 573 friend class GrGLPathRendering; // For accessing setTextureUnit. | 569 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 574 }; | 570 }; |
| 575 | 571 |
| 576 #endif | 572 #endif |
| OLD | NEW |