Loading core/jni/android/opengl/poly_clip.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -35,12 +35,12 @@ namespace android { #define SWAP(a, b, temp) {temp = a; a = b; b = temp;} #define SWAP(a, b, temp) {(temp) = a; (a) = b; (b) = temp;} #define COORD(vert, i) ((float *)(vert))[i] #define CLIP_AND_SWAP(elem, sign, k, p, q, r) { \ poly_clip_to_halfspace(p, q, &v->elem-(float *)v, sign, sign*k); \ if (q->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \ poly_clip_to_halfspace(p, q, &v->elem-(float *)v, sign, (sign)*(k)); \ if ((q)->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \ SWAP(p, q, r); \ } Loading core/jni/android_view_GraphicBuffer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ namespace android { // Debug static const bool kDebugGraphicBuffer = false; #define LOCK_CANVAS_USAGE GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN #define LOCK_CANVAS_USAGE (GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN) // ---------------------------------------------------------------------------- // JNI Helpers Loading libs/hwui/DisplayListOp.h +2 −2 Original line number Diff line number Diff line Loading @@ -639,8 +639,8 @@ public: } #define SET_TEXTURE(ptr, posRect, offsetRect, texCoordsRect, xDim, yDim) \ TextureVertex::set(ptr++, posRect.xDim - offsetRect.left, posRect.yDim - offsetRect.top, \ texCoordsRect.xDim, texCoordsRect.yDim) TextureVertex::set((ptr)++, (posRect).xDim - (offsetRect).left, (posRect).yDim - (offsetRect).top, \ (texCoordsRect).xDim, (texCoordsRect).yDim) /** * This multi-draw operation builds a mesh on the stack by generating a quad Loading libs/hwui/Matrix.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ void Matrix4::mapPoint3d(Vector3& vec) const { vec.z = orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ]; } #define MUL_ADD_STORE(a, b, c) a = (a) * (b) + (c) #define MUL_ADD_STORE(a, b, c) ((a) = (a) * (b) + (c)) void Matrix4::mapPoint(float& x, float& y) const { if (isSimple()) { Loading libs/hwui/OpenGLRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -898,7 +898,7 @@ void OpenGLRenderer::composeLayerRect(Layer* layer, const Rect& rect) { */ #define DRAW_DOUBLE_STENCIL_IF(COND, DRAW_COMMAND) { \ DRAW_COMMAND; \ if (CC_UNLIKELY(Properties::debugOverdraw && getTargetFbo() == 0 && COND)) { \ if (CC_UNLIKELY(Properties::debugOverdraw && getTargetFbo() == 0 && (COND))) { \ glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); \ DRAW_COMMAND; \ glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); \ Loading Loading
core/jni/android/opengl/poly_clip.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -35,12 +35,12 @@ namespace android { #define SWAP(a, b, temp) {temp = a; a = b; b = temp;} #define SWAP(a, b, temp) {(temp) = a; (a) = b; (b) = temp;} #define COORD(vert, i) ((float *)(vert))[i] #define CLIP_AND_SWAP(elem, sign, k, p, q, r) { \ poly_clip_to_halfspace(p, q, &v->elem-(float *)v, sign, sign*k); \ if (q->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \ poly_clip_to_halfspace(p, q, &v->elem-(float *)v, sign, (sign)*(k)); \ if ((q)->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \ SWAP(p, q, r); \ } Loading
core/jni/android_view_GraphicBuffer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ namespace android { // Debug static const bool kDebugGraphicBuffer = false; #define LOCK_CANVAS_USAGE GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN #define LOCK_CANVAS_USAGE (GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_OFTEN) // ---------------------------------------------------------------------------- // JNI Helpers Loading
libs/hwui/DisplayListOp.h +2 −2 Original line number Diff line number Diff line Loading @@ -639,8 +639,8 @@ public: } #define SET_TEXTURE(ptr, posRect, offsetRect, texCoordsRect, xDim, yDim) \ TextureVertex::set(ptr++, posRect.xDim - offsetRect.left, posRect.yDim - offsetRect.top, \ texCoordsRect.xDim, texCoordsRect.yDim) TextureVertex::set((ptr)++, (posRect).xDim - (offsetRect).left, (posRect).yDim - (offsetRect).top, \ (texCoordsRect).xDim, (texCoordsRect).yDim) /** * This multi-draw operation builds a mesh on the stack by generating a quad Loading
libs/hwui/Matrix.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -425,7 +425,7 @@ void Matrix4::mapPoint3d(Vector3& vec) const { vec.z = orig.x * data[2] + orig.y * data[6] + orig.z * data[kScaleZ] + data[kTranslateZ]; } #define MUL_ADD_STORE(a, b, c) a = (a) * (b) + (c) #define MUL_ADD_STORE(a, b, c) ((a) = (a) * (b) + (c)) void Matrix4::mapPoint(float& x, float& y) const { if (isSimple()) { Loading
libs/hwui/OpenGLRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -898,7 +898,7 @@ void OpenGLRenderer::composeLayerRect(Layer* layer, const Rect& rect) { */ #define DRAW_DOUBLE_STENCIL_IF(COND, DRAW_COMMAND) { \ DRAW_COMMAND; \ if (CC_UNLIKELY(Properties::debugOverdraw && getTargetFbo() == 0 && COND)) { \ if (CC_UNLIKELY(Properties::debugOverdraw && getTargetFbo() == 0 && (COND))) { \ glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); \ DRAW_COMMAND; \ glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); \ Loading