From ddb80bebb0776e6d852aab6e8bba5d5591847a55 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 20 Sep 2010 19:04:33 -0700 Subject: Add support for circular gradients to the GL renderer. This change also adds full support for local transformation matrices on sweep and radial gradients. Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f --- libs/hwui/Matrix.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/hwui/Matrix.cpp') diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 264ad3d28077..c698b5abb9c5 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -144,6 +144,12 @@ float Matrix4::getTranslateY() { return data[kTranslateY]; } +void Matrix4::multiply(float v) { + for (int i = 0; i < 16; i++) { + data[i] *= v; + } +} + void Matrix4::loadTranslate(float x, float y, float z) { loadIdentity(); data[kTranslateX] = x; -- cgit v1.2.3-59-g8ed1b