|
gpu: Fix dependency cycle between service_sources and config_sources.
ERROR Dependency cycle:
//gpu/command_buffer/service:service_sources ->
//gpu/config:config_sources ->
//gpu/command_buffer/service:service_sources
The problem was that gpu/command_buffer/service already include from
gpu/config, but gpu/config were also including from
gpu/command_buffer/service for gpu_switches.h, creating the above
dependency cycle.
By moving the required switch down to gpu/config, we broke this
dependency cycle.
With that 'gn check' passes for gpu/config with the following command
lines:
$ gn gen out-gn/Debug
$ gn check out-gn/Debug //gpu/config/*
gpu/command_buffer/service needs more work to pass 'gn check' though.
BUG= 367595, 376000
TEST=see above
R=sievers@chromium.org
Committed: https://crrev.com/15525c4fa7633018873aa4fec407a14c5cf64840
Cr-Commit-Position: refs/heads/master@{#327344}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+29 lines, -26 lines) |
Patch |
 |
M |
content/browser/gpu/gpu_data_manager_impl_private.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/gpu/gpu_data_manager_impl_private_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/gpu/gpu_main.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/BUILD.gn
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/feature_info.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/feature_info_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gpu_switches.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/gpu_switches.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/tests/gl_clear_framebuffer_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/config/BUILD.gn
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A + |
gpu/config/gpu_switches.h
|
View
|
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
gpu/config/gpu_switches.cc
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
gpu/config/gpu_util.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
gpu/gpu.gyp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/gpu_config.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (3 generated)
|