diff options
author | hendrikw <hendrikw@chromium.org> | 2015-08-05 13:17:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-05 20:17:42 +0000 |
commit | 0f8de4a5c189bf0bde032657d3d715bae46def2f (patch) | |
tree | e9a0c8c3475ac58f3ad462c65c5c137dcf5e6032 /gpu/command_buffer/build_gles2_cmd_buffer.py | |
parent | 5612b1032ded056a736d7877dc9748ecb47bcc9b (diff) | |
download | chromium_src-0f8de4a5c189bf0bde032657d3d715bae46def2f.zip chromium_src-0f8de4a5c189bf0bde032657d3d715bae46def2f.tar.gz chromium_src-0f8de4a5c189bf0bde032657d3d715bae46def2f.tar.bz2 |
gpu: Add calling convention for win32
I'm in the process of making a command buffer gles2 dll that can be consumed
by skia. Skia, on windows 32, uses __stdcall for it's gl functions, so to
expose the gl interface to skia, we need to be using the same calling
convention.
Angle and GL both use __stdcall on win32.
Review URL: https://codereview.chromium.org/1260253003
Cr-Commit-Position: refs/heads/master@{#341953}
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-x | gpu/command_buffer/build_gles2_cmd_buffer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 8c84b1f..b53cb45 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -4741,7 +4741,7 @@ TEST_P(%(test_name)s, %(name)sInvalidArgs%(arg_index)d_%(value_index)d) { f.write("\n") def WriteGLES2CLibImplementation(self, func, f): - f.write("%s GLES2%s(%s) {\n" % + f.write("%s GL_APIENTRY GLES2%s(%s) {\n" % (func.return_type, func.name, func.MakeTypedOriginalArgString(""))) result_string = "return " |