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

Issue 7396059: Fix a bunch of warnings, mainly around rowBytes. (Closed)

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

Description

Fix a bunch of warnings, mainly around rowBytes. My recent change changed the way SkBitmap::fRowBytes is stored, and parameter/return values referring to rowBytes were changed to type size_t. Change the storage back, and eliminate warnings resulting from returning a size_t. Committed: https://code.google.com/p/skia/source/detail?r=7855

Patch Set 1 #

Total comments: 8

Patch Set 2 : Change declarations rather than using casts. #

Patch Set 3 : Leave as an int when desired to be signed. #

Total comments: 6

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -60 lines) Patch
M include/core/SkBitmap.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 12 chunks +17 lines, -15 lines 0 comments Download
M src/core/SkBitmapProcState_sample.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkBitmapProcState_shaderproc.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBitmap_scroll.cpp View 2 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBlitBWMaskTemplate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBlitter_4444.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkBlitter_A8.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBlitter_ARGB32.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkBlitter_RGB16.cpp View 1 7 chunks +7 lines, -7 lines 0 comments Download
M src/core/SkDraw.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkOrderedReadBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkSpriteBlitterTemplate.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkSpriteBlitter_ARGB32.cpp View 1 4 chunks +8 lines, -8 lines 0 comments Download
M src/core/SkSpriteBlitter_RGB16.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/images/SkScaledBitmapSampler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/lazy/SkLazyPixelRef.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/opts/SkBitmapProcState_opts_SSE2.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/opts/SkBitmapProcState_opts_SSSE3.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pipe/utils/SamplePipeControllers.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
Leon
11 years, 9 months ago (2013-02-25 20:22:31 UTC) #1
reed1
I see lots of casts needed, when we have a local rb variable. Why not ...
11 years, 9 months ago (2013-02-25 20:28:24 UTC) #2
Leon
Fixed other casts as well. https://codereview.appspot.com/7396059/diff/1/src/core/SkBitmapProcState_sample.h File src/core/SkBitmapProcState_sample.h (right): https://codereview.appspot.com/7396059/diff/1/src/core/SkBitmapProcState_sample.h#newcode51 src/core/SkBitmapProcState_sample.h:51: const char* SK_RESTRICT srcAddr ...
11 years, 9 months ago (2013-02-25 21:06:40 UTC) #3
reed1
https://codereview.appspot.com/7396059/diff/26001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.appspot.com/7396059/diff/26001/src/core/SkBitmap.cpp#newcode235 src/core/SkBitmap.cpp:235: size_t rowBytes) { Since this is the 64bit version, ...
11 years, 9 months ago (2013-02-25 21:15:30 UTC) #4
Leon
https://codereview.appspot.com/7396059/diff/26001/src/core/SkBitmap.cpp File src/core/SkBitmap.cpp (right): https://codereview.appspot.com/7396059/diff/26001/src/core/SkBitmap.cpp#newcode235 src/core/SkBitmap.cpp:235: size_t rowBytes) { On 2013/02/25 21:15:31, reed1 wrote: > ...
11 years, 9 months ago (2013-02-25 21:21:25 UTC) #5
reed1
11 years, 9 months ago (2013-02-25 21:43:47 UTC) #6
lgtm
Sign in to reply to this message.

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