Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 243924b0 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 3409e728: Correctly pre-clip paths when recording display lists Bug...

am 3409e728: Correctly pre-clip paths when recording display lists Bug #6836448 External bug: http://code.google.com/p/android/issues/detail?id=34946

* commit '3409e728':
  Correctly pre-clip paths when recording display lists Bug #6836448 External bug: http://code.google.com/p/android/issues/detail?id=34946
parents 5b4d4348 3409e728
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1541,7 +1541,7 @@ status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, float srcLeft, float

status_t DisplayListRenderer::drawBitmapData(SkBitmap* bitmap, float left, float top,
        SkPaint* paint) {
    const bool reject = quickReject(left, top, left + bitmap->width(), bitmap->height());
    const bool reject = quickReject(left, top, left + bitmap->width(), top + bitmap->height());
    uint32_t* location = addOp(DisplayList::DrawBitmapData, reject);
    addBitmapData(bitmap);
    addPoint(left, top);
@@ -1643,7 +1643,10 @@ status_t DisplayListRenderer::drawPath(SkPath* path, SkPaint* paint) {
    uint32_t width, height;
    computePathBounds(path, paint, left, top, offset, width, height);

    const bool reject = quickReject(left - offset, top - offset, width, height);
    left -= offset;
    top -= offset;

    const bool reject = quickReject(left, top, left + width, top + height);
    uint32_t* location = addOp(DisplayList::DrawPath, reject);
    addPath(path);
    addPaint(paint);