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

Issue 373383003: ios fixes (Closed)

Created:
6 years, 5 months ago by caryclark
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

ios fixes skia_ios.mm Get the app's Documents directory and pass use it to set the resource path. This is a quick hack which will be replaced by a new application that is a tiny shim around a command line tool. SkImageEncoder.h SkForceLinking.cpp SkImageDecoder_CG.cpp Add support for FORCE_LINKING so iOS sees the PNG encoder and others. SkFloatBits.cpp SkPoint.cpp Handle denormalized numbers that are floored by the iOS ARM processor. SkImageDecoder_iOS.mm Remove empty encoder factory. SkTouchGesture.cpp Return early on empty state on touch rather than aborting (crashing) JpegTest.cpp Hal via stackoverflow.com says partial jpegs can be gray as well. skia_test.cpp Remove crash handler call for now to avoid link failure. OverwriteLine.h Remove fancy line overwrite for iOS. Resources.cpp Add interface to set resource directory based on runtime query. BUG=skia:2736 skia:2737 skia:2738 Committed: https://skia.googlesource.com/skia/+/936b73424f7393994be832376287da988a52b993

Patch Set 1 #

Patch Set 2 : remove temp directory hack #

Total comments: 6

Patch Set 3 : give shell its own gyp file #

Total comments: 6

Patch Set 4 : address comments; remove debug printfs #

Patch Set 5 : address comments; remove debug printfs #

Patch Set 6 : only build gyp on ios #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -8 lines) Patch
M experimental/iOSSampleApp/Shared/skia_ios.mm View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
A + experimental/iOSShell/iOSShell-Info.plist View 1 2 1 chunk +1 line, -1 line 0 comments Download
A gyp/iOSShell.gyp View 1 2 3 4 5 1 chunk +85 lines, -0 lines 0 comments Download
M gyp/most.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkImageEncoder.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkFloatBits.cpp View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M src/core/SkMathPriv.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkPoint.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M src/images/SkForceLinking.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ports/SkImageDecoder_CG.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M src/utils/ios/SkImageDecoder_iOS.mm View 1 chunk +0 lines, -3 lines 0 comments Download
M src/views/SkTouchGesture.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M tests/JpegTest.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/OverwriteLine.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/Resources.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/Resources.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/flags/SkCommandLineFlags.h View 1 chunk +4 lines, -0 lines 0 comments Download
A tools/iOSShell.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A tools/iOSShell.cpp View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
caryclark
6 years, 5 months ago (2014-07-10 17:23:38 UTC) #1
reed1
https://codereview.chromium.org/373383003/diff/20001/src/core/SkFloatBits.cpp File src/core/SkFloatBits.cpp (right): https://codereview.chromium.org/373383003/diff/20001/src/core/SkFloatBits.cpp#newcode89 src/core/SkFloatBits.cpp:89: if (exp > 149) return 0; Can we perhaps ...
6 years, 5 months ago (2014-07-10 18:39:39 UTC) #2
caryclark
https://codereview.chromium.org/373383003/diff/20001/src/core/SkFloatBits.cpp File src/core/SkFloatBits.cpp (right): https://codereview.chromium.org/373383003/diff/20001/src/core/SkFloatBits.cpp#newcode89 src/core/SkFloatBits.cpp:89: if (exp > 149) return 0; On 2014/07/10 18:39:39, ...
6 years, 5 months ago (2014-07-10 21:07:03 UTC) #3
caryclark
This rev of the CL adds a new gyp specific to iOS. Before, it hacked ...
6 years, 5 months ago (2014-07-10 21:09:12 UTC) #4
reed1
api lgtm https://codereview.chromium.org/373383003/diff/30001/src/core/SkFloatBits.cpp File src/core/SkFloatBits.cpp (right): https://codereview.chromium.org/373383003/diff/30001/src/core/SkFloatBits.cpp#newcode92 src/core/SkFloatBits.cpp:92: if (exp > 149) return 0; nit: ...
6 years, 5 months ago (2014-07-10 21:40:05 UTC) #5
tfarina
https://codereview.chromium.org/373383003/diff/30001/tools/Resources.h File tools/Resources.h (right): https://codereview.chromium.org/373383003/diff/30001/tools/Resources.h#newcode14 tools/Resources.h:14: void SetResourcePath(const char* ); where do you use this ...
6 years, 5 months ago (2014-07-11 00:59:25 UTC) #6
caryclark
https://codereview.chromium.org/373383003/diff/30001/src/core/SkFloatBits.cpp File src/core/SkFloatBits.cpp (right): https://codereview.chromium.org/373383003/diff/30001/src/core/SkFloatBits.cpp#newcode92 src/core/SkFloatBits.cpp:92: if (exp > 149) return 0; On 2014/07/10 21:40:05, ...
6 years, 5 months ago (2014-07-11 12:57:20 UTC) #7
caryclark
The CQ bit was checked by caryclark@google.com
6 years, 5 months ago (2014-07-11 18:43:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/caryclark@google.com/373383003/90001
6 years, 5 months ago (2014-07-11 18:43:33 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 19:14:55 UTC) #10
Message was sent while issue was closed.
Change committed as 936b73424f7393994be832376287da988a52b993

Powered by Google App Engine
This is Rietveld 408576698