diff options
Diffstat (limited to 'chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc')
| -rw-r--r-- | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc index b269151..6479a7a 100644 --- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc +++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc @@ -90,7 +90,7 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize( 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 @@ void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM( 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) \ |
