Chromium Code Reviews| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 267 GrGLenum* externalFormat, | 267 GrGLenum* externalFormat, |
| 268 GrGLenum* externalType); | 268 GrGLenum* externalType); |
| 269 // helper for onCreateTexture and writeTexturePixels | 269 // helper for onCreateTexture and writeTexturePixels |
| 270 bool uploadTexData(const GrGLTexture::Desc& desc, | 270 bool uploadTexData(const GrGLTexture::Desc& desc, |
| 271 bool isNewTexture, | 271 bool isNewTexture, |
| 272 int left, int top, int width, int height, | 272 int left, int top, int width, int height, |
| 273 GrPixelConfig dataConfig, | 273 GrPixelConfig dataConfig, |
| 274 const void* data, | 274 const void* data, |
| 275 size_t rowBytes); | 275 size_t rowBytes); |
| 276 | 276 |
| 277 // helper for onCreateCompressedTexture | 277 // helper for onCreateCompressedTexture. If width and height are |
| 278 // set to -1, then this function will use desc.fWidth and desc.fHeight | |
|
robertphillips
2014/06/11 18:20:57
align comment ?
krajcevski
2014/06/11 18:58:41
Err.. I'm not sure why this is showing up like thi
| |
| 279 » // for the size of the data. | |
| 278 bool uploadCompressedTexData(const GrGLTexture::Desc& desc, | 280 bool uploadCompressedTexData(const GrGLTexture::Desc& desc, |
| 279 const void* data); | 281 const void* data, |
| 282 bool isNewTexture = true, | |
| 283 int left = 0, int top = 0, | |
| 284 int width = -1, int height = -1); | |
| 280 | 285 |
| 281 bool createRenderTargetObjects(int width, int height, | 286 bool createRenderTargetObjects(int width, int height, |
| 282 GrGLuint texID, | 287 GrGLuint texID, |
| 283 GrGLRenderTarget::Desc* desc); | 288 GrGLRenderTarget::Desc* desc); |
| 284 | 289 |
| 285 GrGLContext fGLContext; | 290 GrGLContext fGLContext; |
| 286 | 291 |
| 287 // GL program-related state | 292 // GL program-related state |
| 288 ProgramCache* fProgramCache; | 293 ProgramCache* fProgramCache; |
| 289 SkAutoTUnref<GrGLProgram> fCurrentProgram; | 294 SkAutoTUnref<GrGLProgram> fCurrentProgram; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 471 // we record what stencil format worked last time to hopefully exit early | 476 // we record what stencil format worked last time to hopefully exit early |
| 472 // from our loop that tries stencil formats and calls check fb status. | 477 // from our loop that tries stencil formats and calls check fb status. |
| 473 int fLastSuccessfulStencilFmtIdx; | 478 int fLastSuccessfulStencilFmtIdx; |
| 474 | 479 |
| 475 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; | 480 SkAutoTDelete<GrGLNameAllocator> fPathNameAllocator; |
| 476 | 481 |
| 477 typedef GrGpu INHERITED; | 482 typedef GrGpu INHERITED; |
| 478 }; | 483 }; |
| 479 | 484 |
| 480 #endif | 485 #endif |
| OLD | NEW |