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

Unified Diff: src/gpu/GrLayerCache.cpp

Issue 665913002: Move code to dump GrSurface as a png to helper files (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-encoder-01-skimage
Patch Set: address review comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrSurface.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrLayerCache.cpp
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp
index 7c2a8bd61c16bbc0e1d03dc4dcd967916e84e181..235020560a20aa32cae3d2fe151b5965201dab43 100644
--- a/src/gpu/GrLayerCache.cpp
+++ b/src/gpu/GrLayerCache.cpp
@@ -443,7 +443,7 @@ void GrLayerCache::writeLayersToDisk(const SkString& dirName) {
SkString fileName(dirName);
fileName.append("\\atlas.png");
- atlasTexture->surfacePriv().savePixels(fileName.c_str());
+ SkSaveGrSurfacePixelsAsPNG(atlasTexture, fileName.c_str());
}
SkTDynamicHash<GrCachedLayer, GrCachedLayer::Key>::Iter iter(&fLayerHash);
@@ -461,7 +461,7 @@ void GrLayerCache::writeLayersToDisk(const SkString& dirName) {
fileName.appendU32(layer->fKey.start());
fileName.append(".png");
- layer->texture()->surfacePriv().savePixels(fileName.c_str());
+ SkSaveGrSurfacePixelsAsPNG(layer->texture(), fileName.c_str());
}
}
#endif
« no previous file with comments | « src/gpu/GrAADistanceFieldPathRenderer.cpp ('k') | src/gpu/GrSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698