Clean up SyncCompositorFactory context creation
commit7dfcda1c8c3523433d052d3f6bd9031bd3aab7bf
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 May 2014 19:20:05 +0000 (10 19:20 +0000)
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 May 2014 19:20:05 +0000 (10 19:20 +0000)
treed2fa809104648c7d20ae8296d17c7114a77f1d4a
parent188d11b3bc1156441d2b71fb3db295a5f119b067
Clean up SyncCompositorFactory context creation

Separate out context creation that does not need surface or service
into separate CreateOffscreenContext call.

Do not create GLSurfaceStubs on client side, and pass in NULL window
so the context creates GLSurfaceStubs on service side.

Clean up share context code since compositor does not need an offscreen
context anymore.

BUG=370566

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269618 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/android/in_process/synchronous_compositor_factory_impl.cc
content/browser/android/in_process/synchronous_compositor_factory_impl.h
content/browser/android/in_process/synchronous_compositor_impl.cc
gpu/command_buffer/client/gl_in_process_context.cc
gpu/command_buffer/client/gl_in_process_context.h