aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gamut.cpp
diff options
context:
space:
mode:
authorGravatar raftias <raftias@google.com>2016-10-13 10:45:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-13 10:45:44 -0700
commit7c602de058c6332dfd92b70a3d05d4a3c401a3ae (patch)
tree3c171fe31e352c89c9dbb855b13a33b92265c715 /gm/gamut.cpp
parent16d2c67fa10f09a88b33df2cd88f349da52c9a9a (diff)
Removed makeLinearGamma() from the public API for SkColorSpace
It will now reside in SkColorSpace_Base. Future work for SkColorSpace will cause this function to not be desirable or sensible to call on all SkColorSpaces. Call sites were changed to make a kSRGBLinear_Named instead of kSRGB_Named -> makeLinearGamma() (the majority of cases), and if that was not possible, SkColorSpace_Base::makeLinearGamma() was called instead. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2412613005 Review-Url: https://codereview.chromium.org/2412613005
Diffstat (limited to 'gm/gamut.cpp')
-rw-r--r--gm/gamut.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gm/gamut.cpp b/gm/gamut.cpp
index 26231c5e8f..707da29f64 100644
--- a/gm/gamut.cpp
+++ b/gm/gamut.cpp
@@ -7,9 +7,10 @@
#include "gm.h"
-#include "SkSurface.h"
+#include "SkColorSpace_Base.h"
#include "SkGradientShader.h"
#include "SkPM4fPriv.h"
+#include "SkSurface.h"
static const int gRectSize = 50;
static const SkScalar gScalarSize = SkIntToScalar(gRectSize);
@@ -134,8 +135,8 @@ static void draw_gamut_grid(SkCanvas* canvas, SkTArray<SkAutoTDelete<CellRendere
case kBGRA_8888_SkColorType:
break;
case kRGBA_F16_SkColorType:
- srgbCS = srgbCS->makeLinearGamma();
- wideCS = wideCS->makeLinearGamma();
+ srgbCS = as_CSB(srgbCS.get())->makeLinearGamma();
+ wideCS = as_CSB(wideCS.get())->makeLinearGamma();
break;
default:
return;