Index: gpu/ipc/service/gpu_channel_unittest.cc |
diff --git a/gpu/ipc/service/gpu_channel_unittest.cc b/gpu/ipc/service/gpu_channel_unittest.cc |
index b59ed38e9b7af779468f06b6f9d0486defe28772..9d5809ab51bbe8b496ee0d60a86907719ef6a5d3 100644 |
--- a/gpu/ipc/service/gpu_channel_unittest.cc |
+++ b/gpu/ipc/service/gpu_channel_unittest.cc |
@@ -70,6 +70,10 @@ const SurfaceHandle kFakeSurfaceHandle = 1; |
#endif |
TEST_F(GpuChannelTest, CreateViewCommandBufferAllowed) { |
+ // We need GL bindings to actually initialize command buffers. |
+ gfx::SetGLGetProcAddressProc(gfx::MockGLInterface::GetGLProcAddress); |
+ gfx::GLSurfaceTestSupport::InitializeOneOffWithMockBindings(); |
+ |
int32_t kClientId = 1; |
bool allow_view_command_buffers = true; |
GpuChannel* channel = |