Skip to content

Commit

Permalink
Don't call RegisterSurfaceIdNamespace with Surfaces disabled.
Browse files Browse the repository at this point in the history
It's null and crashes.

Review URL: https://codereview.chromium.org/1157163002

Cr-Commit-Position: refs/heads/master@{#331464}
  • Loading branch information
jbauman2 authored and Commit bot committed May 26, 2015
1 parent e480760 commit b051a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/browser/compositor/gpu_process_transport_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ scoped_ptr<cc::SurfaceIdAllocator>
GpuProcessTransportFactory::CreateSurfaceIdAllocator() {
scoped_ptr<cc::SurfaceIdAllocator> allocator =
make_scoped_ptr(new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
allocator->RegisterSurfaceIdNamespace(GetSurfaceManager());
if (GetSurfaceManager())
allocator->RegisterSurfaceIdNamespace(GetSurfaceManager());
return allocator;
}

Expand Down

0 comments on commit b051a19

Please sign in to comment.