Skip to content

Commit 22d4184

Browse files
author
Romain Guy
committed
Fix the build, for real
Change-Id: I6263f7e5e3ae2f7efe045f8b464c0ed1b87fc793
1 parent 90bd187 commit 22d4184

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

api/current.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8001,7 +8001,7 @@ package android.graphics {
80018001
method public android.graphics.DrawFilter getDrawFilter();
80028002
method public int getHeight();
80038003
method public deprecated void getMatrix(android.graphics.Matrix);
8004-
method public final android.graphics.Matrix getMatrix();
8004+
method public final deprecated android.graphics.Matrix getMatrix();
80058005
method public int getMaximumBitmapHeight();
80068006
method public int getMaximumBitmapWidth();
80078007
method public int getSaveCount();

graphics/java/android/graphics/DrawFilter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ public class DrawFilter {
2828
/* package */ int mNativeInt; // pointer to native object
2929

3030
protected void finalize() throws Throwable {
31-
nativeDestructor(mNativeInt);
31+
try {
32+
nativeDestructor(mNativeInt);
33+
} finally {
34+
super.finalize();
35+
}
3236
}
3337

3438
private static native void nativeDestructor(int nativeDrawFilter);

libs/hwui/DisplayListRenderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class DisplayListRenderer: public OpenGLRenderer {
422422
return;
423423
}
424424

425-
SkPaint* paintCopy = mPaintMap.valueFor(paint);
425+
SkPaint* paintCopy = mPaintMap.valueFor(paint);
426426
if (paintCopy == NULL || paintCopy->getGenerationID() != paint->getGenerationID()) {
427427
paintCopy = new SkPaint(*paint);
428428
mPaintMap.add(paint, paintCopy);

0 commit comments

Comments
 (0)