| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, GrGLTexture* te
xture); | 60 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te
xture); |
| 61 | 61 |
| 62 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh
t, size_t rowBytes, | 62 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh
t, size_t rowBytes, |
| 63 GrPixelConfig readConfig, DrawPreference*, | 63 GrPixelConfig readConfig, DrawPreference*, |
| 64 ReadPixelTempDrawInfo*) override; | 64 ReadPixelTempDrawInfo*) override; |
| 65 | 65 |
| 66 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, | 66 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
| 67 size_t rowBytes, GrPixelConfig srcConfig, DrawPref
erence*, | 67 GrPixelConfig srcConfig, DrawPreference*, |
| 68 WritePixelTempDrawInfo*) override; | 68 WritePixelTempDrawInfo*) override; |
| 69 | 69 |
| 70 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; | 70 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; |
| 71 | 71 |
| 72 // These functions should be used to bind GL objects. They track the GL stat
e and skip redundant | 72 // These functions should be used to bind GL objects. They track the GL stat
e and skip redundant |
| 73 // bindings. Making the equivalent glBind calls directly will confuse the st
ate tracking. | 73 // bindings. Making the equivalent glBind calls directly will confuse the st
ate tracking. |
| 74 void bindVertexArray(GrGLuint id) { | 74 void bindVertexArray(GrGLuint id) { |
| 75 fHWGeometryState.setVertexArrayID(this, id); | 75 fHWGeometryState.setVertexArrayID(this, id); |
| 76 } | 76 } |
| 77 void bindIndexBufferAndDefaultVertexArray(GrGLuint id) { | 77 void bindIndexBufferAndDefaultVertexArray(GrGLuint id) { |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 } fPLSSetupProgram; | 585 } fPLSSetupProgram; |
| 586 | 586 |
| 587 bool fHWPLSEnabled; | 587 bool fHWPLSEnabled; |
| 588 bool fPLSHasBeenUsed; | 588 bool fPLSHasBeenUsed; |
| 589 | 589 |
| 590 typedef GrGpu INHERITED; | 590 typedef GrGpu INHERITED; |
| 591 friend class GrGLPathRendering; // For accessing setTextureUnit. | 591 friend class GrGLPathRendering; // For accessing setTextureUnit. |
| 592 }; | 592 }; |
| 593 | 593 |
| 594 #endif | 594 #endif |
| OLD | NEW |