Merge "Adapt to latest skia"

This commit is contained in:
Jean-Baptiste Queru
2011-05-12 15:09:51 -07:00
committed by Android Code Review
4 changed files with 2 additions and 5 deletions

View File

@@ -177,7 +177,6 @@ LOCAL_SHARED_LIBRARIES := \
libgui \
libsurfaceflinger_client \
libcamera_client \
libskiagl \
libskia \
libsqlite \
libdvm \

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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();
}