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

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

Issue 1521453002: Move all text stuff to its own folder (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext11textutils2
Patch Set: Created 5 years 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/GrTextUtils.cpp ('k') | src/gpu/batches/GrAtlasTextBatch.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 "SkGpuDevice.h" 8 #include "SkGpuDevice.h"
9 9
10 #include "GrBlurUtils.h" 10 #include "GrBlurUtils.h"
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "SkDraw.h" 12 #include "SkDraw.h"
13 #include "GrDrawContext.h" 13 #include "GrDrawContext.h"
14 #include "GrFontScaler.h"
15 #include "GrGpu.h" 14 #include "GrGpu.h"
16 #include "GrGpuResourcePriv.h" 15 #include "GrGpuResourcePriv.h"
17 #include "GrImageIDTextureAdjuster.h" 16 #include "GrImageIDTextureAdjuster.h"
18 #include "GrLayerHoister.h" 17 #include "GrLayerHoister.h"
19 #include "GrRecordReplaceDraw.h" 18 #include "GrRecordReplaceDraw.h"
20 #include "GrStrokeInfo.h" 19 #include "GrStrokeInfo.h"
21 #include "GrTextContext.h"
22 #include "GrTracing.h" 20 #include "GrTracing.h"
23 #include "SkCanvasPriv.h" 21 #include "SkCanvasPriv.h"
24 #include "SkErrorInternals.h" 22 #include "SkErrorInternals.h"
25 #include "SkGlyphCache.h" 23 #include "SkGlyphCache.h"
26 #include "SkGrTexturePixelRef.h" 24 #include "SkGrTexturePixelRef.h"
27 #include "SkGr.h" 25 #include "SkGr.h"
28 #include "SkGrPriv.h" 26 #include "SkGrPriv.h"
29 #include "SkImage_Base.h" 27 #include "SkImage_Base.h"
30 #include "SkImageCacherator.h" 28 #include "SkImageCacherator.h"
31 #include "SkImageFilter.h" 29 #include "SkImageFilter.h"
(...skipping 10 matching lines...) Expand all
42 #include "SkSurface_Gpu.h" 40 #include "SkSurface_Gpu.h"
43 #include "SkTLazy.h" 41 #include "SkTLazy.h"
44 #include "SkUtils.h" 42 #include "SkUtils.h"
45 #include "SkVertState.h" 43 #include "SkVertState.h"
46 #include "SkXfermode.h" 44 #include "SkXfermode.h"
47 #include "batches/GrRectBatchFactory.h" 45 #include "batches/GrRectBatchFactory.h"
48 #include "effects/GrBicubicEffect.h" 46 #include "effects/GrBicubicEffect.h"
49 #include "effects/GrDashingEffect.h" 47 #include "effects/GrDashingEffect.h"
50 #include "effects/GrSimpleTextureEffect.h" 48 #include "effects/GrSimpleTextureEffect.h"
51 #include "effects/GrTextureDomain.h" 49 #include "effects/GrTextureDomain.h"
50 #include "text/GrTextContext.h"
52 51
53 #if SK_SUPPORT_GPU 52 #if SK_SUPPORT_GPU
54 53
55 enum { kDefaultImageFilterCacheSize = 32 * 1024 * 1024 }; 54 enum { kDefaultImageFilterCacheSize = 32 * 1024 * 1024 };
56 55
57 #if 0 56 #if 0
58 extern bool (*gShouldDrawProc)(); 57 extern bool (*gShouldDrawProc)();
59 #define CHECK_SHOULD_DRAW(draw) \ 58 #define CHECK_SHOULD_DRAW(draw) \
60 do { \ 59 do { \
61 if (gShouldDrawProc && !gShouldDrawProc()) return; \ 60 if (gShouldDrawProc && !gShouldDrawProc()) return; \
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); 1873 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize);
1875 } 1874 }
1876 1875
1877 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { 1876 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() {
1878 // We always return a transient cache, so it is freed after each 1877 // We always return a transient cache, so it is freed after each
1879 // filter traversal. 1878 // filter traversal.
1880 return SkGpuDevice::NewImageFilterCache(); 1879 return SkGpuDevice::NewImageFilterCache();
1881 } 1880 }
1882 1881
1883 #endif 1882 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTextUtils.cpp ('k') | src/gpu/batches/GrAtlasTextBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698