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

Issue 10928093: Adds an iOS implementation of gfx::Image. (Closed)

Created:
8 years, 3 months ago by rohitrao (ping after 24h)
Modified:
8 years, 3 months ago
CC:
chromium-reviews, rsesek+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@skia
Visibility:
Public.

Description

Adds an iOS implementation of gfx::Image. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156787

Patch Set 1 #

Patch Set 2 : Cleanup. #

Patch Set 3 : Headers. #

Patch Set 4 : .ToUIImage() #

Patch Set 5 : Cleanup. #

Total comments: 31

Patch Set 6 : Test. #

Patch Set 7 : Review. #

Total comments: 2

Patch Set 8 : Unify image_util functions. #

Patch Set 9 : Grammar. #

Total comments: 2

Patch Set 10 : GYP #

Patch Set 11 : Nits. #

Total comments: 10

Patch Set 12 : Thakis review. #

Patch Set 13 : Moar GYP and TODOs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -54 lines) Patch
A skia/ext/skia_utils_ios.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
A skia/ext/skia_utils_ios.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +77 lines, -0 lines 0 comments Download
M skia/skia.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -0 lines 0 comments Download
M ui/base/layout.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M ui/gfx/image/image.h View 1 2 3 4 5 6 5 chunks +10 lines, -2 lines 0 comments Download
M ui/gfx/image/image.cc View 1 2 3 4 5 6 13 chunks +109 lines, -9 lines 0 comments Download
A ui/gfx/image/image_ios.mm View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
A ui/gfx/image/image_skia_util_ios.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A ui/gfx/image/image_skia_util_ios.mm View 1 2 3 4 5 6 1 chunk +59 lines, -0 lines 0 comments Download
M ui/gfx/image/image_unittest.cc View 1 3 chunks +20 lines, -1 line 0 comments Download
M ui/gfx/image/image_unittest_util.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/gfx/image/image_unittest_util.cc View 1 2 3 4 5 6 5 chunks +20 lines, -4 lines 0 comments Download
M ui/gfx/image/image_util.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M ui/gfx/image/image_util.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -6 lines 0 comments Download
A ui/gfx/image/image_util_ios.mm View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 4 chunks +20 lines, -16 lines 0 comments Download
M ui/ui_unittests.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rohitrao (ping after 24h)
Let's start with rsesek and see how he feels, and then we'll move on to ...
8 years, 3 months ago (2012-09-11 22:19:58 UTC) #1
rohitrao (ping after 24h)
noyau@ pointed out this morning that the code in skia_utils_ios.mm is not thread-safe. I based ...
8 years, 3 months ago (2012-09-12 21:52:08 UTC) #2
Robert Sesek
http://codereview.chromium.org/10928093/diff/8001/skia/ext/skia_utils_ios.h File skia/ext/skia_utils_ios.h (right): http://codereview.chromium.org/10928093/diff/8001/skia/ext/skia_utils_ios.h#newcode26 skia/ext/skia_utils_ios.h:26: CGColorSpaceRef colorSpace); naming: color_space http://codereview.chromium.org/10928093/diff/8001/skia/ext/skia_utils_ios.h#newcode29 skia/ext/skia_utils_ios.h:29: // DEPRECATED, use ...
8 years, 3 months ago (2012-09-13 16:14:24 UTC) #3
rohitrao (ping after 24h)
https://chromiumcodereview.appspot.com/10928093/diff/8001/skia/ext/skia_utils_ios.h File skia/ext/skia_utils_ios.h (right): https://chromiumcodereview.appspot.com/10928093/diff/8001/skia/ext/skia_utils_ios.h#newcode26 skia/ext/skia_utils_ios.h:26: CGColorSpaceRef colorSpace); On 2012/09/13 16:14:24, rsesek wrote: > naming: ...
8 years, 3 months ago (2012-09-13 17:57:56 UTC) #4
Robert Sesek
https://chromiumcodereview.appspot.com/10928093/diff/1018/ui/gfx/image/image_util_ios.mm File ui/gfx/image/image_util_ios.mm (right): https://chromiumcodereview.appspot.com/10928093/diff/1018/ui/gfx/image/image_util_ios.mm#newcode14 ui/gfx/image/image_util_ios.mm:14: Image* ImageFromPNGEncodedData(const unsigned char* input, size_t input_size) { So ...
8 years, 3 months ago (2012-09-13 20:37:48 UTC) #5
rohitrao (ping after 24h)
Per IRC conversation, using the PNG function definitions in image_util.cc, but falling back to image_util_ios.mm ...
8 years, 3 months ago (2012-09-13 20:53:53 UTC) #6
Robert Sesek
LGTM https://chromiumcodereview.appspot.com/10928093/diff/8006/skia/ext/skia_utils_ios.h File skia/ext/skia_utils_ios.h (right): https://chromiumcodereview.appspot.com/10928093/diff/8006/skia/ext/skia_utils_ios.h#newcode25 skia/ext/skia_utils_ios.h:25: SK_API UIImage* SkBitmapToUIImageWithColorSpace(const SkBitmap& icon, naming: skia_bitmap like ...
8 years, 3 months ago (2012-09-13 21:06:11 UTC) #7
rohitrao (ping after 24h)
+reed for OWNERS approval in skia/. +thakis for OWNERS approval for ui/base/layout.cc and ui/*.gyp.
8 years, 3 months ago (2012-09-14 00:13:27 UTC) #8
Nico
https://codereview.chromium.org/10928093/diff/19002/ui/base/layout.cc File ui/base/layout.cc (right): https://codereview.chromium.org/10928093/diff/19002/ui/base/layout.cc#newcode73 ui/base/layout.cc:73: #if defined(OS_MACOSX) && !defined(OS_IOS) && defined(ENABLE_HIDPI) How does HiDPI ...
8 years, 3 months ago (2012-09-14 00:52:19 UTC) #9
Nico
https://codereview.chromium.org/10928093/diff/19002/skia/skia.gyp File skia/skia.gyp (right): https://codereview.chromium.org/10928093/diff/19002/skia/skia.gyp#newcode453 skia/skia.gyp:453: 'ext/skia_utils_ios.h', Can't you add that to the global source ...
8 years, 3 months ago (2012-09-14 00:53:54 UTC) #10
rohitrao (ping after 24h)
http://codereview.chromium.org/10928093/diff/19002/skia/skia.gyp File skia/skia.gyp (right): http://codereview.chromium.org/10928093/diff/19002/skia/skia.gyp#newcode453 skia/skia.gyp:453: 'ext/skia_utils_ios.h', On 2012/09/14 00:53:54, Nico wrote: > Can't you ...
8 years, 3 months ago (2012-09-14 01:07:18 UTC) #11
Nico
lgtm with the stuff below. (I think I'm in skia/OWNERS too) http://codereview.chromium.org/10928093/diff/19002/skia/skia.gyp File skia/skia.gyp (right): ...
8 years, 3 months ago (2012-09-14 01:13:37 UTC) #12
rohitrao (ping after 24h)
-reed he's off the hook for the skia code. Thanks for the review! I'm going ...
8 years, 3 months ago (2012-09-14 01:30:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rohitrao@chromium.org/10928093/9011
8 years, 3 months ago (2012-09-14 01:50:05 UTC) #14
commit-bot: I haz the power
Retried try job too often for step(s) sync_integration_tests
8 years, 3 months ago (2012-09-14 05:31:56 UTC) #15
stuartmorgan
https://chromiumcodereview.appspot.com/10928093/diff/8001/skia/ext/skia_utils_ios.mm File skia/ext/skia_utils_ios.mm (right): https://chromiumcodereview.appspot.com/10928093/diff/8001/skia/ext/skia_utils_ios.mm#newcode54 skia/ext/skia_utils_ios.mm:54: UIGraphicsPushContext(context); On 2012/09/13 17:57:57, rohitrao wrote: > On 2012/09/13 ...
8 years, 3 months ago (2012-09-14 11:01:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rohitrao@chromium.org/10928093/9011
8 years, 3 months ago (2012-09-14 11:06:40 UTC) #17
commit-bot: I haz the power
8 years, 3 months ago (2012-09-14 12:55:27 UTC) #18
Change committed as 156787

Powered by Google App Engine
This is Rietveld 408576698