| 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 "effects/GrBicubicEffect.h" | 10 #include "effects/GrBicubicEffect.h" |
| (...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 GrLayerHoister::FindLayersToHoist(fContext, mainPicture, | 1825 GrLayerHoister::FindLayersToHoist(fContext, mainPicture, |
| 1826 initialMatrix, | 1826 initialMatrix, |
| 1827 clipBounds, | 1827 clipBounds, |
| 1828 &needRendering, &recycled, | 1828 &needRendering, &recycled, |
| 1829 fRenderTarget->numSamples()); | 1829 fRenderTarget->numSamples()); |
| 1830 | 1830 |
| 1831 GrLayerHoister::DrawLayers(fContext, needRendering); | 1831 GrLayerHoister::DrawLayers(fContext, needRendering); |
| 1832 | 1832 |
| 1833 GrReplacements replacements; | 1833 GrReplacements replacements; |
| 1834 | 1834 |
| 1835 GrLayerHoister::ConvertLayersToReplacements(needRendering, &replacements); | 1835 GrLayerHoister::ConvertLayersToReplacements(mainPicture, needRendering, &rep
lacements); |
| 1836 GrLayerHoister::ConvertLayersToReplacements(recycled, &replacements); | 1836 GrLayerHoister::ConvertLayersToReplacements(mainPicture, recycled, &replacem
ents); |
| 1837 | 1837 |
| 1838 // Render the entire picture using new layers | 1838 // Render the entire picture using new layers |
| 1839 GrRecordReplaceDraw(mainPicture, mainCanvas, &replacements, initialMatrix, N
ULL); | 1839 GrRecordReplaceDraw(mainPicture, mainCanvas, &replacements, initialMatrix, N
ULL); |
| 1840 | 1840 |
| 1841 GrLayerHoister::UnlockLayers(fContext, needRendering); | 1841 GrLayerHoister::UnlockLayers(fContext, needRendering); |
| 1842 GrLayerHoister::UnlockLayers(fContext, recycled); | 1842 GrLayerHoister::UnlockLayers(fContext, recycled); |
| 1843 GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering); | 1843 GrLayerHoister::UnlockLayers(fContext, atlasedNeedRendering); |
| 1844 GrLayerHoister::UnlockLayers(fContext, atlasedRecycled); | 1844 GrLayerHoister::UnlockLayers(fContext, atlasedRecycled); |
| 1845 | 1845 |
| 1846 return true; | 1846 return true; |
| 1847 } | 1847 } |
| 1848 | 1848 |
| 1849 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { | 1849 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { |
| 1850 // We always return a transient cache, so it is freed after each | 1850 // We always return a transient cache, so it is freed after each |
| 1851 // filter traversal. | 1851 // filter traversal. |
| 1852 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); | 1852 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); |
| 1853 } | 1853 } |
| 1854 | 1854 |
| 1855 #endif | 1855 #endif |
| OLD | NEW |