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

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

Issue 2041943002: SkLeanWindows.h: #include "Windows.h" fewer places (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-07 (Tuesday) 11:28:42 EDT Created 4 years, 6 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 | « tools/CrashHandler.cpp ('k') | no next file » | 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 * 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 "GrResourceCache.h" 15 #include "GrResourceCache.h"
16 16
17 #include "SkGpuDevice.h" 17 #include "SkGpuDevice.h"
18 #include "SkGrPriv.h" 18 #include "SkGrPriv.h"
19 #include "SkMathPriv.h"
19 #include "SkString.h" 20 #include "SkString.h"
20 21
21 #include "text/GrBatchFontCache.h" 22 #include "text/GrBatchFontCache.h"
22 #include "text/GrTextBlobCache.h" 23 #include "text/GrTextBlobCache.h"
23 24
24 namespace GrTest { 25 namespace GrTest {
25 void SetupAlwaysEvictAtlas(GrContext* context) { 26 void SetupAlwaysEvictAtlas(GrContext* context) {
26 // These sizes were selected because they allow each atlas to hold a single plot and will thus 27 // These sizes were selected because they allow each atlas to hold a single plot and will thus
27 // stress the atlas 28 // stress the atlas
28 int dim = GrBatchAtlas::kGlyphMaxDim; 29 int dim = GrBatchAtlas::kGlyphMaxDim;
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 SkASSERT(nullptr == fGpu); 398 SkASSERT(nullptr == fGpu);
398 fGpu = new MockGpu(this, options); 399 fGpu = new MockGpu(this, options);
399 SkASSERT(fGpu); 400 SkASSERT(fGpu);
400 this->initCommon(options); 401 this->initCommon(options);
401 402
402 // 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
403 // 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
404 // resources in the buffer pools. 405 // resources in the buffer pools.
405 fDrawingManager->abandon(); 406 fDrawingManager->abandon();
406 } 407 }
OLDNEW
« no previous file with comments | « tools/CrashHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698