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 2112693003: Remove support for GL discards (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 GrGLStandard glStandard() const { return fGLContext->standard(); } 47 GrGLStandard glStandard() const { return fGLContext->standard(); }
48 GrGLVersion glVersion() const { return fGLContext->version(); } 48 GrGLVersion glVersion() const { return fGLContext->version(); }
49 GrGLSLGeneration glslGeneration() const { return fGLContext->glslGeneration( ); } 49 GrGLSLGeneration glslGeneration() const { return fGLContext->glslGeneration( ); }
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*);
58
59 // Used by GrGLProgram to configure OpenGL state. 57 // Used by GrGLProgram to configure OpenGL state.
60 void bindTexture(int unitIdx, const GrTextureParams& params, bool allowSRGBI nputs, 58 void bindTexture(int unitIdx, const GrTextureParams& params, bool allowSRGBI nputs,
61 GrGLTexture* texture); 59 GrGLTexture* texture);
62 60
63 void bindTexelBuffer(int unitIdx, GrPixelConfig, GrGLBuffer*); 61 void bindTexelBuffer(int unitIdx, GrPixelConfig, GrGLBuffer*);
64 62
65 void generateMipmaps(const GrTextureParams& params, bool allowSRGBInputs, Gr GLTexture* texture); 63 void generateMipmaps(const GrTextureParams& params, bool allowSRGBInputs, Gr GLTexture* texture);
66 64
67 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,
68 GrPixelConfig readConfig, DrawPreference*, 66 GrPixelConfig readConfig, DrawPreference*,
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 bool fHWPLSEnabled; 593 bool fHWPLSEnabled;
596 bool fPLSHasBeenUsed; 594 bool fPLSHasBeenUsed;
597 595
598 float fHWMinSampleShading; 596 float fHWMinSampleShading;
599 597
600 typedef GrGpu INHERITED; 598 typedef GrGpu INHERITED;
601 friend class GrGLPathRendering; // For accessing setTextureUnit. 599 friend class GrGLPathRendering; // For accessing setTextureUnit.
602 }; 600 };
603 601
604 #endif 602 #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