aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/create_flutter_test_images.cpp1
-rw-r--r--tools/skqp/gm_knowledge.cpp4
2 files changed, 1 insertions, 4 deletions
diff --git a/tools/create_flutter_test_images.cpp b/tools/create_flutter_test_images.cpp
index 683c2fe34a..a3c0ada68c 100644
--- a/tools/create_flutter_test_images.cpp
+++ b/tools/create_flutter_test_images.cpp
@@ -51,7 +51,6 @@ int main(int argc, char** argv) {
image->readPixels(src, 0, 0, SkImage::kDisallow_CachingHint);
SkFILEWStream dst0("gbr.png");
SkPngEncoder::Options opts;
- opts.fUnpremulBehavior = SkTransferFunctionBehavior::kIgnore; // Does not matter for opaque src
SkAssertResult(SkPngEncoder::Encode(&dst0, src, opts));
// Encode an image with steep transfer function.
diff --git a/tools/skqp/gm_knowledge.cpp b/tools/skqp/gm_knowledge.cpp
index a2416c9dca..72dba2b4d4 100644
--- a/tools/skqp/gm_knowledge.cpp
+++ b/tools/skqp/gm_knowledge.cpp
@@ -119,9 +119,7 @@ static float set_error_code(gmkb::Error* error_out, gmkb::Error error) {
static bool WritePixmapToFile(const SkPixmap& pixmap, const char* path) {
SkFILEWStream wStream(path);
- SkPngEncoder::Options options;
- options.fUnpremulBehavior = SkTransferFunctionBehavior::kIgnore;
- return wStream.isValid() && SkPngEncoder::Encode(&wStream, pixmap, options);
+ return wStream.isValid() && SkPngEncoder::Encode(&wStream, pixmap, SkPngEncoder::Options());
}
constexpr SkColorType kColorType = kRGBA_8888_SkColorType;