Loading libs/hwui/Caches.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -293,6 +293,7 @@ void Caches::resetTexCoordsVertexPointer() { void Caches::enableTexCoordsVertexArray() { if (!mTexCoordsArrayEnabled) { glEnableVertexAttribArray(Program::kBindingTexCoords); mCurrentTexCoordsPointer = this; mTexCoordsArrayEnabled = true; } } Loading libs/hwui/Rect.h +8 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,14 @@ public: return intersect(r.left, r.top, r.right, r.bottom); } bool contains(float l, float t, float r, float b) { return l >= left && t >= top && r <= right && b <= bottom; } bool contains(const Rect& r) { return contains(r.left, r.top, r.right, r.bottom); } bool unionWith(const Rect& r) { if (r.left < r.right && r.top < r.bottom) { if (left < right && top < bottom) { Loading Loading
libs/hwui/Caches.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -293,6 +293,7 @@ void Caches::resetTexCoordsVertexPointer() { void Caches::enableTexCoordsVertexArray() { if (!mTexCoordsArrayEnabled) { glEnableVertexAttribArray(Program::kBindingTexCoords); mCurrentTexCoordsPointer = this; mTexCoordsArrayEnabled = true; } } Loading
libs/hwui/Rect.h +8 −0 Original line number Diff line number Diff line Loading @@ -124,6 +124,14 @@ public: return intersect(r.left, r.top, r.right, r.bottom); } bool contains(float l, float t, float r, float b) { return l >= left && t >= top && r <= right && b <= bottom; } bool contains(const Rect& r) { return contains(r.left, r.top, r.right, r.bottom); } bool unionWith(const Rect& r) { if (r.left < r.right && r.top < r.bottom) { if (left < right && top < bottom) { Loading