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

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

Issue 1919063002: Image filters: de-nest SkImageFilter::Cache and Cache::Key. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix copyright Created 4 years, 7 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/SkGpuDevice.h ('k') | src/svg/SkSVGDevice.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 "GrGpu.h" 13 #include "GrGpu.h"
14 #include "GrGpuResourcePriv.h" 14 #include "GrGpuResourcePriv.h"
15 #include "GrImageIDTextureAdjuster.h" 15 #include "GrImageIDTextureAdjuster.h"
16 #include "GrLayerHoister.h" 16 #include "GrLayerHoister.h"
17 #include "GrRecordReplaceDraw.h" 17 #include "GrRecordReplaceDraw.h"
18 #include "GrStrokeInfo.h" 18 #include "GrStrokeInfo.h"
19 #include "GrTracing.h" 19 #include "GrTracing.h"
20 #include "SkCanvasPriv.h" 20 #include "SkCanvasPriv.h"
21 #include "SkErrorInternals.h" 21 #include "SkErrorInternals.h"
22 #include "SkGlyphCache.h" 22 #include "SkGlyphCache.h"
23 #include "SkGrTexturePixelRef.h" 23 #include "SkGrTexturePixelRef.h"
24 #include "SkGr.h" 24 #include "SkGr.h"
25 #include "SkGrPriv.h" 25 #include "SkGrPriv.h"
26 #include "SkImage_Base.h" 26 #include "SkImage_Base.h"
27 #include "SkImageCacherator.h" 27 #include "SkImageCacherator.h"
28 #include "SkImageFilter.h" 28 #include "SkImageFilter.h"
29 #include "SkImageFilterCache.h"
29 #include "SkLayerInfo.h" 30 #include "SkLayerInfo.h"
30 #include "SkMaskFilter.h" 31 #include "SkMaskFilter.h"
31 #include "SkNinePatchIter.h" 32 #include "SkNinePatchIter.h"
32 #include "SkPathEffect.h" 33 #include "SkPathEffect.h"
33 #include "SkPicture.h" 34 #include "SkPicture.h"
34 #include "SkPictureData.h" 35 #include "SkPictureData.h"
35 #include "SkRasterClip.h" 36 #include "SkRasterClip.h"
36 #include "SkRRect.h" 37 #include "SkRRect.h"
37 #include "SkRecord.h" 38 #include "SkRecord.h"
38 #include "SkStroke.h" 39 #include "SkStroke.h"
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering); 1832 GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering);
1832 GrLayerHoister::UnlockLayers(fContext, atlasedRecycled); 1833 GrLayerHoister::UnlockLayers(fContext, atlasedRecycled);
1833 GrLayerHoister::End(fContext); 1834 GrLayerHoister::End(fContext);
1834 1835
1835 return true; 1836 return true;
1836 #else 1837 #else
1837 return false; 1838 return false;
1838 #endif 1839 #endif
1839 } 1840 }
1840 1841
1841 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { 1842 SkImageFilterCache* SkGpuDevice::getImageFilterCache() {
1842 ASSERT_SINGLE_OWNER 1843 ASSERT_SINGLE_OWNER
1843 // We always return a transient cache, so it is freed after each 1844 // We always return a transient cache, so it is freed after each
1844 // filter traversal. 1845 // filter traversal.
1845 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); 1846 return SkImageFilterCache::Create(kDefaultImageFilterCacheSize);
1846 } 1847 }
1847 1848
1848 #endif 1849 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.h ('k') | src/svg/SkSVGDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698