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

Side by Side Diff: gpu/pgl/pgl.h

Issue 553050: Windows now uses the TLS API instead of __declspec(thread) for client side co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef GPU_PGL_PGL_H 5 #ifndef GPU_PGL_PGL_H
6 #define GPU_PGL_PGL_H 6 #define GPU_PGL_PGL_H
7 7
8 #include "npapi.h" 8 #include "npapi.h"
9 #include "npapi_extensions.h" 9 #include "npapi_extensions.h"
10 10
11 #ifdef __cplusplus 11 #ifdef __cplusplus
12 extern "C" { 12 extern "C" {
13 #endif 13 #endif
14 14
15 typedef void* PGLContext; 15 typedef void* PGLContext;
16 typedef bool PGLBoolean; 16 typedef bool PGLBoolean;
17 17
18 // Initialize the PGL library. This must have completed before any other PGL
19 // functions are invoked.
20 PGLBoolean pglInitialize();
21
22 // Terminate the PGL library. This must be called after any other PGL functions
23 // have completed.
24 PGLBoolean pglTerminate();
25
18 // Create A PGL context from a Pepper 3D device context. 26 // Create A PGL context from a Pepper 3D device context.
19 PGLContext pglCreateContext(NPP npp, 27 PGLContext pglCreateContext(NPP npp,
20 NPDevice* device, 28 NPDevice* device,
21 NPDeviceContext3D* device_context); 29 NPDeviceContext3D* device_context);
22 30
23 // Set the current PGL context for the calling thread. 31 // Set the current PGL context for the calling thread.
24 PGLBoolean pglMakeCurrent(PGLContext pgl_context); 32 PGLBoolean pglMakeCurrent(PGLContext pgl_context);
25 33
26 // Get the calling thread's current PGL context. 34 // Get the calling thread's current PGL context.
27 PGLContext pglGetCurrentContext(void); 35 PGLContext pglGetCurrentContext(void);
28 36
29 // Display everything that has been rendered since the last call. 37 // Display everything that has been rendered since the last call.
30 PGLBoolean pglSwapBuffers(void); 38 PGLBoolean pglSwapBuffers(void);
31 39
32 // Destroy the given PGL context. 40 // Destroy the given PGL context.
33 PGLBoolean pglDestroyContext(PGLContext pgl_context); 41 PGLBoolean pglDestroyContext(PGLContext pgl_context);
34 42
35 #ifdef __cplusplus 43 #ifdef __cplusplus
36 } // extern "C" 44 } // extern "C"
37 #endif 45 #endif
38 46
39 #endif // GPU_PGL_PGL_H 47 #endif // GPU_PGL_PGL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698