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

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

Issue 1414653003: use (temp) gpu-imagefilter-cache for applyFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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/image/SkImage_Gpu.cpp » ('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"
(...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after
2008 GrLayerHoister::UnlockLayers(fContext, recycled); 2008 GrLayerHoister::UnlockLayers(fContext, recycled);
2009 GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering); 2009 GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering);
2010 GrLayerHoister::UnlockLayers(fContext, atlasedRecycled); 2010 GrLayerHoister::UnlockLayers(fContext, atlasedRecycled);
2011 2011
2012 return true; 2012 return true;
2013 #else 2013 #else
2014 return false; 2014 return false;
2015 #endif 2015 #endif
2016 } 2016 }
2017 2017
2018 SkImageFilter::Cache* SkGpuDevice::NewImageFilterCache() {
2019 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize);
2020 }
2021
2018 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { 2022 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() {
2019 // We always return a transient cache, so it is freed after each 2023 // We always return a transient cache, so it is freed after each
2020 // filter traversal. 2024 // filter traversal.
2021 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); 2025 return SkGpuDevice::NewImageFilterCache();
2022 } 2026 }
2023 2027
2024 #endif 2028 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.h ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698