diff options
author | Florin Malita <fmalita@google.com> | 2014-12-10 12:02:16 -0500 |
---|---|---|
committer | Florin Malita <fmalita@google.com> | 2014-12-10 12:02:16 -0500 |
commit | c54d8db4d169ea5f2af2a9a2349df007bd428475 (patch) | |
tree | 60c05374d2748ff3e11fcab4c92bb92c15990c93 /src/core/SkPictureRecord.cpp | |
parent | 3d6405b52d35b2a2715a2e4f561c351b028fab1a (diff) |
Remove SkCanvas::drawBitmapMatrix()
R=mtklein@google.com, reed@google.com, robertphillips@google.com
Review URL: https://codereview.chromium.org/789033002
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index ac05e841d7..778abb5f97 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -57,7 +57,7 @@ static inline size_t get_paint_offset(DrawType op, size_t opSize) { 0, // CLIP_RRECT - no paint 0, // CONCAT - no paint 1, // DRAW_BITMAP - right after op code - 1, // DRAW_BITMAP_MATRIX - right after op code + 1, // DRAW_BITMAP_MATRIX - right after op code, deprecated 1, // DRAW_BITMAP_NINE - right after op code 1, // DRAW_BITMAP_RECT_TO_RECT - right after op code 0, // DRAW_CLEAR - no paint @@ -573,18 +573,6 @@ void SkPictureRecord::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* this->validate(initialOffset, size); } -void SkPictureRecord::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& matrix, - const SkPaint* paint) { - // id + paint index + bitmap index + matrix - size_t size = 3 * kUInt32Size + matrix.writeToMemory(NULL); - size_t initialOffset = this->addDraw(DRAW_BITMAP_MATRIX, &size); - SkASSERT(initialOffset+get_paint_offset(DRAW_BITMAP_MATRIX, size) == fWriter.bytesWritten()); - this->addPaintPtr(paint); - this->addBitmap(bitmap); - this->addMatrix(matrix); - this->validate(initialOffset, size); -} - void SkPictureRecord::drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst, const SkPaint* paint) { // op + paint index + bitmap id + center + dst rect |