Chromium Code Reviews| Index: content/renderer/renderer_blink_platform_impl.cc |
| diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc |
| index 9b5d79121e925bd0e21584aeeb210ec30418bee5..ac17e3a80072e0d6d711974b4ab34c7507378dc8 100644 |
| --- a/content/renderer/renderer_blink_platform_impl.cc |
| +++ b/content/renderer/renderer_blink_platform_impl.cc |
| @@ -979,11 +979,24 @@ RendererBlinkPlatformImpl::createOffscreenGraphicsContext3D( |
| if (gpu_channel_host.get() && gl_info) { |
| const gpu::GPUInfo& gpu_info = gpu_channel_host->gpu_info(); |
| - gl_info->vendorInfo.assign(blink::WebString::fromUTF8(gpu_info.gl_vendor)); |
| - gl_info->rendererInfo.assign( |
| - blink::WebString::fromUTF8(gpu_info.gl_renderer)); |
| - gl_info->driverVersion.assign( |
| - blink::WebString::fromUTF8(gpu_info.gl_version)); |
| + switch (gpu_info.context_info_state) { |
| + case gpu::kCollectInfoSuccess: |
| + case gpu::kCollectInfoNonFatalFailure: |
| + gl_info->vendorInfo.assign( |
| + blink::WebString::fromUTF8(gpu_info.gl_vendor)); |
| + gl_info->rendererInfo.assign( |
| + blink::WebString::fromUTF8(gpu_info.gl_renderer)); |
| + gl_info->driverVersion.assign( |
| + blink::WebString::fromUTF8(gpu_info.gl_version)); |
| + break; |
| + case gpu::kCollectInfoFatalFailure: |
| + gl_info->contextInfoCollectionFailure.assign(blink::WebString::fromUTF8( |
| + "GPUInfoCollectionFailure: GPU initialization Failed. GPU" |
|
Ken Russell (switch to Gerrit)
2014/12/16 23:55:47
Needs space at the end of this string for when it'
sivag
2014/12/17 10:40:43
Done.
|
| + "Info not Collected")); |
| + break; |
| + default: |
| + NOTREACHED(); |
| + }; |
| } |
| WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits limits; |