OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" | 5 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" |
6 | 6 |
7 #ifndef GL_GLEXT_PROTOTYPES | 7 #ifndef GL_GLEXT_PROTOTYPES |
8 #define GL_GLEXT_PROTOTYPES | 8 #define GL_GLEXT_PROTOTYPES |
9 #endif | 9 #endif |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 functions->fGenFramebuffers = glGenFramebuffers; | 137 functions->fGenFramebuffers = glGenFramebuffers; |
138 functions->fGenRenderbuffers = glGenRenderbuffers; | 138 functions->fGenRenderbuffers = glGenRenderbuffers; |
139 functions->fGetFramebufferAttachmentParameteriv = | 139 functions->fGetFramebufferAttachmentParameteriv = |
140 glGetFramebufferAttachmentParameteriv; | 140 glGetFramebufferAttachmentParameteriv; |
141 functions->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv; | 141 functions->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv; |
142 functions->fRenderbufferStorage = glRenderbufferStorage; | 142 functions->fRenderbufferStorage = glRenderbufferStorage; |
143 functions->fRenderbufferStorageMultisample = | 143 functions->fRenderbufferStorageMultisample = |
144 glRenderbufferStorageMultisampleCHROMIUM; | 144 glRenderbufferStorageMultisampleCHROMIUM; |
145 functions->fRenderbufferStorageMultisampleES2EXT = | 145 functions->fRenderbufferStorageMultisampleES2EXT = |
146 glRenderbufferStorageMultisampleEXT; | 146 glRenderbufferStorageMultisampleEXT; |
| 147 functions->fBindFragDataLocation = glBindFragDataLocationEXT; |
| 148 functions->fBindFragDataLocationIndexed = glBindFragDataLocationIndexedEXT; |
147 functions->fBindUniformLocation = glBindUniformLocationCHROMIUM; | 149 functions->fBindUniformLocation = glBindUniformLocationCHROMIUM; |
148 functions->fBlitFramebuffer = glBlitFramebufferCHROMIUM; | 150 functions->fBlitFramebuffer = glBlitFramebufferCHROMIUM; |
149 functions->fGenerateMipmap = glGenerateMipmap; | 151 functions->fGenerateMipmap = glGenerateMipmap; |
150 if (false) { | 152 if (false) { |
151 // These are disabled until the full extension is implemented. | 153 // These are disabled until the full extension is implemented. |
152 // Otherwise the interface fails validation and the context can not | 154 // Otherwise the interface fails validation and the context can not |
153 // be created. | 155 // be created. |
154 functions->fMatrixLoadf = glMatrixLoadfCHROMIUM; | 156 functions->fMatrixLoadf = glMatrixLoadfCHROMIUM; |
155 functions->fMatrixLoadIdentity = glMatrixLoadIdentityCHROMIUM; | 157 functions->fMatrixLoadIdentity = glMatrixLoadIdentityCHROMIUM; |
156 functions->fPathCommands = glPathCommandsCHROMIUM; | 158 functions->fPathCommands = glPathCommandsCHROMIUM; |
(...skipping 21 matching lines...) Expand all Loading... |
178 glStencilThenCoverStrokePathInstancedCHROMIUM; | 180 glStencilThenCoverStrokePathInstancedCHROMIUM; |
179 functions->fProgramPathFragmentInputGen = | 181 functions->fProgramPathFragmentInputGen = |
180 glProgramPathFragmentInputGenCHROMIUM; | 182 glProgramPathFragmentInputGenCHROMIUM; |
181 functions->fBindFragmentInputLocation = glBindFragmentInputLocationCHROMIUM; | 183 functions->fBindFragmentInputLocation = glBindFragmentInputLocationCHROMIUM; |
182 } | 184 } |
183 | 185 |
184 return interface; | 186 return interface; |
185 } | 187 } |
186 | 188 |
187 } // namespace skia | 189 } // namespace skia |
OLD | NEW |