| 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 |
| 11 #include "GrBatchAtlas.h" | 11 #include "GrBatchAtlas.h" |
| 12 #include "GrBatchFontCache.h" | 12 #include "GrBatchFontCache.h" |
| 13 #include "GrBufferedDrawTarget.h" | |
| 14 #include "GrContextOptions.h" | 13 #include "GrContextOptions.h" |
| 15 #include "GrGpuResourceCacheAccess.h" | 14 #include "GrGpuResourceCacheAccess.h" |
| 16 #include "GrResourceCache.h" | 15 #include "GrResourceCache.h" |
| 17 #include "GrTextBlobCache.h" | 16 #include "GrTextBlobCache.h" |
| 18 #include "SkString.h" | 17 #include "SkString.h" |
| 19 | 18 |
| 20 namespace GrTest { | 19 namespace GrTest { |
| 21 void SetupAlwaysEvictAtlas(GrContext* context) { | 20 void SetupAlwaysEvictAtlas(GrContext* context) { |
| 22 // These sizes were selected because they allow each atlas to hold a single
plot and will thus | 21 // These sizes were selected because they allow each atlas to hold a single
plot and will thus |
| 23 // stress the atlas | 22 // stress the atlas |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 SkASSERT(nullptr == fGpu); | 289 SkASSERT(nullptr == fGpu); |
| 291 fGpu = new MockGpu(this, options); | 290 fGpu = new MockGpu(this, options); |
| 292 SkASSERT(fGpu); | 291 SkASSERT(fGpu); |
| 293 this->initCommon(); | 292 this->initCommon(); |
| 294 | 293 |
| 295 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 294 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of |
| 296 // these objects are required for any of tests that use this context. TODO:
make stop allocating | 295 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
| 297 // resources in the buffer pools. | 296 // resources in the buffer pools. |
| 298 fDrawingMgr.abandon(); | 297 fDrawingMgr.abandon(); |
| 299 } | 298 } |
| OLD | NEW |