Chromium Code Reviews| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |