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

Commit 283e907a authored by Ben Wagner's avatar Ben Wagner Committed by Android (Google) Code Review
Browse files

Merge "Use 'new' instead of 'SkNEW'."

parents 98404fdc d1cbc160
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public:
                Tolerance near 255: draw on any colors even remotely similar to the op-color
     */
    static AvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) {
        return SkNEW_ARGS(AvoidXfermode, (opColor, tolerance, mode));
        return new AvoidXfermode(opColor, tolerance, mode);
    }

    // overrides from SkXfermode
+1 −1
Original line number Diff line number Diff line
@@ -321,7 +321,7 @@ void SkiaCanvas::recordPartialSave(SkCanvas::SaveFlags flags) {
    }

    if (NULL == mSaveStack.get()) {
        mSaveStack.reset(SkNEW_ARGS(SkDeque, (sizeof(struct SaveRec), 8)));
        mSaveStack.reset(new SkDeque(sizeof(struct SaveRec), 8));
    }

    SaveRec* rec = static_cast<SaveRec*>(mSaveStack->push_back());