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

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

Issue 54463007: Expose GLES2Interface to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h ('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 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 unmapBufferCHROMIUM(WGC3Denum target) { 1129 unmapBufferCHROMIUM(WGC3Denum target) {
1130 ClearContext(); 1130 ClearContext();
1131 return gl_->UnmapBufferCHROMIUM(target); 1131 return gl_->UnmapBufferCHROMIUM(target);
1132 } 1132 }
1133 1133
1134 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl:: 1134 GrGLInterface* WebGraphicsContext3DInProcessCommandBufferImpl::
1135 createGrGLInterface() { 1135 createGrGLInterface() {
1136 return CreateCommandBufferSkiaGLBinding(); 1136 return CreateCommandBufferSkiaGLBinding();
1137 } 1137 }
1138 1138
1139 ::gpu::gles2::GLES2Interface*
1140 WebGraphicsContext3DInProcessCommandBufferImpl::GetGLInterface() {
1141 return gl_;
1142 }
1143
1139 ::gpu::ContextSupport* 1144 ::gpu::ContextSupport*
1140 WebGraphicsContext3DInProcessCommandBufferImpl::GetContextSupport() { 1145 WebGraphicsContext3DInProcessCommandBufferImpl::GetContextSupport() {
1141 return gl_; 1146 return gl_;
1142 } 1147 }
1143 1148
1144 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() { 1149 void WebGraphicsContext3DInProcessCommandBufferImpl::OnContextLost() {
1145 // TODO(kbr): improve the precision here. 1150 // TODO(kbr): improve the precision here.
1146 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1151 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1147 if (context_lost_callback_) { 1152 if (context_lost_callback_) {
1148 context_lost_callback_->onContextLost(); 1153 context_lost_callback_->onContextLost();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1206
1202 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM, 1207 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM,
1203 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei, 1208 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei,
1204 WGC3Denum, WGC3Denum, const void*) 1209 WGC3Denum, WGC3Denum, const void*)
1205 1210
1206 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, 1211 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM,
1207 WGC3Denum) 1212 WGC3Denum)
1208 1213
1209 } // namespace gpu 1214 } // namespace gpu
1210 } // namespace webkit 1215 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698