From 797b95b26bbb7557678af78b9a2a61830158920f Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 20 May 2014 18:10:25 -0700 Subject: Define light position (using new lighting spec) in Java Also updates the relative shadow strengths. Change-Id: I6cac7275d38df98aea9f0dda463cd7207102986a --- graphics/java/android/graphics/Canvas.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index 5b18623..d4ea7a9 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -236,8 +236,12 @@ public class Canvas { * * @hide */ - public void setViewport(int width, int height) { - } + public void setViewport(int width, int height) {} + + /** + * @hide + */ + public void initializeLight(float lightX, float lightY, float lightZ, float lightRadius) {} /** * Return true if the device that the current layer draws into is opaque -- cgit v1.1