Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3f16d43 authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Replace SkALWAYSBREAK with equivalent Android macros.

Change-Id: Icb7786c789915375d7d8754fc8536302c1020858
parent fe434a15
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ public:

        // Move the pixels into the destination SkBitmap

        SK_ALWAYSBREAK(nativeBuffer.format == android::PIXEL_FORMAT_RGBA_8888 &&
        LOG_ALWAYS_FATAL_IF(nativeBuffer.format != android::PIXEL_FORMAT_RGBA_8888,
                            "Native buffer not RGBA!");
        SkImageInfo nativeConfig =
            SkImageInfo::Make(nativeBuffer.width, nativeBuffer.height,
@@ -153,7 +153,7 @@ public:
            return false;
        }

        SK_ALWAYSBREAK(bmp->colorType() == kRGBA_8888_SkColorType &&
        LOG_ALWAYS_FATAL_IF(bmp->colorType() != kRGBA_8888_SkColorType,
                            "Destination buffer not RGBA!");
        success =
            nativeWrapper.readPixels(destinationConfig, bmp->getPixels(), bmp->rowBytes(), 0, 0);