diff options
author | reed <reed@google.com> | 2016-07-26 12:21:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-26 12:21:10 -0700 |
commit | e93393b311ce88a15f64bdde58c05ea874f881f4 (patch) | |
tree | ba1f70a210cb36774d3f58f12b6829df2de94cf2 /src/core/SkMiniRecorder.cpp | |
parent | d1bdd1fcbd308afb9903f39d231742f5c951cf07 (diff) |
don't specialize drawBitmapRect for minirecorder; no longer called by blink
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2183193002
Review-Url: https://codereview.chromium.org/2183193002
Diffstat (limited to 'src/core/SkMiniRecorder.cpp')
-rw-r--r-- | src/core/SkMiniRecorder.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core/SkMiniRecorder.cpp b/src/core/SkMiniRecorder.cpp index ea1866e084..a5d676aed9 100644 --- a/src/core/SkMiniRecorder.cpp +++ b/src/core/SkMiniRecorder.cpp @@ -70,20 +70,6 @@ SkMiniRecorder::~SkMiniRecorder() { new (fBuffer.get()) Type{__VA_ARGS__}; \ return true -bool SkMiniRecorder::drawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst, - const SkPaint* p, SkCanvas::SrcRectConstraint constraint) { - SkRect bounds; - if (!src) { - bm.getBounds(&bounds); - src = &bounds; - } - SkTLazy<SkPaint> defaultPaint; - if (!p) { - p = defaultPaint.init(); - } - TRY_TO_STORE(DrawBitmapRectFixedSize, *p, bm, *src, dst, constraint); -} - bool SkMiniRecorder::drawRect(const SkRect& rect, const SkPaint& paint) { TRY_TO_STORE(DrawRect, paint, rect); } @@ -111,7 +97,6 @@ sk_sp<SkPicture> SkMiniRecorder::detachAsPicture(const SkRect& cull) { case State::kEmpty: once([]{ empty = new SkEmptyPicture; }); return sk_ref_sp(empty); - CASE(DrawBitmapRectFixedSize); CASE(DrawPath); CASE(DrawRect); CASE(DrawTextBlob); @@ -132,7 +117,6 @@ void SkMiniRecorder::flushAndReset(SkCanvas* canvas) { switch (fState) { case State::kEmpty: return; - CASE(DrawBitmapRectFixedSize); CASE(DrawPath); CASE(DrawRect); CASE(DrawTextBlob); |