| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, GrGLTexture* te
xture); | 62 void bindTexture(int unitIdx, const GrTextureParams& params, bool dstConfigA
llowsSRGB, |
| 63 GrGLTexture* texture); |
| 63 | 64 |
| 64 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, |
| 65 GrPixelConfig readConfig, DrawPreference*, | 66 GrPixelConfig readConfig, DrawPreference*, |
| 66 ReadPixelTempDrawInfo*) override; | 67 ReadPixelTempDrawInfo*) override; |
| 67 | 68 |
| 68 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, | 69 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
| 69 GrPixelConfig srcConfig, DrawPreference*, | 70 GrPixelConfig srcConfig, DrawPreference*, |
| 70 WritePixelTempDrawInfo*) override; | 71 WritePixelTempDrawInfo*) override; |
| 71 | 72 |
| 72 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; | 73 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 } fPLSSetupProgram; | 618 } fPLSSetupProgram; |
| 618 | 619 |
| 619 bool fHWPLSEnabled; | 620 bool fHWPLSEnabled; |
| 620 bool fPLSHasBeenUsed; | 621 bool fPLSHasBeenUsed; |
| 621 | 622 |
| 622 typedef GrGpu INHERITED; | 623 typedef GrGpu INHERITED; |
| 623 friend class GrGLPathRendering; // For accessing setTextureUnit. | 624 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 624 }; | 625 }; |
| 625 | 626 |
| 626 #endif | 627 #endif |
| OLD | NEW |