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

Unified Diff: tests/ColorSpaceTest.cpp

Issue 1996973002: Make SkColorSpace a public API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove SkColorSpace.h from gyp Created 4 years, 7 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/core/SkColorSpace_Base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ColorSpaceTest.cpp
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp
index 698c3e9c61d30e0b891ee657ded836a8d20d00bb..097ca0929a2b898e1e57358f92986bc4fe90cac1 100644
--- a/tests/ColorSpaceTest.cpp
+++ b/tests/ColorSpaceTest.cpp
@@ -8,7 +8,7 @@
#include "Resources.h"
#include "SkCodec.h"
#include "SkColorSpace.h"
-#include "SkColorSpacePriv.h"
+#include "SkColorSpace_Base.h"
#include "Test.h"
#include "png.h"
@@ -21,7 +21,7 @@ static void test_space(skiatest::Reporter* r, SkColorSpace* space,
const float red[], const float green[], const float blue[],
const float expectedGammas[]) {
- SkGammas* gammas = space->gammas();
+ SkGammas* gammas = as_CSB(space)->gammas();
REPORTER_ASSERT(r, almost_equal(expectedGammas[0], gammas->fRed.fValue));
REPORTER_ASSERT(r, almost_equal(expectedGammas[1], gammas->fGreen.fValue));
REPORTER_ASSERT(r, almost_equal(expectedGammas[2], gammas->fBlue.fValue));
« no previous file with comments | « src/core/SkColorSpace_Base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698