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

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 769533004: Fuse GrReplacements and GrLayerCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clang Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrRecordReplaceDraw.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGpuDevice.cpp
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 9a78048aa7f139195a01c0bc0d97756319353da4..bbfec99640e763b620da3fc50f9a595afa697310 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -1830,13 +1830,9 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture
GrLayerHoister::DrawLayers(fContext, needRendering);
- GrReplacements replacements;
-
- GrLayerHoister::ConvertLayersToReplacements(mainPicture, needRendering, &replacements);
- GrLayerHoister::ConvertLayersToReplacements(mainPicture, recycled, &replacements);
-
// Render the entire picture using new layers
- GrRecordReplaceDraw(mainPicture, mainCanvas, &replacements, initialMatrix, NULL);
+ GrRecordReplaceDraw(mainPicture, mainCanvas, fContext->getLayerCache(),
+ initialMatrix, NULL);
GrLayerHoister::UnlockLayers(fContext, needRendering);
GrLayerHoister::UnlockLayers(fContext, recycled);
« no previous file with comments | « src/gpu/GrRecordReplaceDraw.cpp ('k') | tests/GpuLayerCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698