Merge "Adapt to latest skia"
This commit is contained in:
@@ -177,7 +177,6 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
libgui \
|
||||
libsurfaceflinger_client \
|
||||
libcamera_client \
|
||||
libskiagl \
|
||||
libskia \
|
||||
libsqlite \
|
||||
libdvm \
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user