| OLD | NEW |
| 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 "third_party/khronos/GLES2/gl2.h" | 11 #include "gpu/GLES2/gl2.h" |
| 12 #include "third_party/khronos/GLES2/gl2ext.h" | 12 #include "gpu/GLES2/gl2ext.h" |
| 13 |
| 13 #include "third_party/skia/include/gpu/GrGLInterface.h" | 14 #include "third_party/skia/include/gpu/GrGLInterface.h" |
| 14 | 15 |
| 15 namespace webkit_glue { | 16 namespace webkit_glue { |
| 16 | 17 |
| 17 GrGLInterface* CreateCommandBufferSkiaGLBinding() { | 18 GrGLInterface* CreateCommandBufferSkiaGLBinding() { |
| 18 GrGLInterface* interface = new GrGLInterface; | 19 GrGLInterface* interface = new GrGLInterface; |
| 19 interface->fBindingsExported = kES2_GrGLBinding; | 20 interface->fBindingsExported = kES2_GrGLBinding; |
| 20 interface->fActiveTexture = glActiveTexture; | 21 interface->fActiveTexture = glActiveTexture; |
| 21 interface->fAttachShader = glAttachShader; | 22 interface->fAttachShader = glAttachShader; |
| 22 interface->fBindAttribLocation = glBindAttribLocation; | 23 interface->fBindAttribLocation = glBindAttribLocation; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 glGetFramebufferAttachmentParameteriv; | 112 glGetFramebufferAttachmentParameteriv; |
| 112 interface->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv; | 113 interface->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv; |
| 113 interface->fRenderbufferStorage = glRenderbufferStorage; | 114 interface->fRenderbufferStorage = glRenderbufferStorage; |
| 114 interface->fRenderbufferStorageMultisample = | 115 interface->fRenderbufferStorageMultisample = |
| 115 glRenderbufferStorageMultisampleEXT; | 116 glRenderbufferStorageMultisampleEXT; |
| 116 interface->fBlitFramebuffer = glBlitFramebufferEXT; | 117 interface->fBlitFramebuffer = glBlitFramebufferEXT; |
| 117 return interface; | 118 return interface; |
| 118 } | 119 } |
| 119 | 120 |
| 120 } // namespace webkit_glue | 121 } // namespace webkit_glue |
| 122 |
| OLD | NEW |