| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 | 336 |
| 337 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { | 337 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes
c&) override { |
| 338 return nullptr; | 338 return nullptr; |
| 339 } | 339 } |
| 340 | 340 |
| 341 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern, const void*)
override { | 341 GrBuffer* onCreateBuffer(size_t, GrBufferType, GrAccessPattern, const void*)
override { |
| 342 return nullptr; | 342 return nullptr; |
| 343 } | 343 } |
| 344 | 344 |
| 345 gr_instanced::InstancedRendering* onCreateInstancedRendering() override { re
turn nullptr; } |
| 346 |
| 345 bool onReadPixels(GrSurface* surface, | 347 bool onReadPixels(GrSurface* surface, |
| 346 int left, int top, int width, int height, | 348 int left, int top, int width, int height, |
| 347 GrPixelConfig, | 349 GrPixelConfig, |
| 348 void* buffer, | 350 void* buffer, |
| 349 size_t rowBytes) override { | 351 size_t rowBytes) override { |
| 350 return false; | 352 return false; |
| 351 } | 353 } |
| 352 | 354 |
| 353 bool onWritePixels(GrSurface* surface, | 355 bool onWritePixels(GrSurface* surface, |
| 354 int left, int top, int width, int height, | 356 int left, int top, int width, int height, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 SkASSERT(nullptr == fGpu); | 398 SkASSERT(nullptr == fGpu); |
| 397 fGpu = new MockGpu(this, options); | 399 fGpu = new MockGpu(this, options); |
| 398 SkASSERT(fGpu); | 400 SkASSERT(fGpu); |
| 399 this->initCommon(options); | 401 this->initCommon(options); |
| 400 | 402 |
| 401 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 403 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 402 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 404 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 403 // resources in the buffer pools. | 405 // resources in the buffer pools. |
| 404 fDrawingManager->abandon(); | 406 fDrawingManager->abandon(); |
| 405 } | 407 } |
| OLD | NEW |