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

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

Issue 2002253002: Remove sRGB overrides on GrTextureParams. Use GrPaint flags instead. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « src/gpu/effects/GrConfigConversionEffect.cpp ('k') | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } 50 const GrGLCaps& glCaps() const { return *fGLContext->caps(); }
51 51
52 GrGLPathRendering* glPathRendering() { 52 GrGLPathRendering* glPathRendering() {
53 SkASSERT(glCaps().shaderCaps()->pathRenderingSupport()); 53 SkASSERT(glCaps().shaderCaps()->pathRenderingSupport());
54 return static_cast<GrGLPathRendering*>(pathRendering()); 54 return static_cast<GrGLPathRendering*>(pathRendering());
55 } 55 }
56 56
57 void discard(GrRenderTarget*) override; 57 void discard(GrRenderTarget*) override;
58 58
59 // Used by GrGLProgram to configure OpenGL state. 59 // Used by GrGLProgram to configure OpenGL state.
60 void bindTexture(int unitIdx, const GrTextureParams& params, bool dstConfigA llowsSRGB, 60 void bindTexture(int unitIdx, const GrTextureParams& params, bool allowSRGBI nputs,
Brian Osman 2016/05/23 20:52:04 Just wanted to rename this parameter to bring it i
61 GrGLTexture* texture); 61 GrGLTexture* texture);
62 62
63 void bindTexelBuffer(int unitIdx, intptr_t offsetInBytes, GrPixelConfig, GrG LBuffer*); 63 void bindTexelBuffer(int unitIdx, intptr_t offsetInBytes, GrPixelConfig, GrG LBuffer*);
64 64
65 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes, 65 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes,
66 GrPixelConfig readConfig, DrawPreference*, 66 GrPixelConfig readConfig, DrawPreference*,
67 ReadPixelTempDrawInfo*) override; 67 ReadPixelTempDrawInfo*) override;
68 68
69 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 69 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height,
70 GrPixelConfig srcConfig, DrawPreference*, 70 GrPixelConfig srcConfig, DrawPreference*,
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 bool fHWPLSEnabled; 562 bool fHWPLSEnabled;
563 bool fPLSHasBeenUsed; 563 bool fPLSHasBeenUsed;
564 564
565 float fHWMinSampleShading; 565 float fHWMinSampleShading;
566 566
567 typedef GrGpu INHERITED; 567 typedef GrGpu INHERITED;
568 friend class GrGLPathRendering; // For accessing setTextureUnit. 568 friend class GrGLPathRendering; // For accessing setTextureUnit.
569 }; 569 };
570 570
571 #endif 571 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698