Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Issue 18347: Add a PNGEncoder helper function that takes an SkBitmap, (Closed)

Created:
11 years, 11 months ago by ncarter (slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, jcampan, chromium-reviews
Visibility:
Public.

Description

Add a PNGEncoder helper function that takes an SkBitmap, which is how PNGEncode is used almost everywhere. This should be strictly no functional change, except for the ImageFilterPeer::DataReady case, where we now take an SkAutoLockPixels where previously we did not.

Patch Set 1 #

Patch Set 2 : Renamed BGRA/RGBA #

Total comments: 1

Patch Set 3 : Updated to use rowbytes() #

Patch Set 4 : Test #

Patch Set 5 : Test2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -29 lines) Patch
M base/gfx/png_encoder.h View 1 4 2 chunks +10 lines, -0 lines 0 comments Download
M base/gfx/png_encoder.cc View 1 2 4 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/fav_icon_helper.cc View 1 4 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/gears_integration.cc View 1 4 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/importer/importer.cc View 1 4 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 4 1 chunk +1 line, -5 lines 0 comments Download
M chrome/common/security_filter_peer.cc View 1 4 1 chunk +2 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ncarter (slow)
Tim, could you review?
11 years, 11 months ago (2009-01-21 01:12:26 UTC) #1
tim (not reviewing)
http://codereview.chromium.org/18347/diff/208/9 File base/gfx/png_encoder.cc (right): http://codereview.chromium.org/18347/diff/208/9#newcode202 Line 202: input.width()* 4, discard_transparency, output); I think instead of ...
11 years, 11 months ago (2009-01-21 19:12:50 UTC) #2
ncarter (slow)
Patch set updated.
11 years, 11 months ago (2009-01-21 22:51:28 UTC) #3
tim (not reviewing)
This looks good to me but I don't know much about SecurityFilterPeer, other than I ...
11 years, 11 months ago (2009-01-22 00:32:41 UTC) #4
tim (not reviewing)
11 years, 11 months ago (2009-01-22 01:05:20 UTC) #5
On 2009/01/22 00:32:41, timsteele wrote:
> This looks good to me but I don't know much about SecurityFilterPeer, other
than
> I think it has something to do with the "Block all insecure content/Allow all
> content to load" Security setting, swapping insecure images or something. 
> 
> Like you mentioned in person, this code means we now use an SkAutoLockPixels
> when encoding wheras before we didn't, and it's the only place we've found
that
> *didn't* do so before. 
> cc'ing jcampan (the svn blame result) to possibly shed some light.

LGTM!

Powered by Google App Engine
This is Rietveld 408576698