diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-16 08:32:56 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-16 13:36:06 +0000 |
commit | b64bcbdc3a5aa7b9e3ff216e4617ddc1db9260b5 (patch) | |
tree | fe99f9fe4f379226b3593989aa6c46cb2969650d /src/image/SkSurface.cpp | |
parent | 755a2c6b4229c86d22cd7dbd399abc97fefab4cb (diff) |
Remove budgeted parameter from SkSurface::makeImageSnapshot
This unused feature complicates MDB.
Chrome compiles locally for me with this CL.
Change-Id: I611e464885fb984030eace43ead42cf39d0e7f72
Reviewed-on: https://skia-review.googlesource.com/9734
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/image/SkSurface.cpp')
-rw-r--r-- | src/image/SkSurface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp index 08f79aea28..55aab3e992 100644 --- a/src/image/SkSurface.cpp +++ b/src/image/SkSurface.cpp @@ -71,7 +71,7 @@ SkSurface_Base::~SkSurface_Base() { } void SkSurface_Base::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) { - auto image = this->makeImageSnapshot(SkBudgeted::kYes); + auto image = this->makeImageSnapshot(); if (image) { canvas->drawImage(image, x, y, paint); } @@ -153,8 +153,8 @@ SkCanvas* SkSurface::getCanvas() { return asSB(this)->getCachedCanvas(); } -sk_sp<SkImage> SkSurface::makeImageSnapshot(SkBudgeted budgeted) { - return asSB(this)->refCachedImage(budgeted); +sk_sp<SkImage> SkSurface::makeImageSnapshot() { + return asSB(this)->refCachedImage(); } sk_sp<SkSurface> SkSurface::makeSurface(const SkImageInfo& info) { |