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 | 10 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 bool onCopySurface(GrSurface* dst, | 231 bool onCopySurface(GrSurface* dst, |
232 GrSurface* src, | 232 GrSurface* src, |
233 const SkIRect& srcRect, | 233 const SkIRect& srcRect, |
234 const SkIPoint& dstPoint) override { return false; }; | 234 const SkIPoint& dstPoint) override { return false; }; |
235 | 235 |
236 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { | 236 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const
override { |
237 return false; | 237 return false; |
238 } | 238 } |
239 | 239 |
| 240 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {}
; |
| 241 |
240 private: | 242 private: |
241 void onResetContext(uint32_t resetBits) override {} | 243 void onResetContext(uint32_t resetBits) override {} |
242 | 244 |
243 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 245 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
244 | 246 |
245 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, | 247 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le lifeCycle, |
246 const void* srcData, size_t rowBytes) override { | 248 const void* srcData, size_t rowBytes) override { |
247 return nullptr; | 249 return nullptr; |
248 } | 250 } |
249 | 251 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 SkASSERT(nullptr == fGpu); | 320 SkASSERT(nullptr == fGpu); |
319 fGpu = new MockGpu(this, options); | 321 fGpu = new MockGpu(this, options); |
320 SkASSERT(fGpu); | 322 SkASSERT(fGpu); |
321 this->initCommon(options); | 323 this->initCommon(options); |
322 | 324 |
323 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 325 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
324 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 326 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
325 // resources in the buffer pools. | 327 // resources in the buffer pools. |
326 fDrawingManager->abandon(); | 328 fDrawingManager->abandon(); |
327 } | 329 } |
OLD | NEW |