[go: nahoru, domu]

Mus: Move InProcessCommandBuffer and GLInProcessContext to gpu/ipc

We would like to use InProcessCommandBuffer and GLInProcessContext
in mus-gpu. In a subsequent patch, InProcessCommandBuffer will use
PassThroughImageTransportSurface in order to receive notification
of when a SwapBuffers completes and latency info, among other things.

PassThroughImageTransportSurface lives in gpu/ipc/service.
gpu/command_buffer/service cannot depend on gpu/ipc/service. Thus,
we move this code to gpu/ipc where it can depend on both
gpu/command_buffer/{client, common, service} and
gpu/ipc/{client, common, service}

BUG=661278
TBR=sky@chromium.org for ui, danakj@chromium.org for display_compositor/cc, boliu@chromium.org for android_webview, dtrainor@chromium.org for blimp.

CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Review-Url: https://codereview.chromium.org/2493913002
Cr-Commit-Position: refs/heads/master@{#431519}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index b5d6d7e..3317502 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -806,10 +806,10 @@
     "//cc/proto",
     "//cc/surfaces",
     "//cc/surfaces:surface_id",
-    "//gpu/command_buffer/client:gl_in_process_context",
     "//gpu/command_buffer/client:gles2_c_lib",
     "//gpu/command_buffer/client:gles2_implementation",
     "//gpu/command_buffer/common:gles2_utils",
+    "//gpu/ipc:gl_in_process_context",
     "//gpu/skia_bindings",
     "//media",
     "//skia",