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

Issue 10799014: Add support for PNG representation in gfx::Image (Closed)

Created:
8 years, 5 months ago by cjhopman
Modified:
8 years, 4 months ago
Reviewers:
Robert Sesek, sky
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@bookmark-sync
Visibility:
Public.

Description

Add support for PNG representation in gfx::Image Currently all conversions to or from PNG will request (and so possibly create and cache) an ImageSkia intermediate representation. Depends on http://codereview.chromium.org/10799014/ BUG=123865 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150228

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 21

Patch Set 3 : #

Total comments: 21

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -32 lines) Patch
M chrome/browser/ui/tests/ui_gfx_image_unittest.mm View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/image/image.h View 1 2 3 4 5 6 4 chunks +9 lines, -0 lines 0 comments Download
M ui/gfx/image/image.cc View 1 2 3 4 5 6 11 chunks +197 lines, -18 lines 0 comments Download
A ui/gfx/image/image_mac.mm View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
M ui/gfx/image/image_unittest.cc View 1 2 3 4 2 chunks +64 lines, -3 lines 0 comments Download
M ui/gfx/image/image_unittest_util.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/image/image_unittest_util.cc View 1 2 3 4 3 chunks +40 lines, -1 line 0 comments Download
A ui/gfx/image/image_unittest_util_mac.mm View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
M ui/gfx/image/image_util.cc View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/ui_unittests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
cjhopman
This change doesn't touch any of the users of gfx::Image, specifically, callers still use ImageFromPNGEncodedData() ...
8 years, 5 months ago (2012-07-19 21:52:19 UTC) #1
cjhopman
sky: ui/ rsesek: ui/gfx/image/
8 years, 5 months ago (2012-07-19 21:53:27 UTC) #2
Robert Sesek
http://codereview.chromium.org/10799014/diff/8006/ui/gfx/image/image_png.h File ui/gfx/image/image_png.h (right): http://codereview.chromium.org/10799014/diff/8006/ui/gfx/image/image_png.h#newcode18 ui/gfx/image/image_png.h:18: class UI_EXPORT ImagePNG { Why do we need ImagePNG? ...
8 years, 5 months ago (2012-07-19 23:45:07 UTC) #3
cjhopman
http://codereview.chromium.org/10799014/diff/8006/ui/gfx/image/image_png.h File ui/gfx/image/image_png.h (right): http://codereview.chromium.org/10799014/diff/8006/ui/gfx/image/image_png.h#newcode18 ui/gfx/image/image_png.h:18: class UI_EXPORT ImagePNG { On 2012/07/19 23:45:07, rsesek wrote: ...
8 years, 5 months ago (2012-07-20 17:28:24 UTC) #4
Robert Sesek
http://codereview.chromium.org/10799014/diff/5008/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): http://codereview.chromium.org/10799014/diff/5008/ui/gfx/image/image.cc#newcode108 ui/gfx/image/image.cc:108: explicit ImageRepPNG(const unsigned char* input, size_t input_size) Don't need ...
8 years, 5 months ago (2012-07-20 21:03:00 UTC) #5
cjhopman
I've never touched Objective-C, so feel free to tear that code apart. I think it ...
8 years, 5 months ago (2012-07-24 01:44:12 UTC) #6
Robert Sesek
Overall, I like the direction this is heading! I wonder about the failure case for ...
8 years, 5 months ago (2012-07-24 18:59:16 UTC) #7
cjhopman
I agree that just returning an empty image is not the best way to handle ...
8 years, 5 months ago (2012-07-25 21:13:29 UTC) #8
Robert Sesek
This is almost there -- just a few more comments. Also, feel free to ping ...
8 years, 4 months ago (2012-07-31 14:07:16 UTC) #9
cjhopman
http://codereview.chromium.org/10799014/diff/26003/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): http://codereview.chromium.org/10799014/diff/26003/ui/gfx/image/image.cc#newcode62 ui/gfx/image/image.cc:62: pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 32, 32); On 2012/07/31 ...
8 years, 4 months ago (2012-08-03 22:15:25 UTC) #10
cjhopman
The last patch also changed PNG encode failures to crashes. As mentioned before this is ...
8 years, 4 months ago (2012-08-03 22:17:01 UTC) #11
cjhopman
On mac_rel, UiGfxImageTest::CheckColor is failing because I changed the test utils to create a green ...
8 years, 4 months ago (2012-08-03 23:07:06 UTC) #12
sky
As rsesek is reviewing the image related changes I only looked at the gyp files, ...
8 years, 4 months ago (2012-08-06 14:19:05 UTC) #13
Robert Sesek
LGTM! On 2012/08/03 23:07:06, cjhopman wrote: > On mac_rel, UiGfxImageTest::CheckColor is failing because I changed ...
8 years, 4 months ago (2012-08-06 21:54:04 UTC) #14
cjhopman
On 2012/08/06 21:54:04, rsesek wrote: > LGTM! > > On 2012/08/03 23:07:06, cjhopman wrote: > ...
8 years, 4 months ago (2012-08-06 22:25:33 UTC) #15
Robert Sesek
++LGTM
8 years, 4 months ago (2012-08-06 22:29:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/10799014/29013
8 years, 4 months ago (2012-08-06 22:33:27 UTC) #17
commit-bot: I haz the power
Try job failure for 10799014-29013 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-06 23:12:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/10799014/29013
8 years, 4 months ago (2012-08-07 00:17:17 UTC) #19
commit-bot: I haz the power
8 years, 4 months ago (2012-08-07 01:41:42 UTC) #20
Change committed as 150228

Powered by Google App Engine
This is Rietveld 408576698