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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void generateMipmaps(const GrTextureParams& params, bool allowSRGBInputs, Gr
GLTexture* texture); | 64 void generateMipmaps(const GrTextureParams& params, bool allowSRGBInputs, Gr
GLTexture* texture); |
65 | 65 |
66 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh
t, size_t rowBytes, | 66 bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeigh
t, size_t rowBytes, |
67 GrPixelConfig readConfig, DrawPreference*, | 67 GrPixelConfig readConfig, DrawPreference*, |
68 ReadPixelTempDrawInfo*) override; | 68 ReadPixelTempDrawInfo*) override; |
69 | 69 |
70 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, | 70 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
71 GrPixelConfig srcConfig, DrawPreference*, | 71 GrPixelConfig srcConfig, DrawPreference*, |
72 WritePixelTempDrawInfo*) override; | 72 WritePixelTempDrawInfo*) override; |
73 | 73 |
74 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override; | 74 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons
t override; |
75 | 75 |
76 // These functions should be used to bind GL objects. They track the GL stat
e and skip redundant | 76 // These functions should be used to bind GL objects. They track the GL stat
e and skip redundant |
77 // bindings. Making the equivalent glBind calls directly will confuse the st
ate tracking. | 77 // bindings. Making the equivalent glBind calls directly will confuse the st
ate tracking. |
78 void bindVertexArray(GrGLuint id) { | 78 void bindVertexArray(GrGLuint id) { |
79 fHWVertexArrayState.setVertexArrayID(this, id); | 79 fHWVertexArrayState.setVertexArrayID(this, id); |
80 } | 80 } |
81 | 81 |
82 // These callbacks update state tracking when GL objects are deleted. They a
re called from | 82 // These callbacks update state tracking when GL objects are deleted. They a
re called from |
83 // GrGLResource onRelease functions. | 83 // GrGLResource onRelease functions. |
84 void notifyVertexArrayDelete(GrGLuint id) { | 84 void notifyVertexArrayDelete(GrGLuint id) { |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 bool fPLSHasBeenUsed; | 635 bool fPLSHasBeenUsed; |
636 | 636 |
637 float fHWMinSampleShading; | 637 float fHWMinSampleShading; |
638 | 638 |
639 typedef GrGpu INHERITED; | 639 typedef GrGpu INHERITED; |
640 friend class GrGLPathRendering; // For accessing setTextureUnit. | 640 friend class GrGLPathRendering; // For accessing setTextureUnit. |
641 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. | 641 friend class gr_instanced::GLInstancedRendering; // For accessing flushGLSta
te. |
642 }; | 642 }; |
643 | 643 |
644 #endif | 644 #endif |
OLD | NEW |