aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ColorSpaceTest.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-05-24 10:16:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-24 10:16:53 -0700
commite077e0683a6fe79f71f3e3762edb259941431ada (patch)
tree09e19e65e5e3776c6fe17dc7496fc122e09bd35c /tests/ColorSpaceTest.cpp
parent7dd44673e0d8f803f293ded4bc4f7d6a55d460dd (diff)
SkColorSpace tweaks
***Move includes to the correct file ***Add "const" ***Use std::move for more efficient refs and unrefs BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2005263002 Review-Url: https://codereview.chromium.org/2005263002
Diffstat (limited to 'tests/ColorSpaceTest.cpp')
-rw-r--r--tests/ColorSpaceTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ColorSpaceTest.cpp b/tests/ColorSpaceTest.cpp
index 097ca0929a..da69ea7e0f 100644
--- a/tests/ColorSpaceTest.cpp
+++ b/tests/ColorSpaceTest.cpp
@@ -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 = as_CSB(space)->gammas();
+ const sk_sp<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));