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

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 134343003: Stop using WGC3D entry point for rateLimitOffscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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 "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 5 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
6 6
7 #include "third_party/khronos/GLES2/gl2.h" 7 #include "third_party/khronos/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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 535 }
536 536
537 DELEGATE_TO_GL_3(discardFramebufferEXT, DiscardFramebufferEXT, WGC3Denum, 537 DELEGATE_TO_GL_3(discardFramebufferEXT, DiscardFramebufferEXT, WGC3Denum,
538 WGC3Dsizei, const WGC3Denum*) 538 WGC3Dsizei, const WGC3Denum*)
539 539
540 void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM( 540 void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM(
541 WebGLId texture, WebGLId parentTexture) { 541 WebGLId texture, WebGLId parentTexture) {
542 NOTIMPLEMENTED(); 542 NOTIMPLEMENTED();
543 } 543 }
544 544
545 DELEGATE_TO_GL(rateLimitOffscreenContextCHROMIUM,
546 RateLimitOffscreenContextCHROMIUM)
547
548 blink::WebString WebGraphicsContext3DCommandBufferImpl:: 545 blink::WebString WebGraphicsContext3DCommandBufferImpl::
549 getRequestableExtensionsCHROMIUM() { 546 getRequestableExtensionsCHROMIUM() {
550 return blink::WebString::fromUTF8( 547 return blink::WebString::fromUTF8(
551 gl_->GetRequestableExtensionsCHROMIUM()); 548 gl_->GetRequestableExtensionsCHROMIUM());
552 } 549 }
553 550
554 DELEGATE_TO_GL_1(requestExtensionCHROMIUM, RequestExtensionCHROMIUM, 551 DELEGATE_TO_GL_1(requestExtensionCHROMIUM, RequestExtensionCHROMIUM,
555 const char*) 552 const char*)
556 553
557 void WebGraphicsContext3DCommandBufferImpl::blitFramebufferCHROMIUM( 554 void WebGraphicsContext3DCommandBufferImpl::blitFramebufferCHROMIUM(
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 1369
1373 void WebGraphicsContext3DCommandBufferImpl::OnErrorMessage( 1370 void WebGraphicsContext3DCommandBufferImpl::OnErrorMessage(
1374 const std::string& message, int id) { 1371 const std::string& message, int id) {
1375 if (error_message_callback_) { 1372 if (error_message_callback_) {
1376 blink::WebString str = blink::WebString::fromUTF8(message.c_str()); 1373 blink::WebString str = blink::WebString::fromUTF8(message.c_str());
1377 error_message_callback_->onErrorMessage(str, id); 1374 error_message_callback_->onErrorMessage(str, id);
1378 } 1375 }
1379 } 1376 }
1380 1377
1381 } // namespace content 1378 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698