| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |