Chromium Code Reviews| Index: src/gpu/GrTest.cpp |
| diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp |
| index b2fd99f6c39c42b6448f02441afb27df1add84fe..c4fad51740c4f68c7d7ddd25c78ba102e1a1898c 100644 |
| --- a/src/gpu/GrTest.cpp |
| +++ b/src/gpu/GrTest.cpp |
| @@ -146,13 +146,14 @@ public: |
| fCaps.reset(SkNEW_ARGS(GrCaps, (options))); |
| } |
| ~MockGpu() override {} |
| - bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const override { |
| - return true; |
| - } |
| - bool getReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, |
| - GrPixelConfig readConfig, DrawPreference*, |
| - ReadPixelTempDrawInfo*) override { return false; } |
| + bool onGetReadPixelsInfo(GrSurface* srcSurface, int readWidth, int readHeight, size_t rowBytes, |
| + GrPixelConfig readConfig, DrawPreference*, |
| + ReadPixelTempDrawInfo*) override { return false; } |
| + |
| + bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, size_t rowBytes, |
|
robertphillips
2015/07/28 13:15:23
line up ?
bsalomon
2015/07/28 14:58:17
Done.
|
| + GrPixelConfig srcConfig, DrawPreference*, |
| + WritePixelTempDrawInfo*) override { return false; } |
| void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, |
| const GrPipeline&, |