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

Issue 574663003: Enables 300P support for iOS. (Closed)

Created:
6 years, 3 months ago by rohitrao (ping after 24h)
Modified:
6 years, 3 months ago
Reviewers:
Robert Sesek, lliabraa, tony
CC:
chromium-reviews, rsesek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enables 300P support for iOS. The code will continue to load the 200P pak file and fall back to those resources, but the supported scale factor on @3x devices will now be 300P. This CL adds a unittest to ensure that image conversion works properly when the scale factor of the source image does not match the current supported scale factor of the system. BUG=413300 TEST=None Committed: https://crrev.com/6ac057568ad9411ab26784ec2bf72f9ae8cfa475 Cr-Commit-Position: refs/heads/master@{#295160}

Patch Set 1 #

Patch Set 2 : IWYU. #

Total comments: 7

Patch Set 3 : Review. #

Total comments: 5

Patch Set 4 : Review. #

Patch Set 5 : Save and restore. #

Patch Set 6 : Save and restore. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -3 lines) Patch
M ui/base/resource/resource_bundle.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_ios.mm View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M ui/gfx/gfx_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/image/image_ios_unittest.mm View 1 2 3 4 5 1 chunk +109 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
rohitrao (ping after 24h)
6 years, 3 months ago (2014-09-16 14:06:04 UTC) #2
lliabraa
https://codereview.chromium.org/574663003/diff/20001/ui/base/resource/resource_bundle_ios.mm File ui/base/resource/resource_bundle_ios.mm (right): https://codereview.chromium.org/574663003/diff/20001/ui/base/resource/resource_bundle_ios.mm#newcode61 ui/base/resource/resource_bundle_ios.mm:61: // now, we are simply falling back to the ...
6 years, 3 months ago (2014-09-16 14:13:36 UTC) #3
rohitrao (ping after 24h)
https://codereview.chromium.org/574663003/diff/20001/ui/base/resource/resource_bundle_ios.mm File ui/base/resource/resource_bundle_ios.mm (right): https://codereview.chromium.org/574663003/diff/20001/ui/base/resource/resource_bundle_ios.mm#newcode61 ui/base/resource/resource_bundle_ios.mm:61: // now, we are simply falling back to the ...
6 years, 3 months ago (2014-09-16 14:16:48 UTC) #4
lliabraa
lgtm
6 years, 3 months ago (2014-09-16 14:39:31 UTC) #5
rohitrao (ping after 24h)
+Tony for ui/base/resource OWNERS +Robert for ui/gfx OWNERS For some background: we are working on ...
6 years, 3 months ago (2014-09-16 14:44:17 UTC) #7
Robert Sesek
https://codereview.chromium.org/574663003/diff/40001/ui/gfx/image/image_ios_unittest.mm File ui/gfx/image/image_ios_unittest.mm (right): https://codereview.chromium.org/574663003/diff/40001/ui/gfx/image/image_ios_unittest.mm#newcode20 ui/gfx/image/image_ios_unittest.mm:20: base::ScopedCFTypeRef<CGColorSpaceRef> color_space( Could you use CreateImage() here (in image_unittest_util.h)? ...
6 years, 3 months ago (2014-09-16 15:51:30 UTC) #8
tony
LGTM with rsesek's changes addressed.
6 years, 3 months ago (2014-09-16 16:46:39 UTC) #9
rohitrao (ping after 24h)
https://codereview.chromium.org/574663003/diff/40001/ui/gfx/image/image_ios_unittest.mm File ui/gfx/image/image_ios_unittest.mm (right): https://codereview.chromium.org/574663003/diff/40001/ui/gfx/image/image_ios_unittest.mm#newcode20 ui/gfx/image/image_ios_unittest.mm:20: base::ScopedCFTypeRef<CGColorSpaceRef> color_space( On 2014/09/16 15:51:30, rsesek wrote: > Could ...
6 years, 3 months ago (2014-09-16 17:20:52 UTC) #10
Robert Sesek
LGTM https://codereview.chromium.org/574663003/diff/40001/ui/gfx/image/image_ios_unittest.mm File ui/gfx/image/image_ios_unittest.mm (right): https://codereview.chromium.org/574663003/diff/40001/ui/gfx/image/image_ios_unittest.mm#newcode43 ui/gfx/image/image_ios_unittest.mm:43: class ImageIOSTest : public testing::Test { On 2014/09/16 ...
6 years, 3 months ago (2014-09-16 17:26:16 UTC) #11
rohitrao (ping after 24h)
> > Do I need to save/restore the original set of SupportedScaleFactors? I'm not > ...
6 years, 3 months ago (2014-09-16 18:17:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/574663003/100001
6 years, 3 months ago (2014-09-16 18:49:05 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 4d9f7c295531ab4a9b8bdc8445a412c70e90e0db
6 years, 3 months ago (2014-09-16 22:26:54 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 22:27:36 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6ac057568ad9411ab26784ec2bf72f9ae8cfa475
Cr-Commit-Position: refs/heads/master@{#295160}

Powered by Google App Engine
This is Rietveld 408576698