Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(216)

Issue 4806047: Exit SkBitmap::scrollRect() early if width <= 0 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by epoger
Modified:
12 years, 10 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Exit SkBitmap::scrollRect() early if width <= 0 As suggested in email from saintlou@google.com Committed: http://code.google.com/p/skia/source/detail?r=1948

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -4 lines) Patch
A gm/bitmapscroll.cpp View 1 1 chunk +136 lines, -0 lines 0 comments Download
M gm/gm.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/gm.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkBitmap_scroll.cpp View 1 4 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 10
epoger
Here is the suggestion email from saintlou@google.com : We get in a situation where memmove ...
12 years, 10 months ago (2011-07-22 15:50:55 UTC) #1
TomH
http://codereview.appspot.com/4806047/diff/1/src/core/SkBitmap_scroll.cpp File src/core/SkBitmap_scroll.cpp (right): http://codereview.appspot.com/4806047/diff/1/src/core/SkBitmap_scroll.cpp#newcode100 src/core/SkBitmap_scroll.cpp:100: return true; The comment at line 72 reads "If ...
12 years, 10 months ago (2011-07-22 15:57:52 UTC) #2
epoger
http://codereview.appspot.com/4806047/diff/1/src/core/SkBitmap_scroll.cpp File src/core/SkBitmap_scroll.cpp (right): http://codereview.appspot.com/4806047/diff/1/src/core/SkBitmap_scroll.cpp#newcode100 src/core/SkBitmap_scroll.cpp:100: return true; On 2011/07/22 15:57:52, TomH wrote: > The ...
12 years, 10 months ago (2011-07-22 16:23:37 UTC) #3
JoshH
Just my thoughts on Elliot's comments/question. Please keep in mind I am just rendering my ...
12 years, 10 months ago (2011-07-22 22:31:09 UTC) #4
legalinjection
12 years, 10 months ago (2011-07-24 11:30:42 UTC) #5
epoger
Update: On Friday I created some new tests for this code within Skia's "gm" but ...
12 years, 10 months ago (2011-07-25 13:39:39 UTC) #6
epoger
Added a new "gm" test case that reproduces the segfault, and demonstrates the scroll operations ...
12 years, 10 months ago (2011-07-25 15:44:24 UTC) #7
TomH
Yay, new tests. LGTM
12 years, 10 months ago (2011-07-25 15:56:23 UTC) #8
reed1
Can we write a unittest for this, to verify the bool result for various parameters?
12 years, 10 months ago (2011-07-25 15:58:57 UTC) #9
epoger
12 years, 10 months ago (2011-07-25 16:34:07 UTC) #10
On 2011/07/25 15:58:57, reed1 wrote:
> Can we write a unittest for this, to verify the bool result for various
> parameters?

I have gone ahead and committed this change for now, so that Chromium can get
the bug fix.  I have filed this bug to track the remaining work:
http://code.google.com/p/skia/issues/detail?id=327 ('add unittest for
SkBitmap::scrollRect()')
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b