1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "platform/graphics/InterceptingCanvas.h"
10 void InterceptingCanvasBase::unrollDrawPicture(const SkPicture
* picture
, const SkMatrix
* matrix
, const SkPaint
* paint
, SkPicture::AbortCallback
* abortCallback
)
12 int saveCount
= this->getSaveCount();
14 SkRect newBounds
= picture
->cullRect();
16 matrix
->mapRect(&newBounds
);
17 this->saveLayer(&newBounds
, paint
);
22 this->concat(*matrix
);
24 picture
->playback(this, abortCallback
);
26 this->restoreToCount(saveCount
);