|
|
DescriptionRemove 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
Messages
Total messages: 32 (14 generated)
Description was changed from ========== Remove unsafe cast from ImageTransportSurfaceOverlayMac::ScheduleCALayer. Create an enum class Type in GLImage, which allows for safe downcasting. BUG=619698 ========== to ========== 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 ==========
erikchen@chromium.org changed reviewers: + piman@chromium.org
piman: Please review.
The CQ bit was checked by erikchen@chromium.org 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...
https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_trans... File gpu/ipc/service/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_trans... gpu/ipc/service/image_transport_surface_overlay_mac.mm:352: } else return false? Or is it ok/meaningful to call ScheduleCALayer with a null io_surface/cv_pixel_buffer?
https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_trans... File gpu/ipc/service/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/2106843002/diff/1/gpu/ipc/service/image_trans... gpu/ipc/service/image_transport_surface_overlay_mac.mm:352: } On 2016/06/28 17:28:35, piman wrote: > else return false? Or is it ok/meaningful to call ScheduleCALayer with a null > io_surface/cv_pixel_buffer? Good point. We should return false.
The CQ bit was checked by erikchen@chromium.org 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...
LGTM, and thanks!
The CQ bit was unchecked by commit-bot@chromium.org
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_...)
The CQ bit was checked by erikchen@chromium.org
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: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by erikchen@chromium.org
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: mac_optional_gpu_tests_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_...)
The CQ bit was checked by erikchen@chromium.org
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: linux_optional_gpu_tests_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_optional_...)
The CQ bit was checked by erikchen@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/ccd5fbaca5867773830b38ea64c2a79f932f6478 Cr-Commit-Position: refs/heads/master@{#402582}
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2104393003/ by pdr@chromium.org. The reason for reverting is: Broke 3d transforms, see: https://crbug.com/624256.
Message was sent while issue was closed.
ccameron@chromium.org changed reviewers: + ccameron@chromium.org
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. |