diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-16 10:24:37 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-16 10:24:37 +0000 |
commit | eed779d866e1e239bfb9ebc6a225b7345a41adf9 (patch) | |
tree | 5661727de9fcb9d0398ae74cdda92165a75b4297 /src/core/SkPictureRecord.cpp | |
parent | c9917c054567ab03419614f01392ecf13f29da5c (diff) |
This CL plumbs in the drawBitmapRectToRect "bleed" flag and makes it live on the simplest GPU path.
R=bsalomon@google.com, reed@google.com, edisonn@google.com, scroggo@google.com, jvanverth@google.com, mtklein@google.com
Author: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/20806003
git-svn-id: http://skia.googlecode.com/svn/trunk@10765 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r-- | src/core/SkPictureRecord.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index 2c2d334caf..7a853816ae 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -913,9 +913,10 @@ void SkPictureRecord::drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar } void SkPictureRecord::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, - const SkRect& dst, const SkPaint* paint) { - // id + paint index + bitmap index + bool for 'src' - uint32_t size = 4 * kUInt32Size; + const SkRect& dst, const SkPaint* paint, + DrawBitmapRectFlags flags) { + // id + paint index + bitmap index + bool for 'src' + flags + uint32_t size = 5 * kUInt32Size; if (NULL != src) { size += sizeof(*src); // + rect } @@ -927,6 +928,7 @@ void SkPictureRecord::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* addBitmap(bitmap); addRectPtr(src); // may be null addRect(dst); + addInt(flags); validate(initialOffset, size); } |