aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSurface.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-06-17 13:43:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-17 13:43:27 -0700
commit944876f2745a62a839e49275daf93a0329372e67 (patch)
treeefcb2109562bcefb36a65099a63f329091d6b9d4 /src/gpu/GrSurface.cpp
parente75cdcb85b73c4484a992bf5531394632e757870 (diff)
More removal of SkColorProfileType...
Scrub GMs. Remove the gDefaultProfile thing (it's unused now), along with the command line flag that was setting it in DM and nanobench. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2071393002 Review-Url: https://codereview.chromium.org/2071393002
Diffstat (limited to 'src/gpu/GrSurface.cpp')
-rw-r--r--src/gpu/GrSurface.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp
index 886945c710..47fa394788 100644
--- a/src/gpu/GrSurface.cpp
+++ b/src/gpu/GrSurface.cpp
@@ -118,12 +118,11 @@ bool GrSurface::readPixels(int left, int top, int width, int height,
SkImageInfo GrSurface::info(SkAlphaType alphaType) const {
SkColorType colorType;
- SkColorProfileType profileType;
- if (!GrPixelConfig2ColorAndProfileType(this->config(), &colorType, &profileType)) {
+ sk_sp<SkColorSpace> colorSpace;
+ if (!GrPixelConfigToColorAndColorSpace(this->config(), &colorType, &colorSpace)) {
sk_throw();
}
- return SkImageInfo::Make(this->width(), this->height(), colorType, alphaType,
- profileType);
+ return SkImageInfo::Make(this->width(), this->height(), colorType, alphaType, colorSpace);
}
// TODO: This should probably be a non-member helper function. It might only be needed in