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" |
11 #include "GrContextOptions.h" | 11 #include "GrContextOptions.h" |
12 #include "GrDrawContextPriv.h" | 12 #include "GrDrawContextPriv.h" |
13 #include "GrDrawingManager.h" | 13 #include "GrDrawingManager.h" |
14 #include "GrGpuResourceCacheAccess.h" | 14 #include "GrGpuResourceCacheAccess.h" |
| 15 #include "GrPipelineBuilder.h" |
15 #include "GrResourceCache.h" | 16 #include "GrResourceCache.h" |
16 | 17 |
17 #include "SkGpuDevice.h" | 18 #include "SkGpuDevice.h" |
18 #include "SkGrPriv.h" | 19 #include "SkGrPriv.h" |
19 #include "SkMathPriv.h" | 20 #include "SkMathPriv.h" |
20 #include "SkString.h" | 21 #include "SkString.h" |
21 | 22 |
22 #include "text/GrBatchFontCache.h" | 23 #include "text/GrBatchFontCache.h" |
23 #include "text/GrTextBlobCache.h" | 24 #include "text/GrTextBlobCache.h" |
24 | 25 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 SkASSERT(nullptr == fGpu); | 397 SkASSERT(nullptr == fGpu); |
397 fGpu = new MockGpu(this, options); | 398 fGpu = new MockGpu(this, options); |
398 SkASSERT(fGpu); | 399 SkASSERT(fGpu); |
399 this->initCommon(options); | 400 this->initCommon(options); |
400 | 401 |
401 // We delete these because we want to test the cache starting with zero reso
urces. Also, none of | 402 // 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 | 403 // these objects are required for any of tests that use this context. TODO:
make stop allocating |
403 // resources in the buffer pools. | 404 // resources in the buffer pools. |
404 fDrawingManager->abandon(); | 405 fDrawingManager->abandon(); |
405 } | 406 } |
OLD | NEW |