summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2015-08-05 13:17:06 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-05 20:17:42 +0000
commit0f8de4a5c189bf0bde032657d3d715bae46def2f (patch)
treee9a0c8c3475ac58f3ad462c65c5c137dcf5e6032 /gpu/command_buffer/build_gles2_cmd_buffer.py
parent5612b1032ded056a736d7877dc9748ecb47bcc9b (diff)
downloadchromium_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-xgpu/command_buffer/build_gles2_cmd_buffer.py2
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 "