Index: tests/ImageTest.cpp |
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp |
index e681b1a702311f383d919a9188a704c617b66e43..633083f844117281f28780a42158efa6afedcbb7 100644 |
--- a/tests/ImageTest.cpp |
+++ b/tests/ImageTest.cpp |
@@ -894,8 +894,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredTextureImage, reporter, ctxInfo) { |
sk_sp<SkImage> image(testCase.fImageFactory()); |
size_t size = image->getDeferredTextureImageData(*proxy, testCase.fParams.data(), |
static_cast<int>(testCase.fParams.size()), |
- nullptr); |
- |
+ nullptr, SkSourceGammaTreatment::kIgnore); |
static const char *const kFS[] = { "fail", "succeed" }; |
if (SkToBool(size) != testCase.fExpectation) { |
ERRORF(reporter, "This image was expected to %s but did not.", |
@@ -906,12 +905,12 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(DeferredTextureImage, reporter, ctxInfo) { |
void* misaligned = reinterpret_cast<void*>(reinterpret_cast<intptr_t>(buffer) + 3); |
if (image->getDeferredTextureImageData(*proxy, testCase.fParams.data(), |
static_cast<int>(testCase.fParams.size()), |
- misaligned)) { |
+ misaligned, SkSourceGammaTreatment::kIgnore)) { |
ERRORF(reporter, "Should fail when buffer is misaligned."); |
} |
if (!image->getDeferredTextureImageData(*proxy, testCase.fParams.data(), |
static_cast<int>(testCase.fParams.size()), |
- buffer)) { |
+ buffer, SkSourceGammaTreatment::kIgnore)) { |
ERRORF(reporter, "deferred image size succeeded but creation failed."); |
} else { |
for (auto budgeted : { SkBudgeted::kNo, SkBudgeted::kYes }) { |