@@ -1573,7 +1573,8 @@ status_t DisplayListRenderer::drawLayer(Layer* layer, float x, float y, SkPaint*
15731573}
15741574
15751575status_t DisplayListRenderer::drawBitmap (SkBitmap* bitmap, float left, float top, SkPaint* paint) {
1576- const bool reject = quickReject (left, top, left + bitmap->width (), top + bitmap->height ());
1576+ const bool reject = quickRejectNoScissor (left, top,
1577+ left + bitmap->width (), top + bitmap->height ());
15771578 uint32_t * location = addOp (DisplayList::DrawBitmap, reject);
15781579 addBitmap (bitmap);
15791580 addPoint (left, top);
@@ -1587,7 +1588,7 @@ status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkP
15871588 const mat4 transform (*matrix);
15881589 transform.mapRect (r);
15891590
1590- const bool reject = quickReject (r.left , r.top , r.right , r.bottom );
1591+ const bool reject = quickRejectNoScissor (r.left , r.top , r.right , r.bottom );
15911592 uint32_t * location = addOp (DisplayList::DrawBitmapMatrix, reject);
15921593 addBitmap (bitmap);
15931594 addMatrix (matrix);
@@ -1599,7 +1600,7 @@ status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkP
15991600status_t DisplayListRenderer::drawBitmap (SkBitmap* bitmap, float srcLeft, float srcTop,
16001601 float srcRight, float srcBottom, float dstLeft, float dstTop,
16011602 float dstRight, float dstBottom, SkPaint* paint) {
1602- const bool reject = quickReject (dstLeft, dstTop, dstRight, dstBottom);
1603+ const bool reject = quickRejectNoScissor (dstLeft, dstTop, dstRight, dstBottom);
16031604 uint32_t * location = addOp (DisplayList::DrawBitmapRect, reject);
16041605 addBitmap (bitmap);
16051606 addBounds (srcLeft, srcTop, srcRight, srcBottom);
@@ -1611,7 +1612,8 @@ status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float srcLeft, float
16111612
16121613status_t DisplayListRenderer::drawBitmapData (SkBitmap* bitmap, float left, float top,
16131614 SkPaint* paint) {
1614- const bool reject = quickReject (left, top, left + bitmap->width (), top + bitmap->height ());
1615+ const bool reject = quickRejectNoScissor (left, top,
1616+ left + bitmap->width (), top + bitmap->height ());
16151617 uint32_t * location = addOp (DisplayList::DrawBitmapData, reject);
16161618 addBitmapData (bitmap);
16171619 addPoint (left, top);
@@ -1644,7 +1646,7 @@ status_t DisplayListRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs,
16441646 SkXfermode::Mode mode;
16451647 OpenGLRenderer::getAlphaAndModeDirect (paint, &alpha, &mode);
16461648
1647- const bool reject = quickReject (left, top, right, bottom);
1649+ const bool reject = quickRejectNoScissor (left, top, right, bottom);
16481650 uint32_t * location = addOp (DisplayList::DrawPatch, reject);
16491651 addBitmap (bitmap);
16501652 addInts (xDivs, width);
@@ -1667,7 +1669,7 @@ status_t DisplayListRenderer::drawColor(int color, SkXfermode::Mode mode) {
16671669status_t DisplayListRenderer::drawRect (float left, float top, float right, float bottom,
16681670 SkPaint* paint) {
16691671 const bool reject = paint->getStyle () == SkPaint::kFill_Style &&
1670- quickReject (left, top, right, bottom);
1672+ quickRejectNoScissor (left, top, right, bottom);
16711673 uint32_t * location = addOp (DisplayList::DrawRect, reject);
16721674 addBounds (left, top, right, bottom);
16731675 addPaint (paint);
@@ -1678,7 +1680,7 @@ status_t DisplayListRenderer::drawRect(float left, float top, float right, float
16781680status_t DisplayListRenderer::drawRoundRect (float left, float top, float right, float bottom,
16791681 float rx, float ry, SkPaint* paint) {
16801682 const bool reject = paint->getStyle () == SkPaint::kFill_Style &&
1681- quickReject (left, top, right, bottom);
1683+ quickRejectNoScissor (left, top, right, bottom);
16821684 uint32_t * location = addOp (DisplayList::DrawRoundRect, reject);
16831685 addBounds (left, top, right, bottom);
16841686 addPoint (rx, ry);
@@ -1721,7 +1723,7 @@ status_t DisplayListRenderer::drawPath(SkPath* path, SkPaint* paint) {
17211723 left -= offset;
17221724 top -= offset;
17231725
1724- const bool reject = quickReject (left, top, left + width, top + height);
1726+ const bool reject = quickRejectNoScissor (left, top, left + width, top + height);
17251727 uint32_t * location = addOp (DisplayList::DrawPath, reject);
17261728 addPath (path);
17271729 addPaint (paint);
@@ -1791,7 +1793,7 @@ status_t DisplayListRenderer::drawText(const char* text, int bytesCount, int cou
17911793 if (CC_LIKELY (paint->getTextAlign () == SkPaint::kLeft_Align )) {
17921794 SkPaint::FontMetrics metrics;
17931795 paint->getFontMetrics (&metrics, 0 .0f );
1794- reject = quickReject (x, y + metrics.fTop , x + length, y + metrics.fBottom );
1796+ reject = quickRejectNoScissor (x, y + metrics.fTop , x + length, y + metrics.fBottom );
17951797 }
17961798
17971799 uint32_t * location = addOp (DisplayList::DrawText, reject);
0 commit comments