| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrTest.h" | 9 #include "GrTest.h" |
| 10 #include "GrContextOptions.h" | 10 #include "GrContextOptions.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 int left, int top, | 155 int left, int top, |
| 156 int width, int height, | 156 int width, int height, |
| 157 GrPixelConfig config, | 157 GrPixelConfig config, |
| 158 size_t rowBytes) const override { return fals
e; } | 158 size_t rowBytes) const override { return fals
e; } |
| 159 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, | 159 void buildProgramDesc(GrProgramDesc*,const GrPrimitiveProcessor&, |
| 160 const GrPipeline&, | 160 const GrPipeline&, |
| 161 const GrBatchTracker&) const override {} | 161 const GrBatchTracker&) const override {} |
| 162 | 162 |
| 163 void discard(GrRenderTarget*) override {} | 163 void discard(GrRenderTarget*) override {} |
| 164 | 164 |
| 165 bool copySurface(GrSurface* dst, | 165 bool onCopySurface(GrSurface* dst, |
| 166 GrSurface* src, | 166 GrSurface* src, |
| 167 const SkIRect& srcRect, | 167 const SkIRect& srcRect, |
| 168 const SkIPoint& dstPoint) override { return false; }; | 168 const SkIPoint& dstPoint) override { return false; }; |
| 169 | 169 |
| 170 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { | 170 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { |
| 171 return false; | 171 return false; |
| 172 } | 172 } |
| 173 | 173 |
| 174 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 174 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
| 175 | 175 |
| 176 private: | 176 private: |
| 177 void onResetContext(uint32_t resetBits) override {} | 177 void onResetContext(uint32_t resetBits) override {} |
| 178 | 178 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 SkASSERT(NULL == fGpu); | 252 SkASSERT(NULL == fGpu); |
| 253 fGpu = SkNEW_ARGS(MockGpu, (this, options)); | 253 fGpu = SkNEW_ARGS(MockGpu, (this, options)); |
| 254 SkASSERT(fGpu); | 254 SkASSERT(fGpu); |
| 255 this->initCommon(); | 255 this->initCommon(); |
| 256 | 256 |
| 257 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 257 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 258 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 258 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 259 // resources in the buffer pools. | 259 // resources in the buffer pools. |
| 260 fDrawingMgr.abandon(); | 260 fDrawingMgr.abandon(); |
| 261 } | 261 } |
| OLD | NEW |