OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.
h" | 5 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.
h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
8 #ifndef GL_GLEXT_PROTOTYPES | 8 #ifndef GL_GLEXT_PROTOTYPES |
9 #define GL_GLEXT_PROTOTYPES 1 | 9 #define GL_GLEXT_PROTOTYPES 1 |
10 #endif | 10 #endif |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 } | 1094 } |
1095 | 1095 |
1096 WGC3Dboolean WebGraphicsContext3DInProcessCommandBufferImpl:: | 1096 WGC3Dboolean WebGraphicsContext3DInProcessCommandBufferImpl:: |
1097 unmapBufferCHROMIUM(WGC3Denum target) { | 1097 unmapBufferCHROMIUM(WGC3Denum target) { |
1098 ClearContext(); | 1098 ClearContext(); |
1099 return gl_->UnmapBufferCHROMIUM(target); | 1099 return gl_->UnmapBufferCHROMIUM(target); |
1100 } | 1100 } |
1101 | 1101 |
1102 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: | 1102 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: |
1103 createGrGLInterface() { | 1103 createGrGLInterface() { |
| 1104 makeContextCurrent(); |
1104 return skia_bindings::CreateCommandBufferSkiaGLBinding(); | 1105 return skia_bindings::CreateCommandBufferSkiaGLBinding(); |
1105 } | 1106 } |
1106 | 1107 |
1107 ::gpu::gles2::GLES2Interface* | 1108 ::gpu::gles2::GLES2Interface* |
1108 WebGraphicsContext3DInProcessCommandBufferImpl::GetGLInterface() { | 1109 WebGraphicsContext3DInProcessCommandBufferImpl::GetGLInterface() { |
1109 return gl_; | 1110 return gl_; |
1110 } | 1111 } |
1111 | 1112 |
1112 ::gpu::ContextSupport* | 1113 ::gpu::ContextSupport* |
1113 WebGraphicsContext3DInProcessCommandBufferImpl::GetContextSupport() { | 1114 WebGraphicsContext3DInProcessCommandBufferImpl::GetContextSupport() { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 | 1180 |
1180 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM, | 1181 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM, |
1181 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei, | 1182 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei, |
1182 WGC3Denum, WGC3Denum, const void*) | 1183 WGC3Denum, WGC3Denum, const void*) |
1183 | 1184 |
1184 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, | 1185 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, |
1185 WGC3Denum) | 1186 WGC3Denum) |
1186 | 1187 |
1187 } // namespace gpu | 1188 } // namespace gpu |
1188 } // namespace webkit | 1189 } // namespace webkit |
OLD | NEW |