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

Unified Diff: gm/gamut.cpp

Issue 2412613005: Removed makeLinearGamma() from the public API for SkColorSpace (Closed)
Patch Set: Created 4 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 | « dm/DMSrcSink.cpp ('k') | gm/gradients.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/gamut.cpp
diff --git a/gm/gamut.cpp b/gm/gamut.cpp
index 26231c5e8fe954ecb067195b35d7b906d0502237..707da29f64bdfa009ff80020b4910ae3b129b7ef 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;
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | gm/gradients.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698