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

Side by Side Diff: gpu/blink/webgraphicscontext3d_impl.cc

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: media Created 4 years, 9 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
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 "gpu/blink/webgraphicscontext3d_impl.h" 5 #include "gpu/blink/webgraphicscontext3d_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/atomicops.h" 9 #include "base/atomicops.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void WebGraphicsContext3DImpl::setErrorMessageCallback( 197 void WebGraphicsContext3DImpl::setErrorMessageCallback(
198 WebGraphicsContext3D::WebGraphicsErrorMessageCallback* cb) { 198 WebGraphicsContext3D::WebGraphicsErrorMessageCallback* cb) {
199 error_message_callback_ = cb; 199 error_message_callback_ = cb;
200 } 200 }
201 201
202 void WebGraphicsContext3DImpl::setContextLostCallback( 202 void WebGraphicsContext3DImpl::setContextLostCallback(
203 WebGraphicsContext3D::WebGraphicsContextLostCallback* cb) { 203 WebGraphicsContext3D::WebGraphicsContextLostCallback* cb) {
204 context_lost_callback_ = cb; 204 context_lost_callback_ = cb;
205 } 205 }
206 206
207 ::gpu::gles2::GLES2Interface* WebGraphicsContext3DImpl::getGLES2Interface() {
208 return gl_;
209 }
210
211 ::gpu::gles2::GLES2ImplementationErrorMessageCallback* 207 ::gpu::gles2::GLES2ImplementationErrorMessageCallback*
212 WebGraphicsContext3DImpl::getErrorMessageCallback() { 208 WebGraphicsContext3DImpl::getErrorMessageCallback() {
213 if (!client_error_message_callback_) { 209 if (!client_error_message_callback_) {
214 client_error_message_callback_.reset( 210 client_error_message_callback_.reset(
215 new WebGraphicsContext3DErrorMessageCallback(this)); 211 new WebGraphicsContext3DErrorMessageCallback(this));
216 } 212 }
217 return client_error_message_callback_.get(); 213 return client_error_message_callback_.get();
218 } 214 }
219 215
220 void WebGraphicsContext3DImpl::OnErrorMessage( 216 void WebGraphicsContext3DImpl::OnErrorMessage(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2; 258 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_WEBGL2;
263 break; 259 break;
264 default: 260 default:
265 NOTREACHED(); 261 NOTREACHED();
266 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2; 262 output_attribs->context_type = ::gpu::gles2::CONTEXT_TYPE_OPENGLES2;
267 break; 263 break;
268 } 264 }
269 } 265 }
270 266
271 } // namespace gpu_blink 267 } // namespace gpu_blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698