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

Issue 2106843002: Remove unsafe cast from ImageTransportSurfaceOverlayMac::ScheduleCALayer. (Closed)

Created:
4 years, 5 months ago by erikchen
Modified:
4 years, 5 months ago
Reviewers:
piman, ccameron
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unsafe cast from ImageTransportSurfaceOverlayMac::ScheduleCALayer. Create an enum class Type in GLImage, which allows for safe downcasting. BUG=619698 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/ccd5fbaca5867773830b38ea64c2a79f932f6478 Cr-Commit-Position: refs/heads/master@{#402582}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments from piman. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -12 lines) Patch
M gpu/ipc/service/image_transport_surface_overlay_mac.mm View 1 3 chunks +18 lines, -12 lines 1 comment Download
M ui/gl/gl_image.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/gl/gl_image.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/gl_image_io_surface.mm View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (14 generated)
erikchen
piman: Please review.
4 years, 5 months ago (2016-06-28 16:07:21 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106843002/1
4 years, 5 months ago (2016-06-28 16:08:58 UTC) #5
piman
https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_transport_surface_overlay_mac.mm File gpu/ipc/service/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_transport_surface_overlay_mac.mm#newcode352 gpu/ipc/service/image_transport_surface_overlay_mac.mm:352: } else return false? Or is it ok/meaningful to ...
4 years, 5 months ago (2016-06-28 17:28:36 UTC) #6
erikchen
https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_transport_surface_overlay_mac.mm File gpu/ipc/service/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_transport_surface_overlay_mac.mm#newcode352 gpu/ipc/service/image_transport_surface_overlay_mac.mm:352: } On 2016/06/28 17:28:35, piman wrote: > else return ...
4 years, 5 months ago (2016-06-28 17:36:08 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106843002/20001
4 years, 5 months ago (2016-06-28 17:36:57 UTC) #9
piman
LGTM, and thanks!
4 years, 5 months ago (2016-06-28 18:12:58 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/193131)
4 years, 5 months ago (2016-06-28 18:22:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106843002/20001
4 years, 5 months ago (2016-06-28 18:56:58 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/246819)
4 years, 5 months ago (2016-06-28 19:24:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106843002/20001
4 years, 5 months ago (2016-06-28 19:35:28 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_optional_gpu_tests_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/1556)
4 years, 5 months ago (2016-06-28 19:51:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106843002/20001
4 years, 5 months ago (2016-06-28 20:32:57 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_optional_gpu_tests_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_optional_gpu_tests_rel/builds/1023)
4 years, 5 months ago (2016-06-28 20:59:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106843002/20001
4 years, 5 months ago (2016-06-28 21:03:51 UTC) #26
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-06-28 22:50:43 UTC) #27
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ccd5fbaca5867773830b38ea64c2a79f932f6478 Cr-Commit-Position: refs/heads/master@{#402582}
4 years, 5 months ago (2016-06-28 22:53:47 UTC) #29
pdr.
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2104393003/ by pdr@chromium.org. ...
4 years, 5 months ago (2016-06-30 00:04:21 UTC) #30
ccameron
4 years, 5 months ago (2016-06-30 02:48:35 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/2106843002/diff/20001/gpu/ipc/service/image_t...
File gpu/ipc/service/image_transport_surface_overlay_mac.mm (right):

https://codereview.chromium.org/2106843002/diff/20001/gpu/ipc/service/image_t...
gpu/ipc/service/image_transport_surface_overlay_mac.mm:348: return false;
|io_surface_image| will be null for solid color layers. We should also issue an
error message when this happens.

Powered by Google App Engine
This is Rietveld 408576698