summaryrefslogtreecommitdiffstats
path: root/chrome/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/gpu')
-rw-r--r--chrome/gpu/gpu_info_collector_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/gpu/gpu_info_collector_win.cc b/chrome/gpu/gpu_info_collector_win.cc
index d741fe4..1e3124b 100644
--- a/chrome/gpu/gpu_info_collector_win.cc
+++ b/chrome/gpu/gpu_info_collector_win.cc
@@ -26,7 +26,13 @@ bool CollectGraphicsInfo(GPUInfo* gpu_info) {
egl::Display* display = static_cast<egl::Display*>(
gfx::BaseEGLContext::GetDisplay());
+ if (!display)
+ return false;
+
IDirect3DDevice9* device = display->getDevice();
+ if (!device)
+ return false;
+
IDirect3D9* d3d = NULL;
if (FAILED(device->GetDirect3D(&d3d)))
return false;