|
|
Chromium Code Reviews
Descriptionuse skia cgimage->bitmap routine
In particular, this removes a dependency on PlatformCanvas ...
BUG=675977
Committed: https://crrev.com/ccc2155e4e16cf6b71707d97517a14625fc8c65f
Cr-Commit-Position: refs/heads/master@{#440667}
Patch Set 1 #
Total comments: 2
Patch Set 2 : check return value #
Total comments: 4
Patch Set 3 : bm -> bitmap #Patch Set 4 : rebase #Messages
Total messages: 35 (23 generated)
The CQ bit was checked by reed@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
reed@google.com changed reviewers: + dcheng@chromium.org, fmalita@chromium.org
Description was changed from ========== use skia cgimage->bitmap routine BUG=675977 ========== to ========== use skia cgimage->bitmap routine In particular, this removes a dependency on PlatformCanvas ... BUG=675977 ==========
reed@google.com changed reviewers: + rohitrao@chromium.org
not sure why the old code differed from the ios version ...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2595113002/diff/1/skia/ext/skia_utils_mac.mm File skia/ext/skia_utils_mac.mm (right): https://codereview.chromium.org/2595113002/diff/1/skia/ext/skia_utils_mac.mm#... skia/ext/skia_utils_mac.mm:189: (void)SkCreateBitmapFromCGImage(&bm, image); I don't think I'm an owner for this code, but in Chrome: - I think we usually don't explicitly ignore a return value unless it's marked WARN_UNUSED_RESULT - If we do want to explicit ignore it, we use base::ignore_result (not to be confused with base::IgnoreResult... ugh, naming) to make it obvious.
https://codereview.chromium.org/2595113002/diff/1/skia/ext/skia_utils_mac.mm File skia/ext/skia_utils_mac.mm (right): https://codereview.chromium.org/2595113002/diff/1/skia/ext/skia_utils_mac.mm#... skia/ext/skia_utils_mac.mm:189: (void)SkCreateBitmapFromCGImage(&bm, image); On 2016/12/21 20:54:51, dcheng wrote: > I don't think I'm an owner for this code, but in Chrome: > - I think we usually don't explicitly ignore a return value unless it's marked > WARN_UNUSED_RESULT > - If we do want to explicit ignore it, we use base::ignore_result (not to be > confused with base::IgnoreResult... ugh, naming) to make it obvious. Done.
The CQ bit was checked by reed@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM https://codereview.chromium.org/2595113002/diff/20001/skia/ext/skia_utils_mac.mm File skia/ext/skia_utils_mac.mm (right): https://codereview.chromium.org/2595113002/diff/20001/skia/ext/skia_utils_mac... skia/ext/skia_utils_mac.mm:187: SkBitmap bm; Nit: bitmap https://codereview.chromium.org/2595113002/diff/20001/skia/ext/skia_utils_mac... skia/ext/skia_utils_mac.mm:190: return SkBitmap(); This is technically unnecessary, since SkCreateBitmapFromCGImage() states that it leaves the original SkBitmap untouched. TBH, I'm uncertain what the value of the return value here is; I could only find one caller, and they don't even check the return value.
https://codereview.chromium.org/2595113002/diff/20001/skia/ext/skia_utils_mac.mm File skia/ext/skia_utils_mac.mm (right): https://codereview.chromium.org/2595113002/diff/20001/skia/ext/skia_utils_mac... skia/ext/skia_utils_mac.mm:187: SkBitmap bm; On 2016/12/21 22:37:22, dcheng wrote: > Nit: bitmap Done. https://codereview.chromium.org/2595113002/diff/20001/skia/ext/skia_utils_mac... skia/ext/skia_utils_mac.mm:190: return SkBitmap(); On 2016/12/21 22:37:22, dcheng wrote: > This is technically unnecessary, since SkCreateBitmapFromCGImage() states that > it leaves the original SkBitmap untouched. TBH, I'm uncertain what the value of > the return value here is; I could only find one caller, and they don't even > check the return value. It is a convenience if the caller wants to know if it failed, without having to also check the out-parameter afterwards.
The CQ bit was checked by reed@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by reed@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2595113002/#ps40001 (title: "bm -> bitmap")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by reed@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from fmalita@chromium.org, dcheng@chromium.org Link to the patchset: https://codereview.chromium.org/2595113002/#ps60001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1482584902122710,
"parent_rev": "bdc118534e6cd109e2b89a7cd031508b9b98ad86", "commit_rev":
"b61546c36448c856a99347e67e5d61cfefa57292"}
Message was sent while issue was closed.
Description was changed from ========== use skia cgimage->bitmap routine In particular, this removes a dependency on PlatformCanvas ... BUG=675977 ========== to ========== use skia cgimage->bitmap routine In particular, this removes a dependency on PlatformCanvas ... BUG=675977 Review-Url: https://codereview.chromium.org/2595113002 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== use skia cgimage->bitmap routine In particular, this removes a dependency on PlatformCanvas ... BUG=675977 Review-Url: https://codereview.chromium.org/2595113002 ========== to ========== use skia cgimage->bitmap routine In particular, this removes a dependency on PlatformCanvas ... BUG=675977 Committed: https://crrev.com/ccc2155e4e16cf6b71707d97517a14625fc8c65f Cr-Commit-Position: refs/heads/master@{#440667} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/ccc2155e4e16cf6b71707d97517a14625fc8c65f Cr-Commit-Position: refs/heads/master@{#440667} |
