diff options
author | Derek Sollenberger <djsollen@google.com> | 2015-01-08 16:31:53 -0500 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2015-01-09 09:16:06 -0500 |
commit | 304cc5387478618164cd9167f12564f91eb6cc66 (patch) | |
tree | 8713ec2d25ce9647679976809c50e660be4e8b8f /graphics | |
parent | 83eb4443a9d24f2ae4a1e516354748850c10d06b (diff) | |
download | frameworks_base-304cc5387478618164cd9167f12564f91eb6cc66.zip frameworks_base-304cc5387478618164cd9167f12564f91eb6cc66.tar.gz frameworks_base-304cc5387478618164cd9167f12564f91eb6cc66.tar.bz2 |
Use the generic Canvas instead of SkCanvas
bug: 18642206
Change-Id: I0dc3f6b620083e5948c2d4be541ae7c6261b3482
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Movie.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/Movie.java b/graphics/java/android/graphics/Movie.java index dd5b62d..ecb4255 100644 --- a/graphics/java/android/graphics/Movie.java +++ b/graphics/java/android/graphics/Movie.java @@ -37,14 +37,15 @@ public class Movie { public native boolean setTime(int relativeMilliseconds); - private native void nDraw(Canvas canvas, float x, float y, long paintHandle); + private native void nDraw(long nativeCanvas, float x, float y, long paintHandle); public void draw(Canvas canvas, float x, float y, Paint paint) { - nDraw(canvas, x, y, paint != null ? paint.getNativeInstance() : 0); + nDraw(canvas.getNativeCanvasWrapper(), x, y, + paint != null ? paint.getNativeInstance() : 0); } public void draw(Canvas canvas, float x, float y) { - nDraw(canvas, x, y, 0); + nDraw(canvas.getNativeCanvasWrapper(), x, y, 0); } public static Movie decodeStream(InputStream is) { |