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

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

Issue 639863005: Track nested picture xform state for layer hoisting (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rename variable (fInitialMat -> fPreMat) Created 6 years, 1 month 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/GrPictureUtils.cpp ('k') | tests/PictureTest.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 "effects/GrBicubicEffect.h" 10 #include "effects/GrBicubicEffect.h"
(...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 1807
1808 SkTDArray<GrHoistedLayer> atlased, nonAtlased, recycled; 1808 SkTDArray<GrHoistedLayer> atlased, nonAtlased, recycled;
1809 1809
1810 if (!GrLayerHoister::FindLayersToHoist(fContext, mainPicture, clipBounds, 1810 if (!GrLayerHoister::FindLayersToHoist(fContext, mainPicture, clipBounds,
1811 &atlased, &nonAtlased, &recycled)) { 1811 &atlased, &nonAtlased, &recycled)) {
1812 return false; 1812 return false;
1813 } 1813 }
1814 1814
1815 GrReplacements replacements; 1815 GrReplacements replacements;
1816 1816
1817 GrLayerHoister::DrawLayers(atlased, nonAtlased, recycled, &replacements); 1817 GrLayerHoister::DrawLayers(fContext, atlased, nonAtlased, recycled, &replace ments);
1818 1818
1819 // Render the entire picture using new layers 1819 // Render the entire picture using new layers
1820 const SkMatrix initialMatrix = mainCanvas->getTotalMatrix(); 1820 const SkMatrix initialMatrix = mainCanvas->getTotalMatrix();
1821 1821
1822 GrRecordReplaceDraw(mainPicture, mainCanvas, &replacements, initialMatrix, N ULL); 1822 GrRecordReplaceDraw(mainPicture, mainCanvas, &replacements, initialMatrix, N ULL);
1823 1823
1824 GrLayerHoister::UnlockLayers(fContext, atlased, nonAtlased, recycled); 1824 GrLayerHoister::UnlockLayers(fContext, atlased, nonAtlased, recycled);
1825 1825
1826 return true; 1826 return true;
1827 } 1827 }
1828 1828
1829 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { 1829 SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() {
1830 // We always return a transient cache, so it is freed after each 1830 // We always return a transient cache, so it is freed after each
1831 // filter traversal. 1831 // filter traversal.
1832 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); 1832 return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize);
1833 } 1833 }
OLDNEW
« no previous file with comments | « src/gpu/GrPictureUtils.cpp ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698