History log of /frameworks/native/opengl/libagl/matrix.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c044ae5dfc62031924c2f4c0ecc87b0da72a6b3f 08-Jan-2016 Dan Stoza <stoza@google.com> libagl: Switch from gralloc to GraphicBufferMapper

Removes all direct references to the gralloc module from libagl and
uses the GraphicBufferMapper class instead when locking and unlocking
buffers.

Also a couple of minor code cleanups to eliminate warnings.

Change-Id: Ie982d375b3152d5f677ab54c2067179b8d34c06d
/frameworks/native/opengl/libagl/matrix.cpp
9d4536835248525f32f1504a3d28d5bbfa0a2910 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
/frameworks/native/opengl/libagl/matrix.cpp
04a3f57d19b471c21f3c83c50793a94908cafdc7 03-Feb-2010 Mathias Agopian <mathias@google.com> fix [2133133] Software OpenGL ES Lighting is buggy (GL Gears washed out bug)

A typo caused GL_AMBIENT_AND_DIFFUSE to only set the the ambient color.

Fix another typo which caused the viewer position to be wrong for
specular highlights.

Switch back to eye-space lighting, since there are still some issues
with some demos (San Angeles in particular).
/frameworks/native/opengl/libagl/matrix.cpp
b44efdc6ba8fc792d10ea7560c2f03292b253c7b 03-Nov-2009 Mathias Agopian <mathias@google.com> fix [2231527] Compatibility with SpaceJunk game (OpenGL)

we treated all lights as local lights when transforming their
position back to object space.
/frameworks/native/opengl/libagl/matrix.cpp
d914215edf600f811f7ad8cad2eab9049cf859a4 10-Aug-2009 Martin Storsjo <martin@martin.st> If FLAGS_2D_PROJECTION is set, the MVP matrices need updating when changing the viewport.
/frameworks/native/opengl/libagl/matrix.cpp
69ca17a12444ef619952b783ddaac121a0d438e5 03-Jun-2009 Mathias Agopian <mathias@google.com> fix [1610840] Positional light doesn't work correctly on emulator

This bug was introduced when lighting computations was changed from eye-space to object-space.
The light position need to be transformed back to object-space each time the modelview matrix changes which requires us to compute the inverse of the modelview matrix. This computation was done with the assumption that normals where transformed (which was the case when the computation was made in eye-space), however, normals only require the inverse of the upper 3x3 matrix while transforming positions requires the inverse of the whole matrix.
This caused the interesting behavior that lights were more-or-less transformed properly, but not translated at all, which caused improper lighting with directional lights in particular.

There was also another smaller bug affecting directional lights: when vertices are read, only the active component are read, the other ones are ignored, later, the transformation operations are set up to ignore the unset values, howver, in the case of lighting, we use the vertex in object space (that is, before it is transformed), and therefore were using uninitalized values; in particular w.
/frameworks/native/opengl/libagl/matrix.cpp
edbf3b6af777b721cd2a1ef461947e51e88241e1 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/native/opengl/libagl/matrix.cpp
d5193d9394c5e58176d7bcdf50ef017f8a3b9e1e 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/native/opengl/libagl/matrix.cpp
e09fd9e819c23dc90bca68375645e15544861330 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/native/opengl/libagl/matrix.cpp
7c1b96a165f970a09ed239bb4fb3f1b0d8f2a407 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/native/opengl/libagl/matrix.cpp