| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrTest.h" | 8 #include "GrTest.h" |
| 9 | 9 |
| 10 #include "GrBatchAtlas.h" | 10 #include "GrBatchAtlas.h" |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 } | 311 } |
| 312 | 312 |
| 313 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, | 313 GrGpuCommandBuffer* createCommandBuffer(GrRenderTarget* target, |
| 314 const GrGpuCommandBuffer::LoadAndSto
reInfo&, | 314 const GrGpuCommandBuffer::LoadAndSto
reInfo&, |
| 315 const GrGpuCommandBuffer::LoadAndSto
reInfo&) override { | 315 const GrGpuCommandBuffer::LoadAndSto
reInfo&) override { |
| 316 return nullptr; | 316 return nullptr; |
| 317 } | 317 } |
| 318 | 318 |
| 319 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} | 319 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override {} |
| 320 | 320 |
| 321 GrFence SK_WARN_UNUSED_RESULT insertFence() const override { return 0; } |
| 322 bool waitFence(GrFence, uint64_t) const override { return true; } |
| 323 void deleteFence(GrFence) const override {} |
| 324 |
| 321 private: | 325 private: |
| 322 void onResetContext(uint32_t resetBits) override {} | 326 void onResetContext(uint32_t resetBits) override {} |
| 323 | 327 |
| 324 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} | 328 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} |
| 325 | 329 |
| 326 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, | 330 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, |
| 327 const SkTArray<GrMipLevel>& texels) override { | 331 const SkTArray<GrMipLevel>& texels) override { |
| 328 return nullptr; | 332 return nullptr; |
| 329 } | 333 } |
| 330 | 334 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 SkASSERT(nullptr == fGpu); | 409 SkASSERT(nullptr == fGpu); |
| 406 fGpu = new MockGpu(this, options); | 410 fGpu = new MockGpu(this, options); |
| 407 SkASSERT(fGpu); | 411 SkASSERT(fGpu); |
| 408 this->initCommon(options); | 412 this->initCommon(options); |
| 409 | 413 |
| 410 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 414 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 411 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 415 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 412 // resources in the buffer pools. | 416 // resources in the buffer pools. |
| 413 fDrawingManager->abandon(); | 417 fDrawingManager->abandon(); |
| 414 } | 418 } |
| OLD | NEW |