diff options
author | Yuqian Li <liyuqian@google.com> | 2018-03-22 15:00:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-04 17:42:28 +0000 |
commit | bf74a460814a7912ed3d2e1af000afd2c45cd318 (patch) | |
tree | 70d33ae06ff97a34b81c45724922b4cc7f220069 /src/core/SkBitmapDevice.h | |
parent | 378679cc474f56661e838a21d6341c061f408372 (diff) |
Fix drawBitmapRect in the threaded backend
Previously, the threaded backend failed to drawBitmapRect (see,
e.g., GM_bitmaprect_s) because it did not intercept the call to
SkDraw::drawBitmap.
Bug: skia:
Change-Id: I7eeaae98e63d726b2b566c4d15f7ea939f59360e
Reviewed-on: https://skia-review.googlesource.com/115983
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'src/core/SkBitmapDevice.h')
-rw-r--r-- | src/core/SkBitmapDevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/SkBitmapDevice.h b/src/core/SkBitmapDevice.h index dbe04fa1cc..26214261a5 100644 --- a/src/core/SkBitmapDevice.h +++ b/src/core/SkBitmapDevice.h @@ -137,6 +137,9 @@ protected: void validateDevBounds(const SkIRect& r) override; ClipType onGetClipType() const override; + virtual void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull, + const SkPaint&); + private: friend class SkCanvas; friend struct DeviceCM; //for setMatrixClip |