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 "gpu/GLES2/gl2extchromium.h" | 11 #include "gpu/GLES2/gl2extchromium.h" |
11 #include "third_party/khronos/GLES2/gl2.h" | 12 #include "third_party/khronos/GLES2/gl2.h" |
12 #include "third_party/khronos/GLES2/gl2ext.h" | 13 #include "third_party/khronos/GLES2/gl2ext.h" |
13 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 14 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
14 | 15 |
15 namespace skia_bindings { | 16 namespace skia_bindings { |
16 | 17 |
17 GrGLInterface* CreateCommandBufferSkiaGLBinding() { | 18 GrGLInterface* CreateCommandBufferSkiaGLBinding() { |
18 GrGLInterface* interface = new GrGLInterface; | 19 GrGLInterface* interface = new GrGLInterface; |
19 interface->fStandard = kGLES_GrGLStandard; | 20 interface->fStandard = kGLES_GrGLStandard; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 functions->fIsPath = glIsPathCHROMIUM; | 160 functions->fIsPath = glIsPathCHROMIUM; |
160 functions->fDeletePaths = glDeletePathsCHROMIUM; | 161 functions->fDeletePaths = glDeletePathsCHROMIUM; |
161 functions->fPathStencilFunc = glPathStencilFuncCHROMIUM; | 162 functions->fPathStencilFunc = glPathStencilFuncCHROMIUM; |
162 functions->fStencilFillPath = glStencilFillPathCHROMIUM; | 163 functions->fStencilFillPath = glStencilFillPathCHROMIUM; |
163 functions->fStencilStrokePath = glStencilStrokePathCHROMIUM; | 164 functions->fStencilStrokePath = glStencilStrokePathCHROMIUM; |
164 functions->fCoverFillPath = glCoverFillPathCHROMIUM; | 165 functions->fCoverFillPath = glCoverFillPathCHROMIUM; |
165 functions->fCoverStrokePath = glCoverStrokePathCHROMIUM; | 166 functions->fCoverStrokePath = glCoverStrokePathCHROMIUM; |
166 functions->fStencilThenCoverFillPath = glStencilThenCoverFillPathCHROMIUM; | 167 functions->fStencilThenCoverFillPath = glStencilThenCoverFillPathCHROMIUM; |
167 functions->fStencilThenCoverStrokePath = | 168 functions->fStencilThenCoverStrokePath = |
168 glStencilThenCoverStrokePathCHROMIUM; | 169 glStencilThenCoverStrokePathCHROMIUM; |
| 170 functions->fStencilFillPathInstanced = glStencilFillPathInstancedCHROMIUM; |
| 171 functions->fStencilStrokePathInstanced = |
| 172 glStencilStrokePathInstancedCHROMIUM; |
| 173 functions->fCoverFillPathInstanced = glCoverFillPathInstancedCHROMIUM; |
| 174 functions->fCoverStrokePathInstanced = glCoverStrokePathInstancedCHROMIUM; |
| 175 functions->fStencilThenCoverFillPathInstanced = |
| 176 glStencilThenCoverFillPathInstancedCHROMIUM; |
| 177 functions->fStencilThenCoverStrokePathInstanced = |
| 178 glStencilThenCoverStrokePathInstancedCHROMIUM; |
169 } | 179 } |
170 | 180 |
171 return interface; | 181 return interface; |
172 } | 182 } |
173 | 183 |
174 } // namespace skia | 184 } // namespace skia |
OLD | NEW |