From c044ae5dfc62031924c2f4c0ecc87b0da72a6b3f Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 8 Jan 2016 10:52:16 -0800 Subject: 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 --- opengl/libagl/matrix.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'opengl/libagl/matrix.cpp') diff --git a/opengl/libagl/matrix.cpp b/opengl/libagl/matrix.cpp index cdeccb3f78..034c857fa7 100644 --- a/opengl/libagl/matrix.cpp +++ b/opengl/libagl/matrix.cpp @@ -253,13 +253,13 @@ void matrixf_t::multiply(matrixf_t& r, const matrixf_t& lhs, const matrixf_t& rh { GLfloat const* const m = lhs.m; for (int i=0 ; i<4 ; i++) { - register const float rhs_i0 = rhs.m[ I(i,0) ]; - register float ri0 = m[ I(0,0) ] * rhs_i0; - register float ri1 = m[ I(0,1) ] * rhs_i0; - register float ri2 = m[ I(0,2) ] * rhs_i0; - register float ri3 = m[ I(0,3) ] * rhs_i0; + const float rhs_i0 = rhs.m[ I(i,0) ]; + float ri0 = m[ I(0,0) ] * rhs_i0; + float ri1 = m[ I(0,1) ] * rhs_i0; + float ri2 = m[ I(0,2) ] * rhs_i0; + float ri3 = m[ I(0,3) ] * rhs_i0; for (int j=1 ; j<4 ; j++) { - register const float rhs_ij = rhs.m[ I(i,j) ]; + const float rhs_ij = rhs.m[ I(i,j) ]; ri0 += m[ I(j,0) ] * rhs_ij; ri1 += m[ I(j,1) ] * rhs_ij; ri2 += m[ I(j,2) ] * rhs_ij; -- cgit v1.2.3-59-g8ed1b