Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: src/gpu/gl/GrGpuGL.h

Issue 326383003: Allow compressed texture data to be updated. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More explicit Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/gl/GrGpuGL.cpp » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
279 » // for the size of the data.
robertphillips 2014/06/11 19:11:12 Dox for what 'isNewTexture' means?
krajcevski 2014/06/11 19:20:47 Done.
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGpuGL.cpp » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698