Merge "Adapt to latest skia"
This commit is contained in:
@@ -177,7 +177,6 @@ LOCAL_SHARED_LIBRARIES := \
|
|||||||
libgui \
|
libgui \
|
||||||
libsurfaceflinger_client \
|
libsurfaceflinger_client \
|
||||||
libcamera_client \
|
libcamera_client \
|
||||||
libskiagl \
|
|
||||||
libskia \
|
libskia \
|
||||||
libsqlite \
|
libsqlite \
|
||||||
libdvm \
|
libdvm \
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ static jobject doBuildTileIndex(JNIEnv* env, SkStream* stream) {
|
|||||||
return nullObjectReturn("decoder->buildTileIndex returned false");
|
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);
|
return GraphicsJNI::createBitmapRegionDecoder(env, bm);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,12 +61,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static SkCanvas* initGL(JNIEnv* env, jobject) {
|
static SkCanvas* initGL(JNIEnv* env, jobject) {
|
||||||
return new SkGLCanvas;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void freeCaches(JNIEnv* env, jobject) {
|
static void freeCaches(JNIEnv* env, jobject) {
|
||||||
// these are called in no particular order
|
// these are called in no particular order
|
||||||
SkGLCanvas::DeleteAllTextures();
|
|
||||||
SkImageRef_GlobalPool::SetRAMUsed(0);
|
SkImageRef_GlobalPool::SetRAMUsed(0);
|
||||||
SkGraphics::SetFontCacheUsed(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) {
|
static void android_view_ViewRoot_abandonGlCaches(JNIEnv* env, jobject) {
|
||||||
SkGLCanvas::AbandonAllTextures();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user