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

Side by Side Diff: webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 143263014: Cleanup GrGLInterface factories in Chromium in order to remove old names and workaround code in Ski… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to ToT Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_bindings_skia_in_process.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_skia_in_process.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698