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

Unified Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc

Issue 5626008: Exposed support for dynamically enabling extensions in command buffer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.h ('k') | gpu/GLES2/gl2ext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
===================================================================
--- chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (revision 68245)
+++ chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (working copy)
@@ -90,7 +90,7 @@
GPUInfo gpu_info = host->gpu_info();
UMA_HISTOGRAM_ENUMERATION(
"GPU.WebGraphicsContext3D_Init_CanLoseContext",
- attributes.canRecoverFromContextLoss * 2 + gpu_info.can_lose_context(),
+ attributes.canRecoverFromContextLoss * 2 + gpu_info.can_lose_context(),
4);
if (attributes.canRecoverFromContextLoss == false) {
if (gpu_info.can_lose_context())
@@ -371,6 +371,16 @@
copyTextureToCompositor(texture, parentTexture);
}
+WebKit::WebString WebGraphicsContext3DCommandBufferImpl::
+ getRequestableExtensionsCHROMIUM() {
+ return WebKit::WebString::fromUTF8(glGetRequestableExtensionsCHROMIUM());
+}
+
+void WebGraphicsContext3DCommandBufferImpl::requestExtensionCHROMIUM(
+ const char* extension) {
+ glRequestExtensionCHROMIUM(extension);
+}
+
// Helper macros to reduce the amount of code.
#define DELEGATE_TO_GL(name, glname) \
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.h ('k') | gpu/GLES2/gl2ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698