| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 const GrPipeline&, | 159 const GrPipeline&, |
| 160 const GrBatchTracker&) const override {} | 160 const GrBatchTracker&) const override {} |
| 161 | 161 |
| 162 void discard(GrRenderTarget*) override {} | 162 void discard(GrRenderTarget*) override {} |
| 163 | 163 |
| 164 bool copySurface(GrSurface* dst, | 164 bool copySurface(GrSurface* dst, |
| 165 GrSurface* src, | 165 GrSurface* src, |
| 166 const SkIRect& srcRect, | 166 const SkIRect& srcRect, |
| 167 const SkIPoint& dstPoint) override { return false; }; | 167 const SkIPoint& dstPoint) override { return false; }; |
| 168 | 168 |
| 169 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr
ide { | 169 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
| 170 return false; | 170 return false; |
| 171 } | 171 } |
| 172 | 172 |
| 173 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 173 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
| 174 | 174 |
| 175 private: | 175 private: |
| 176 void onResetContext(uint32_t resetBits) override {} | 176 void onResetContext(uint32_t resetBits) override {} |
| 177 | 177 |
| 178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 178 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
| 179 const void* srcData, size_t rowBytes) override { | 179 const void* srcData, size_t rowBytes) override { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 SkASSERT(NULL == fGpu); | 256 SkASSERT(NULL == fGpu); |
| 257 fGpu = SkNEW_ARGS(MockGpu, (this, options)); | 257 fGpu = SkNEW_ARGS(MockGpu, (this, options)); |
| 258 SkASSERT(fGpu); | 258 SkASSERT(fGpu); |
| 259 this->initCommon(); | 259 this->initCommon(); |
| 260 | 260 |
| 261 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 261 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 262 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 262 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 263 // resources in the buffer pools. | 263 // resources in the buffer pools. |
| 264 fDrawingMgr.abandon(); | 264 fDrawingMgr.abandon(); |
| 265 } | 265 } |
| OLD | NEW |