aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMiniRecorder.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-08 15:05:02 -0500
committerGravatar Mike Reed <reed@google.com>2018-01-08 20:42:27 +0000
commit274218ef0173ff6046f2258c703c1c83ea37c02f (patch)
tree5d0077217a7b3e42a6fcacb8a12e95a6323746a9 /src/core/SkMiniRecorder.cpp
parent7ff6ca525454e9dfbabbec2f6bf66d6b290ac195 (diff)
move largest apis into private
Related to https://skia-review.googlesource.com/c/skia/+/91860 Bug: skia: Change-Id: Ia8fd981b422bbab75541b078277d2e09e1fc9d41 Reviewed-on: https://skia-review.googlesource.com/91940 Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkMiniRecorder.cpp')
-rw-r--r--src/core/SkMiniRecorder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkMiniRecorder.cpp b/src/core/SkMiniRecorder.cpp
index ec089373e1..6a2edf1f12 100644
--- a/src/core/SkMiniRecorder.cpp
+++ b/src/core/SkMiniRecorder.cpp
@@ -12,6 +12,7 @@
#include "SkPicture.h"
#include "SkPictureCommon.h"
#include "SkRecordDraw.h"
+#include "SkRectPriv.h"
#include "SkTextBlob.h"
using namespace SkRecords;
@@ -29,13 +30,13 @@ public:
// These are fairly easy because we know they can't be affected by any matrix or saveLayers.
static SkRect adjust_for_paint(SkRect bounds, const SkPaint& paint) {
return paint.canComputeFastBounds() ? paint.computeFastBounds(bounds, &bounds)
- : SkRect::MakeLargest();
+ : SkRectPriv::MakeLargest();
}
static SkRect bounds(const DrawRect& op) {
return adjust_for_paint(op.rect, op.paint);
}
static SkRect bounds(const DrawPath& op) {
- return op.path.isInverseFillType() ? SkRect::MakeLargest()
+ return op.path.isInverseFillType() ? SkRectPriv::MakeLargest()
: adjust_for_paint(op.path.getBounds(), op.paint);
}
static SkRect bounds(const DrawTextBlob& op) {