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