Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: src/gpu/GrTest.cpp

Issue 1315513008: Cleanup GrDrawTarget now that all paths lead to GrBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@patharray
Patch Set: remove change to SampleApp.cpp Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrTargetCommands.cpp ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrTargetCommands.cpp ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698