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

Side by Side Diff: gpu/gles2_conform_support/egl/egl.cc

Issue 1260253003: gpu: Add calling convention for win32 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another merge Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/client/gles2_lib.h ('k') | mojo/gles2/gles2_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <EGL/egl.h> 5 #include <EGL/egl.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "gpu/command_buffer/client/gles2_lib.h" 8 #include "gpu/command_buffer/client/gles2_lib.h"
9 #include "gpu/gles2_conform_support/egl/display.h" 9 #include "gpu/gles2_conform_support/egl/display.h"
10 #include "ui/gl/gl_context.h" 10 #include "ui/gl/gl_context.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 392
393 EGLBoolean eglCopyBuffers(EGLDisplay dpy, 393 EGLBoolean eglCopyBuffers(EGLDisplay dpy,
394 EGLSurface surface, 394 EGLSurface surface,
395 EGLNativePixmapType target) { 395 EGLNativePixmapType target) {
396 return EGL_FALSE; 396 return EGL_FALSE;
397 } 397 }
398 398
399 /* Now, define eglGetProcAddress using the generic function ptr. type */ 399 /* Now, define eglGetProcAddress using the generic function ptr. type */
400 __eglMustCastToProperFunctionPointerType 400 __eglMustCastToProperFunctionPointerType
401 eglGetProcAddress(const char* procname) { 401 eglGetProcAddress(const char* procname) {
402 return gles2::GetGLFunctionPointer(procname); 402 return reinterpret_cast<__eglMustCastToProperFunctionPointerType>(
403 gles2::GetGLFunctionPointer(procname));
403 } 404 }
404 } // extern "C" 405 } // extern "C"
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_lib.h ('k') | mojo/gles2/gles2_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698