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

Issue 340613004: Use ImageSkiaSource to create ImageSkia from ImagePNGReps (Closed)

Created:
6 years, 6 months ago by oshima
Modified:
6 years, 6 months ago
CC:
chromium-reviews, rsesek+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Use ImageSkiaSource to create ImageSkia from ImagePNGReps gfx::ImageKia will fetch the ImageSkiaRep based on resource scale factor (supported one) and scale accordingly. BUG=381601 TEST=covered by test. R=ananta@chromium.org, pkotwicz@chromium.org, rsesek@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278589 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278783

Patch Set 1 : #

Total comments: 7

Patch Set 2 : updated comment #

Patch Set 3 : test util fix #

Patch Set 4 : test util fix #

Total comments: 6

Patch Set 5 : update comments #

Total comments: 7

Patch Set 6 : Png->PNG #

Patch Set 7 : exclude new test on ios #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -35 lines) Patch
M ui/gfx/image/image.cc View 1 2 3 4 5 14 chunks +95 lines, -33 lines 0 comments Download
M ui/gfx/image/image_unittest.cc View 1 2 3 4 5 6 1 chunk +14 lines, -2 lines 0 comments Download
M ui/gfx/image/image_unittest_util.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
oshima
ananta, can you try this on windows and see if this fixes favicon quality? (on ...
6 years, 6 months ago (2014-06-18 00:28:06 UTC) #1
pkotwicz
I will look at this more in depth later. At first glance this look wrong. ...
6 years, 6 months ago (2014-06-18 02:22:10 UTC) #2
oshima
On 2014/06/18 02:22:10, pkotwicz wrote: > I will look at this more in depth later. ...
6 years, 6 months ago (2014-06-18 04:11:22 UTC) #3
pkotwicz
Ok, I now understand what you are trying to do. I think that this CL ...
6 years, 6 months ago (2014-06-18 04:54:19 UTC) #4
oshima
On Tue, Jun 17, 2014 at 9:54 PM, <pkotwicz@chromium.org> wrote: > Ok, I now understand ...
6 years, 6 months ago (2014-06-18 05:01:46 UTC) #5
pkotwicz
This is how we get to 4 resizes (not 3) 1) user visits go/perf on ...
6 years, 6 months ago (2014-06-18 05:19:59 UTC) #6
oshima
On 2014/06/18 05:19:59, pkotwicz wrote: > This is how we get to 4 resizes (not ...
6 years, 6 months ago (2014-06-18 05:26:50 UTC) #7
pkotwicz
It is true that you can simplify SelectFaviconFramesFromPNGs() as a result of your CL. HOWEVER, ...
6 years, 6 months ago (2014-06-18 14:22:48 UTC) #8
pkotwicz
The integer multiple scaling algorithm matters because this is the algorithm used to resample favicons ...
6 years, 6 months ago (2014-06-18 14:25:06 UTC) #9
oshima
On 2014/06/18 14:22:48, pkotwicz wrote: > It is true that you can simplify SelectFaviconFramesFromPNGs() as ...
6 years, 6 months ago (2014-06-18 15:46:47 UTC) #10
scottmg
On 2014/06/18 00:28:06, oshima wrote: > ananta, can you try this on windows and see ...
6 years, 6 months ago (2014-06-18 20:31:27 UTC) #11
oshima
On 2014/06/18 20:31:27, scottmg wrote: > On 2014/06/18 00:28:06, oshima wrote: > > ananta, can ...
6 years, 6 months ago (2014-06-18 22:06:06 UTC) #12
pkotwicz
Favicons get updated when you visit a site. So if the favicon looks bad because ...
6 years, 6 months ago (2014-06-18 22:56:33 UTC) #13
oshima
On 2014/06/18 22:56:33, pkotwicz wrote: > Favicons get updated when you visit a site. So ...
6 years, 6 months ago (2014-06-18 23:11:43 UTC) #14
ananta
LGTM. Cursory testing on the patch have symptoms already described by scottmg and oshima.
6 years, 6 months ago (2014-06-18 23:37:45 UTC) #15
oshima
On 2014/06/18 23:37:45, ananta wrote: > LGTM. Cursory testing on the patch have symptoms already ...
6 years, 6 months ago (2014-06-19 05:22:23 UTC) #16
pkotwicz
Looks good mostly. You need to also change the implementation of ImageSkiaFromPNG() and Get1xPNGBytesFromImageSkia() in ...
6 years, 6 months ago (2014-06-19 14:16:13 UTC) #17
oshima
> You need to also change the implementation of ImageSkiaFromPNG() and > Get1xPNGBytesFromImageSkia() in image_ios.mm ...
6 years, 6 months ago (2014-06-19 15:50:41 UTC) #18
oshima
https://codereview.chromium.org/340613004/diff/90001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): https://codereview.chromium.org/340613004/diff/90001/ui/gfx/image/image.cc#newcode76 ui/gfx/image/image.cc:76: const ImageSkiaRep* rep = NULL; On 2014/06/19 15:50:40, oshima ...
6 years, 6 months ago (2014-06-19 17:15:05 UTC) #19
pkotwicz
On second though modifying ImageSkiaFromPNG() and Get1xPNGBytesFromImageSkia() in image_ios.mm is not as easy as I ...
6 years, 6 months ago (2014-06-19 21:09:09 UTC) #20
oshima
https://codereview.chromium.org/340613004/diff/90001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): https://codereview.chromium.org/340613004/diff/90001/ui/gfx/image/image.cc#newcode150 ui/gfx/image/image.cc:150: const ImageSkia* image_skia) { On 2014/06/19 21:09:09, pkotwicz wrote: ...
6 years, 6 months ago (2014-06-19 21:29:58 UTC) #21
pkotwicz
Ok, LGTM https://codereview.chromium.org/340613004/diff/150001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (right): https://codereview.chromium.org/340613004/diff/150001/ui/gfx/image/image.cc#newcode98 ui/gfx/image/image.cc:98: const gfx::ImageSkiaRep rep = ToImageSkiaRep(png_rep); We insert ...
6 years, 6 months ago (2014-06-19 21:41:46 UTC) #22
oshima
rsesek@ -> owners
6 years, 6 months ago (2014-06-19 22:08:37 UTC) #23
Robert Sesek
https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (left): https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc#oldcode38 ui/gfx/image/image.cc:38: const std::vector<gfx::ImagePNGRep>& image_png_reps); These seem like unrelated changes. Is ...
6 years, 6 months ago (2014-06-19 22:12:05 UTC) #24
oshima
https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (left): https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc#oldcode38 ui/gfx/image/image.cc:38: const std::vector<gfx::ImagePNGRep>& image_png_reps); On 2014/06/19 22:12:05, rsesek wrote: > ...
6 years, 6 months ago (2014-06-19 23:03:01 UTC) #25
Robert Sesek
LGTM https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (left): https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc#oldcode38 ui/gfx/image/image.cc:38: const std::vector<gfx::ImagePNGRep>& image_png_reps); On 2014/06/19 23:03:01, oshima wrote: ...
6 years, 6 months ago (2014-06-19 23:04:33 UTC) #26
oshima
https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (left): https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc#oldcode38 ui/gfx/image/image.cc:38: const std::vector<gfx::ImagePNGRep>& image_png_reps); On 2014/06/19 23:04:33, rsesek wrote: > ...
6 years, 6 months ago (2014-06-19 23:46:38 UTC) #27
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 6 months ago (2014-06-19 23:46:45 UTC) #28
Robert Sesek
https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc File ui/gfx/image/image.cc (left): https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc#oldcode38 ui/gfx/image/image.cc:38: const std::vector<gfx::ImagePNGRep>& image_png_reps); On 2014/06/19 23:46:38, oshima wrote: > ...
6 years, 6 months ago (2014-06-19 23:48:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/340613004/190001
6 years, 6 months ago (2014-06-19 23:50:43 UTC) #30
oshima
On 2014/06/19 23:48:56, rsesek wrote: > https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc > File ui/gfx/image/image.cc (left): > > https://codereview.chromium.org/340613004/diff/170001/ui/gfx/image/image.cc#oldcode38 > ...
6 years, 6 months ago (2014-06-19 23:58:20 UTC) #31
oshima
Committed patchset #6 manually as r278589 (presubmit successful).
6 years, 6 months ago (2014-06-20 04:35:51 UTC) #32
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 6 months ago (2014-06-20 16:57:24 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/340613004/230001
6 years, 6 months ago (2014-06-20 17:00:47 UTC) #34
oshima
6 years, 6 months ago (2014-06-20 18:54:24 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 manually as r278783 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698