diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkCanvas.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 56a42c3f50..4150a9a55b 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -2036,6 +2036,18 @@ void SkCanvas::legacy_drawBitmapRect(const SkBitmap& bitmap, const SkRect* src, } } +void SkCanvas::temporary_internal_describeTopLayer(SkMatrix* matrix, SkIRect* clip_bounds) { + SkIRect layer_bounds = this->getTopLayerBounds(); + if (matrix) { + *matrix = this->getTotalMatrix(); + matrix->preTranslate(-layer_bounds.left(), -layer_bounds.top()); + } + if (clip_bounds) { + this->getClipDeviceBounds(clip_bounds); + clip_bounds->offset(-layer_bounds.left(), -layer_bounds.top()); + } +} + ////////////////////////////////////////////////////////////////////////////// // These are the virtual drawing methods ////////////////////////////////////////////////////////////////////////////// |