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

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

Issue 1814533003: Revert of sRGB support in Ganesh. Several pieces: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/gl/GrGLDefines.h ('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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const GrGLCaps& glCaps() const { return *fGLContext->caps(); } 52 const GrGLCaps& glCaps() const { return *fGLContext->caps(); }
53 53
54 GrGLPathRendering* glPathRendering() { 54 GrGLPathRendering* glPathRendering() {
55 SkASSERT(glCaps().shaderCaps()->pathRenderingSupport()); 55 SkASSERT(glCaps().shaderCaps()->pathRenderingSupport());
56 return static_cast<GrGLPathRendering*>(pathRendering()); 56 return static_cast<GrGLPathRendering*>(pathRendering());
57 } 57 }
58 58
59 void discard(GrRenderTarget*) override; 59 void discard(GrRenderTarget*) override;
60 60
61 // Used by GrGLProgram to configure OpenGL state. 61 // Used by GrGLProgram to configure OpenGL state.
62 void bindTexture(int unitIdx, const GrTextureParams& params, bool dstConfigA llowsSRGB, 62 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
63 GrGLTexture* texture);
64 63
65 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes, 64 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh t, size_t rowBytes,
66 GrPixelConfig readConfig, DrawPreference*, 65 GrPixelConfig readConfig, DrawPreference*,
67 ReadPixelTempDrawInfo*) override; 66 ReadPixelTempDrawInfo*) override;
68 67
69 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 68 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height,
70 GrPixelConfig srcConfig, DrawPreference*, 69 GrPixelConfig srcConfig, DrawPreference*,
71 WritePixelTempDrawInfo*) override; 70 WritePixelTempDrawInfo*) override;
72 71
73 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override; 72 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override;
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } fPLSSetupProgram; 618 } fPLSSetupProgram;
620 619
621 bool fHWPLSEnabled; 620 bool fHWPLSEnabled;
622 bool fPLSHasBeenUsed; 621 bool fPLSHasBeenUsed;
623 622
624 typedef GrGpu INHERITED; 623 typedef GrGpu INHERITED;
625 friend class GrGLPathRendering; // For accessing setTextureUnit. 624 friend class GrGLPathRendering; // For accessing setTextureUnit.
626 }; 625 };
627 626
628 #endif 627 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698