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

Commit 0ceb9501 authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Jean-Baptiste Queru
Browse files

Adapt to latest skia

Change-Id: I39247db04ca8b7993b0f5a16fb0324828d04cc3a
parent 6714e677
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -177,7 +177,6 @@ LOCAL_SHARED_LIBRARIES := \
	libgui \
	libsurfaceflinger_client \
	libcamera_client \
	libskiagl \
	libskia \
	libsqlite \
	libdvm \
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ static jobject doBuildTileIndex(JNIEnv* env, SkStream* stream) {
        return nullObjectReturn("decoder->buildTileIndex returned false");
    }

    SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, width, height);
    SkBitmapRegionDecoder *bm = new SkBitmapRegionDecoder(decoder, stream, width, height);

    return GraphicsJNI::createBitmapRegionDecoder(env, bm);
}
+1 −2
Original line number Diff line number Diff line
@@ -61,12 +61,11 @@ public:
    }
    
    static SkCanvas* initGL(JNIEnv* env, jobject) {
        return new SkGLCanvas;
        return 0;
    }
    
    static void freeCaches(JNIEnv* env, jobject) {
        // these are called in no particular order
        SkGLCanvas::DeleteAllTextures();
        SkImageRef_GlobalPool::SetRAMUsed(0);
        SkGraphics::SetFontCacheUsed(0);
    }
+0 −1
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ static void android_view_ViewRoot_showFPS(JNIEnv* env, jobject, jobject jcanvas,
}

static void android_view_ViewRoot_abandonGlCaches(JNIEnv* env, jobject) {
    SkGLCanvas::AbandonAllTextures();
}