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

Unified Diff: tools/visualize_color_gamut.cpp

Issue 2170793004: Remove unnecessary getColorSpace() API from SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass refs more efficiently Created 4 years, 5 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 | « tools/viewer/ImageSlide.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/visualize_color_gamut.cpp
diff --git a/tools/visualize_color_gamut.cpp b/tools/visualize_color_gamut.cpp
index bc40152a44b3786061d169afaeb131ada32c4eef..4d340f8d98908d380fe79e178ae2e4c860a62e1e 100644
--- a/tools/visualize_color_gamut.cpp
+++ b/tools/visualize_color_gamut.cpp
@@ -151,7 +151,7 @@ int main(int argc, char** argv) {
}
// Draw gamut for the input image.
- sk_sp<SkColorSpace> colorSpace = sk_ref_sp(codec->getColorSpace());
+ sk_sp<SkColorSpace> colorSpace = sk_ref_sp(codec->getInfo().colorSpace());
if (!colorSpace) {
SkDebugf("Image had no embedded color space information. Defaulting to sRGB.\n");
colorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
« no previous file with comments | « tools/viewer/ImageSlide.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698