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

Issue 6480046: SkBitmap::scrollRect changes pixels, but only if not immutable. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by Leon
Modified:
12 years, 1 month ago
Reviewers:
DerekS
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

SkBitmap::scrollRect changes pixels, but only if not immutable. scrollRect will now return false if the bitmap is immutable, and call notifyPixelsChanged when changing the pixels. This will give the bitmap a new generation ID. Committed: https://code.google.com/p/skia/source/detail?r=5230

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M include/core/SkBitmap.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkBitmap_scroll.cpp View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Leon
12 years, 1 month ago (2012-08-22 15:53:30 UTC) #1
DerekS
lgtm with one nit. https://codereview.appspot.com/6480046/diff/1/src/core/SkBitmap_scroll.cpp File src/core/SkBitmap_scroll.cpp (right): https://codereview.appspot.com/6480046/diff/1/src/core/SkBitmap_scroll.cpp#newcode83 src/core/SkBitmap_scroll.cpp:83: this->notifyPixelsChanged(); I know it probably ...
12 years, 1 month ago (2012-08-22 16:11:29 UTC) #2
Leon
12 years, 1 month ago (2012-08-22 16:19:27 UTC) #3
https://codereview.appspot.com/6480046/diff/1/src/core/SkBitmap_scroll.cpp
File src/core/SkBitmap_scroll.cpp (right):

https://codereview.appspot.com/6480046/diff/1/src/core/SkBitmap_scroll.cpp#ne...
src/core/SkBitmap_scroll.cpp:83: this->notifyPixelsChanged();
On 2012/08/22 16:11:30, DerekS wrote:
> I know it probably doesn't make a difference but logically it seems that we
> should notify that we changed the pixels after we changed them and not before.

Done.
Sign in to reply to this message.

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