| 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 SkASSERT(nullptr == fGpu); | 410 SkASSERT(nullptr == fGpu); |
| 411 fGpu = new MockGpu(this, options); | 411 fGpu = new MockGpu(this, options); |
| 412 SkASSERT(fGpu); | 412 SkASSERT(fGpu); |
| 413 this->initCommon(options); | 413 this->initCommon(options); |
| 414 | 414 |
| 415 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 415 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 416 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 416 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 417 // resources in the buffer pools. | 417 // resources in the buffer pools. |
| 418 fDrawingManager->abandon(); | 418 fDrawingManager->abandon(); |
| 419 } | 419 } |
| OLD | NEW |