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

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

Issue 1533903004: Remove GrGLGpu::configToGLFormats (Closed) Base URL: https://skia.googlesource.com/skia.git@rmc2glcalls
Patch Set: fix compile error Created 5 years 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/GrGLGpu.cpp » ('j') | no next file with comments »
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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698