OLD | NEW |
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 Loading... |
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 |
OLD | NEW |