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

Issue 2588263005: Change GLGetProcAddress typedef to function returning function pointer (Closed)

Created:
4 years ago by jbauman
Modified:
3 years, 11 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change GLGetProcAddress typedef to function returning function pointer This function is actually defined to return function pointers, not void*. It's undefined behavior to call this from a variable of the wrong type. It's also undefined behavior to cast between a function pointer and a void*, so we should try to avoid that. BUG=675104 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/7fd0040966be7c3ba0fc0dda7a6b39e91a845906 Cr-Commit-Position: refs/heads/master@{#441505}

Patch Set 1 #

Patch Set 2 : fix more void* usage #

Patch Set 3 : fix types in other places #

Patch Set 4 : fix cast #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+660 lines, -498 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M ui/gl/generate_bindings.py View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M ui/gl/gl_api_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M ui/gl/gl_bindings_autogen_mock.cc View 1 2 1 chunk +623 lines, -475 lines 0 comments Download
M ui/gl/gl_implementation.h View 1 2 chunks +4 lines, -3 lines 1 comment Download
M ui/gl/gl_implementation.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gl/gl_mock.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M ui/gl/glx_api_unittest.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ui/gl/wgl_api_unittest.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M ui/ozone/platform/cast/surface_factory_cast.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (26 generated)
jbauman
4 years ago (2016-12-21 02:21:18 UTC) #18
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2588263005/diff/60001/ui/gl/gl_implementation.h File ui/gl/gl_implementation.h (right): https://codereview.chromium.org/2588263005/diff/60001/ui/gl/gl_implementation.h#newcode38 ui/gl/gl_implementation.h:38: using GLFunctionPointerType = void (*)(); Is it OK that ...
4 years ago (2016-12-21 16:45:17 UTC) #21
jbauman
On 2016/12/21 16:45:17, Ken Russell wrote: > https://codereview.chromium.org/2588263005/diff/60001/ui/gl/gl_implementation.h > File ui/gl/gl_implementation.h (right): > > https://codereview.chromium.org/2588263005/diff/60001/ui/gl/gl_implementation.h#newcode38 ...
4 years ago (2016-12-21 21:38:46 UTC) #22
Ken Russell (switch to Gerrit)
On 2016/12/21 21:38:46, jbauman wrote: > On 2016/12/21 16:45:17, Ken Russell wrote: > > > ...
4 years ago (2016-12-21 22:29:56 UTC) #23
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/2588263005/60001
4 years ago (2016-12-21 22:41:50 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/331151)
4 years ago (2016-12-21 22:52:36 UTC) #27
jbauman
halliwell@: ui/ozone/platform/cast OWNERS review.
4 years ago (2016-12-21 23:33:19 UTC) #29
halliwell
On 2016/12/21 23:33:19, jbauman wrote: > halliwell@: ui/ozone/platform/cast OWNERS review. lgtm
3 years, 12 months ago (2016-12-27 14:35:38 UTC) #30
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/2588263005/60001
3 years, 11 months ago (2017-01-04 22:27:19 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-04 23:27:47 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 23:29:50 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7fd0040966be7c3ba0fc0dda7a6b39e91a845906
Cr-Commit-Position: refs/heads/master@{#441505}

Powered by Google App Engine
This is Rietveld 408576698