aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/PathBench.cpp
diff options
context:
space:
mode:
authorGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-31 14:39:54 +0000
committerGravatar scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-31 14:39:54 +0000
commit2d76d933ff8ba2090229599f32bdb2b17fb7ad50 (patch)
treeab25cac01987bcb1646888ad68aa9433210f5f45 /bench/PathBench.cpp
parentd5936923addb492f02e4b341a8d225d6215af0d0 (diff)
Read and write pixel offset when serializing bitmaps.
Remove ifdef's preventing a change to read and write offsets. This fixes a bug where the SKP will draw the wrong portion of bitmaps. In addition, read the offset from the stream whether the bitmap decoder succeeds or not, so that a failure to decode still advances the stream to the correct spot. Set the offset to 0 before calling SkPicture::EncodeBitmap, so that if the function does not set it, we will not modify the offset. REQUIRES A CHANGE TO THE PICTURE VERSION. Does not change PICTURE_VERSION itself, since other CLs are also requiring a change. BUG=https://code.google.com/p/skia/issues/detail?id=1301 R=djsollen@google.com Review URL: https://codereview.chromium.org/15713015 git-svn-id: http://skia.googlecode.com/svn/trunk@9368 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/PathBench.cpp')
0 files changed, 0 insertions, 0 deletions