Loading graphics/java/android/graphics/Camera.java +9 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ package android.graphics; * {@link Canvas}. */ public class Camera { private Matrix mMatrix; /** * Creates a new camera, with empty transformations. */ Loading Loading @@ -147,8 +149,14 @@ public class Camera { * @param canvas The Canvas to set the transform matrix onto */ public void applyToCanvas(Canvas canvas) { if (canvas.isHardwareAccelerated()) { if (mMatrix == null) mMatrix = new Matrix(); getMatrix(mMatrix); canvas.concat(mMatrix); } else { nativeApplyToCanvas(canvas.mNativeCanvas); } } public native float dotWithNormal(float dx, float dy, float dz); Loading Loading
graphics/java/android/graphics/Camera.java +9 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ package android.graphics; * {@link Canvas}. */ public class Camera { private Matrix mMatrix; /** * Creates a new camera, with empty transformations. */ Loading Loading @@ -147,8 +149,14 @@ public class Camera { * @param canvas The Canvas to set the transform matrix onto */ public void applyToCanvas(Canvas canvas) { if (canvas.isHardwareAccelerated()) { if (mMatrix == null) mMatrix = new Matrix(); getMatrix(mMatrix); canvas.concat(mMatrix); } else { nativeApplyToCanvas(canvas.mNativeCanvas); } } public native float dotWithNormal(float dx, float dy, float dz); Loading