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

Side by Side Diff: webkit/glue/gl_bindings_skia_cmd_buffer.cc

Issue 7706011: Use precompiled headers for most large projects. (Closed) Base URL: ssh://joi@192.168.1.201/home/joi/c/chrome/src@master
Patch Set: Merge to lkgr. Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 5
6 #include "webkit/glue/gl_bindings_skia_cmd_buffer.h" 6 #include "webkit/glue/gl_bindings_skia_cmd_buffer.h"
7 7
8 #ifndef GL_GLEXT_PROTOTYPES 8 #ifndef GL_GLEXT_PROTOTYPES
9 #define GL_GLEXT_PROTOTYPES 9 #define GL_GLEXT_PROTOTYPES
10 #endif 10 #endif
11 #include "gpu/GLES2/gl2.h" 11 #include "gpu/GLES2/gl2.h"
12 #include "gpu/GLES2/gl2ext.h" 12 #include "gpu/GLES2/gl2ext.h"
13 13
14 #include "third_party/skia/gpu/include/GrGLInterface.h" 14 #include "third_party/skia/gpu/include/GrGLInterface.h"
15 15
16 namespace webkit_glue { 16 namespace webkit_glue {
17 17
18 GrGLInterface* CreateCommandBufferSkiaGLBinding() { 18 GrGLInterface* CreateCommandBufferSkiaGLBinding() {
19 GrGLInterface* interface = new GrGLInterface; 19 GrGLInterface* gl_interface = new GrGLInterface;
20 interface->fBindingsExported = kES2_GrGLBinding; 20 gl_interface->fBindingsExported = kES2_GrGLBinding;
21 interface->fActiveTexture = glActiveTexture; 21 gl_interface->fActiveTexture = glActiveTexture;
22 interface->fAttachShader = glAttachShader; 22 gl_interface->fAttachShader = glAttachShader;
23 interface->fBindAttribLocation = glBindAttribLocation; 23 gl_interface->fBindAttribLocation = glBindAttribLocation;
24 interface->fBindBuffer = glBindBuffer; 24 gl_interface->fBindBuffer = glBindBuffer;
25 interface->fBindTexture = glBindTexture; 25 gl_interface->fBindTexture = glBindTexture;
26 interface->fBlendColor = glBlendColor; 26 gl_interface->fBlendColor = glBlendColor;
27 interface->fBlendFunc = glBlendFunc; 27 gl_interface->fBlendFunc = glBlendFunc;
28 interface->fBufferData = glBufferData; 28 gl_interface->fBufferData = glBufferData;
29 interface->fBufferSubData = glBufferSubData; 29 gl_interface->fBufferSubData = glBufferSubData;
30 interface->fClear = glClear; 30 gl_interface->fClear = glClear;
31 interface->fClearColor = glClearColor; 31 gl_interface->fClearColor = glClearColor;
32 interface->fClearStencil = glClearStencil; 32 gl_interface->fClearStencil = glClearStencil;
33 interface->fColorMask = glColorMask; 33 gl_interface->fColorMask = glColorMask;
34 interface->fCompileShader = glCompileShader; 34 gl_interface->fCompileShader = glCompileShader;
35 interface->fCompressedTexImage2D = glCompressedTexImage2D; 35 gl_interface->fCompressedTexImage2D = glCompressedTexImage2D;
36 interface->fCreateProgram = glCreateProgram; 36 gl_interface->fCreateProgram = glCreateProgram;
37 interface->fCreateShader = glCreateShader; 37 gl_interface->fCreateShader = glCreateShader;
38 interface->fCullFace = glCullFace; 38 gl_interface->fCullFace = glCullFace;
39 interface->fDeleteBuffers = glDeleteBuffers; 39 gl_interface->fDeleteBuffers = glDeleteBuffers;
40 interface->fDeleteProgram = glDeleteProgram; 40 gl_interface->fDeleteProgram = glDeleteProgram;
41 interface->fDeleteShader = glDeleteShader; 41 gl_interface->fDeleteShader = glDeleteShader;
42 interface->fDeleteTextures = glDeleteTextures; 42 gl_interface->fDeleteTextures = glDeleteTextures;
43 interface->fDepthMask = glDepthMask; 43 gl_interface->fDepthMask = glDepthMask;
44 interface->fDisable = glDisable; 44 gl_interface->fDisable = glDisable;
45 interface->fDisableVertexAttribArray = glDisableVertexAttribArray; 45 gl_interface->fDisableVertexAttribArray = glDisableVertexAttribArray;
46 interface->fDrawArrays = glDrawArrays; 46 gl_interface->fDrawArrays = glDrawArrays;
47 interface->fDrawElements = glDrawElements; 47 gl_interface->fDrawElements = glDrawElements;
48 interface->fEnable = glEnable; 48 gl_interface->fEnable = glEnable;
49 interface->fEnableVertexAttribArray = glEnableVertexAttribArray; 49 gl_interface->fEnableVertexAttribArray = glEnableVertexAttribArray;
50 interface->fFrontFace = glFrontFace; 50 gl_interface->fFrontFace = glFrontFace;
51 interface->fGenBuffers = glGenBuffers; 51 gl_interface->fGenBuffers = glGenBuffers;
52 interface->fGenTextures = glGenTextures; 52 gl_interface->fGenTextures = glGenTextures;
53 interface->fGetBufferParameteriv = glGetBufferParameteriv; 53 gl_interface->fGetBufferParameteriv = glGetBufferParameteriv;
54 interface->fGetError = glGetError; 54 gl_interface->fGetError = glGetError;
55 interface->fGetIntegerv = glGetIntegerv; 55 gl_interface->fGetIntegerv = glGetIntegerv;
56 interface->fGetProgramInfoLog = glGetProgramInfoLog; 56 gl_interface->fGetProgramInfoLog = glGetProgramInfoLog;
57 interface->fGetProgramiv = glGetProgramiv; 57 gl_interface->fGetProgramiv = glGetProgramiv;
58 interface->fGetShaderInfoLog = glGetShaderInfoLog; 58 gl_interface->fGetShaderInfoLog = glGetShaderInfoLog;
59 interface->fGetShaderiv = glGetShaderiv; 59 gl_interface->fGetShaderiv = glGetShaderiv;
60 interface->fGetString = glGetString; 60 gl_interface->fGetString = glGetString;
61 interface->fGetUniformLocation = glGetUniformLocation; 61 gl_interface->fGetUniformLocation = glGetUniformLocation;
62 interface->fLineWidth = glLineWidth; 62 gl_interface->fLineWidth = glLineWidth;
63 interface->fLinkProgram = glLinkProgram; 63 gl_interface->fLinkProgram = glLinkProgram;
64 interface->fPixelStorei = glPixelStorei; 64 gl_interface->fPixelStorei = glPixelStorei;
65 interface->fReadPixels = glReadPixels; 65 gl_interface->fReadPixels = glReadPixels;
66 interface->fScissor = glScissor; 66 gl_interface->fScissor = glScissor;
67 interface->fShaderSource = glShaderSource; 67 gl_interface->fShaderSource = glShaderSource;
68 interface->fStencilFunc = glStencilFunc; 68 gl_interface->fStencilFunc = glStencilFunc;
69 interface->fStencilFuncSeparate = glStencilFuncSeparate; 69 gl_interface->fStencilFuncSeparate = glStencilFuncSeparate;
70 interface->fStencilMask = glStencilMask; 70 gl_interface->fStencilMask = glStencilMask;
71 interface->fStencilMaskSeparate = glStencilMaskSeparate; 71 gl_interface->fStencilMaskSeparate = glStencilMaskSeparate;
72 interface->fStencilOp = glStencilOp; 72 gl_interface->fStencilOp = glStencilOp;
73 interface->fStencilOpSeparate = glStencilOpSeparate; 73 gl_interface->fStencilOpSeparate = glStencilOpSeparate;
74 interface->fTexImage2D = glTexImage2D; 74 gl_interface->fTexImage2D = glTexImage2D;
75 interface->fTexParameteri = glTexParameteri; 75 gl_interface->fTexParameteri = glTexParameteri;
76 interface->fTexSubImage2D = glTexSubImage2D; 76 gl_interface->fTexSubImage2D = glTexSubImage2D;
77 interface->fUniform1f = glUniform1f; 77 gl_interface->fUniform1f = glUniform1f;
78 interface->fUniform1i = glUniform1i; 78 gl_interface->fUniform1i = glUniform1i;
79 interface->fUniform1fv = glUniform1fv; 79 gl_interface->fUniform1fv = glUniform1fv;
80 interface->fUniform1iv = glUniform1iv; 80 gl_interface->fUniform1iv = glUniform1iv;
81 interface->fUniform2f = glUniform2f; 81 gl_interface->fUniform2f = glUniform2f;
82 interface->fUniform2i = glUniform2i; 82 gl_interface->fUniform2i = glUniform2i;
83 interface->fUniform2fv = glUniform2fv; 83 gl_interface->fUniform2fv = glUniform2fv;
84 interface->fUniform2iv = glUniform2iv; 84 gl_interface->fUniform2iv = glUniform2iv;
85 interface->fUniform3f = glUniform3f; 85 gl_interface->fUniform3f = glUniform3f;
86 interface->fUniform3i = glUniform3i; 86 gl_interface->fUniform3i = glUniform3i;
87 interface->fUniform3fv = glUniform3fv; 87 gl_interface->fUniform3fv = glUniform3fv;
88 interface->fUniform3iv = glUniform3iv; 88 gl_interface->fUniform3iv = glUniform3iv;
89 interface->fUniform4f = glUniform4f; 89 gl_interface->fUniform4f = glUniform4f;
90 interface->fUniform4i = glUniform4i; 90 gl_interface->fUniform4i = glUniform4i;
91 interface->fUniform4fv = glUniform4fv; 91 gl_interface->fUniform4fv = glUniform4fv;
92 interface->fUniform4iv = glUniform4iv; 92 gl_interface->fUniform4iv = glUniform4iv;
93 interface->fUniformMatrix2fv = glUniformMatrix2fv; 93 gl_interface->fUniformMatrix2fv = glUniformMatrix2fv;
94 interface->fUniformMatrix3fv = glUniformMatrix3fv; 94 gl_interface->fUniformMatrix3fv = glUniformMatrix3fv;
95 interface->fUniformMatrix4fv = glUniformMatrix4fv; 95 gl_interface->fUniformMatrix4fv = glUniformMatrix4fv;
96 interface->fUseProgram = glUseProgram; 96 gl_interface->fUseProgram = glUseProgram;
97 interface->fVertexAttrib4fv = glVertexAttrib4fv; 97 gl_interface->fVertexAttrib4fv = glVertexAttrib4fv;
98 interface->fVertexAttribPointer = glVertexAttribPointer; 98 gl_interface->fVertexAttribPointer = glVertexAttribPointer;
99 interface->fViewport = glViewport; 99 gl_interface->fViewport = glViewport;
100 interface->fBindFramebuffer = glBindFramebuffer; 100 gl_interface->fBindFramebuffer = glBindFramebuffer;
101 interface->fBindRenderbuffer = glBindRenderbuffer; 101 gl_interface->fBindRenderbuffer = glBindRenderbuffer;
102 interface->fCheckFramebufferStatus = glCheckFramebufferStatus; 102 gl_interface->fCheckFramebufferStatus = glCheckFramebufferStatus;
103 interface->fDeleteFramebuffers = glDeleteFramebuffers; 103 gl_interface->fDeleteFramebuffers = glDeleteFramebuffers;
104 interface->fDeleteRenderbuffers = glDeleteRenderbuffers; 104 gl_interface->fDeleteRenderbuffers = glDeleteRenderbuffers;
105 interface->fFramebufferRenderbuffer = glFramebufferRenderbuffer; 105 gl_interface->fFramebufferRenderbuffer = glFramebufferRenderbuffer;
106 interface->fFramebufferTexture2D = glFramebufferTexture2D; 106 gl_interface->fFramebufferTexture2D = glFramebufferTexture2D;
107 interface->fGenFramebuffers = glGenFramebuffers; 107 gl_interface->fGenFramebuffers = glGenFramebuffers;
108 interface->fGenRenderbuffers = glGenRenderbuffers; 108 gl_interface->fGenRenderbuffers = glGenRenderbuffers;
109 interface->fGetFramebufferAttachmentParameteriv = 109 gl_interface->fGetFramebufferAttachmentParameteriv =
110 glGetFramebufferAttachmentParameteriv; 110 glGetFramebufferAttachmentParameteriv;
111 interface->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv; 111 gl_interface->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv;
112 interface->fRenderbufferStorage = glRenderbufferStorage; 112 gl_interface->fRenderbufferStorage = glRenderbufferStorage;
113 interface->fRenderbufferStorageMultisample = 113 gl_interface->fRenderbufferStorageMultisample =
114 glRenderbufferStorageMultisampleEXT; 114 glRenderbufferStorageMultisampleEXT;
115 interface->fBlitFramebuffer = glBlitFramebufferEXT; 115 gl_interface->fBlitFramebuffer = glBlitFramebufferEXT;
116 return interface; 116 return gl_interface;
117 } 117 }
118 118
119 } // namespace webkit_glue 119 } // namespace webkit_glue
120 120
OLDNEW
« no previous file with comments | « third_party/libphonenumber/libphonenumber.gyp ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698