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

Issue 10780010: Introduces ImageSkia::GetRepresentations() for Mac (Closed)

Created:
8 years, 5 months ago by pkotwicz
Modified:
8 years, 5 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews
Visibility:
Public.

Description

More and more places are using ImageSkiaSource. Added ImageSkia::GetRepresentations() which attempts to get image representations for all of the supported scale factors. Fixed mac code to use GetRepresentations instead of image_reps() as it is only a matter of time till we use enough ImageSkiaSources that we break hidpi mac code. Bug=None Test= ImageSkiaTest.GetRepresentationMultipleRepsPerScaleFactor passes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147615

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fixed comment #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Fixed comment #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Patch Set 11 : #

Total comments: 3

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -2 lines) Patch
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/image/image_skia.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/image/image_skia.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +35 lines, -0 lines 0 comments Download
M ui/gfx/image/image_skia_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +65 lines, -0 lines 0 comments Download
M ui/gfx/image/image_skia_util_mac.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
pkotwicz
This fixes bugs which are bound to happen and did happen with the theme patch ...
8 years, 5 months ago (2012-07-15 01:47:46 UTC) #1
oshima
can you describe the issue in the description?
8 years, 5 months ago (2012-07-16 17:07:37 UTC) #2
pkotwicz
Updated description as requested
8 years, 5 months ago (2012-07-16 17:45:27 UTC) #3
oshima
On 2012/07/16 17:45:27, pkotwicz wrote: > Updated description as requested If GetRepresentations is needed only ...
8 years, 5 months ago (2012-07-16 18:23:23 UTC) #4
pkotwicz
Ok, we can make GetRepresentations Mac specific for now. Shall we name GetRepresentaitons something else ...
8 years, 5 months ago (2012-07-17 03:22:46 UTC) #5
sadrul
Drive-by http://codereview.chromium.org/10780010/diff/2017/chrome/browser/ui/views/wrench_menu.cc File chrome/browser/ui/views/wrench_menu.cc (right): http://codereview.chromium.org/10780010/diff/2017/chrome/browser/ui/views/wrench_menu.cc#newcode554 chrome/browser/ui/views/wrench_menu.cc:554: new gfx::ImageSkia(tinted_fullscreen_image_)); I think this is leaking ...
8 years, 5 months ago (2012-07-17 03:30:08 UTC) #6
pkotwicz
Made ImageSkia::GetRepresentations() Mac only as requested.
8 years, 5 months ago (2012-07-17 15:31:47 UTC) #7
pkotwicz
8 years, 5 months ago (2012-07-17 15:32:26 UTC) #8
oshima
lgtm with nits http://codereview.chromium.org/10780010/diff/6034/ui/gfx/image/image_skia.cc File ui/gfx/image/image_skia.cc (right): http://codereview.chromium.org/10780010/diff/6034/ui/gfx/image/image_skia.cc#newcode235 ui/gfx/image/image_skia.cc:235: } nuke {} http://codereview.chromium.org/10780010/diff/6034/ui/gfx/image/image_skia_unittest.cc File ui/gfx/image/image_skia_unittest.cc ...
8 years, 5 months ago (2012-07-17 16:43:21 UTC) #9
pkotwicz
Sky for OWNERS
8 years, 5 months ago (2012-07-17 17:38:13 UTC) #10
sky
LGTM
8 years, 5 months ago (2012-07-17 22:00:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/10780010/15001
8 years, 5 months ago (2012-07-20 02:16:56 UTC) #12
commit-bot: I haz the power
8 years, 5 months ago (2012-07-20 04:34:01 UTC) #13
Change committed as 147615

Powered by Google App Engine
This is Rietveld 408576698