Index: src/gpu/gl/GrGLGpu.h |
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h |
index 0442e1109bc16aa26245753bada8f4c0af026dd3..066a237e590710ea1023518556127ebe810525dc 100644 |
--- a/src/gpu/gl/GrGLGpu.h |
+++ b/src/gpu/gl/GrGLGpu.h |
@@ -57,13 +57,15 @@ |
// Used by GrGLProgram to configure OpenGL state. |
void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* texture); |
- bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, |
- GrPixelConfig readConfig, DrawPreference*, |
- ReadPixelTempDrawInfo*) override; |
- |
- bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, |
- size_t rowBytes, GrPixelConfig srcConfig, DrawPreference*, |
- WritePixelTempDrawInfo*) override; |
+ bool getReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, |
+ GrPixelConfig readConfig, DrawPreference*, |
+ ReadPixelTempDrawInfo*) override; |
+ |
+ |
+ // GrGpu overrides |
+ GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, |
+ GrPixelConfig surfaceConfig) const override; |
+ bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const override; |
bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override; |