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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 void WebGraphicsContext3DInProcessCommandBufferImpl::discardFramebufferEXT( | 395 void WebGraphicsContext3DInProcessCommandBufferImpl::discardFramebufferEXT( |
396 WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) { | 396 WGC3Denum target, WGC3Dsizei numAttachments, const WGC3Denum* attachments) { |
397 gl_->DiscardFramebufferEXT(target, numAttachments, attachments); | 397 gl_->DiscardFramebufferEXT(target, numAttachments, attachments); |
398 } | 398 } |
399 | 399 |
400 void WebGraphicsContext3DInProcessCommandBufferImpl:: | 400 void WebGraphicsContext3DInProcessCommandBufferImpl:: |
401 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { | 401 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { |
402 NOTIMPLEMENTED(); | 402 NOTIMPLEMENTED(); |
403 } | 403 } |
404 | 404 |
405 void WebGraphicsContext3DInProcessCommandBufferImpl:: | |
406 rateLimitOffscreenContextCHROMIUM() { | |
407 // TODO(gmam): See if we can comment this in. | |
408 // ClearContext(); | |
409 gl_->RateLimitOffscreenContextCHROMIUM(); | |
410 } | |
411 | |
412 blink::WebString WebGraphicsContext3DInProcessCommandBufferImpl:: | 405 blink::WebString WebGraphicsContext3DInProcessCommandBufferImpl:: |
413 getRequestableExtensionsCHROMIUM() { | 406 getRequestableExtensionsCHROMIUM() { |
414 // TODO(gmam): See if we can comment this in. | 407 // TODO(gmam): See if we can comment this in. |
415 // ClearContext(); | 408 // ClearContext(); |
416 return blink::WebString::fromUTF8( | 409 return blink::WebString::fromUTF8( |
417 gl_->GetRequestableExtensionsCHROMIUM()); | 410 gl_->GetRequestableExtensionsCHROMIUM()); |
418 } | 411 } |
419 | 412 |
420 void WebGraphicsContext3DInProcessCommandBufferImpl::requestExtensionCHROMIUM( | 413 void WebGraphicsContext3DInProcessCommandBufferImpl::requestExtensionCHROMIUM( |
421 const char* extension) { | 414 const char* extension) { |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 | 1190 |
1198 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM, | 1191 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM, |
1199 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei, | 1192 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei, WGC3Dsizei, |
1200 WGC3Denum, WGC3Denum, const void*) | 1193 WGC3Denum, WGC3Denum, const void*) |
1201 | 1194 |
1202 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, | 1195 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM, |
1203 WGC3Denum) | 1196 WGC3Denum) |
1204 | 1197 |
1205 } // namespace gpu | 1198 } // namespace gpu |
1206 } // namespace webkit | 1199 } // namespace webkit |
OLD | NEW |