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

Commit a081c7b8 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

Merge "Skia API changes as a result of an update to the Skia library."

parents 97818704 889a3fa6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@

#include <SkImageEncoder.h>
#include <SkBitmap.h>
#include <SkData.h>
#include <SkStream.h>

using namespace android;
@@ -168,7 +169,9 @@ int main(int argc, char** argv)
            SkDynamicMemoryWStream stream;
            SkImageEncoder::EncodeStream(&stream, b,
                    SkImageEncoder::kPNG_Type, SkImageEncoder::kDefaultQuality);
            write(fd, stream.getStream(), stream.getOffset());
            SkData* streamData = stream.copyToData();
            write(fd, streamData->data(), streamData->size());
            streamData->unref();
        } else {
            write(fd, &w, 4);
            write(fd, &h, 4);
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ public:
    static void freeCaches(JNIEnv* env, jobject) {
        // these are called in no particular order
        SkImageRef_GlobalPool::SetRAMUsed(0);
        SkGraphics::SetFontCacheUsed(0);
        SkGraphics::PurgeFontCache();
    }
    
    static jboolean isOpaque(JNIEnv* env, jobject jcanvas) {