Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed)

Created:
4 years, 10 months ago by Peng
Modified:
4 years, 9 months ago
Reviewers:
Fady Samuel, boliu, piman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use GpuPreferences to avoid directly accessing switches in gpu related code BUG=586369 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/7404df98850f7d6e4bfc0f88faf6629c3ded36e8 Cr-Commit-Position: refs/heads/master@{#378305}

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Update #

Patch Set 4 : Update #

Total comments: 2

Patch Set 5 : Update #

Patch Set 6 : update #

Patch Set 7 : Update #

Patch Set 8 : Update #

Patch Set 9 : Update #

Total comments: 12

Patch Set 10 : Update #

Total comments: 16

Patch Set 11 : Update #

Total comments: 2

Patch Set 12 : Rebase and fix build errors #

Patch Set 13 : Address the review issue #

Total comments: 2

Patch Set 14 : addressed a review issue #

Total comments: 4

Patch Set 15 : Update #

Total comments: 19

Patch Set 16 : Address review issues #

Patch Set 17 : Update #

Total comments: 2

Patch Set 18 : Update #

Patch Set 19 : Update #

Patch Set 20 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -179 lines) Patch
M android_webview/browser/deferred_gpu_command_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +84 lines, -3 lines 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M components/mus/gles2/gpu_state.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/android/synchronous_compositor_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +8 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +12 lines, -14 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M content/common/gpu/gpu_channel_test_common.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +7 lines, -11 lines 0 comments Download
M content/gpu/gpu_child_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +8 lines, -2 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 8 chunks +87 lines, -5 lines 0 comments Download
M content/gpu/in_process_gpu_thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +5 lines, -0 lines 0 comments Download
M content/gpu/in_process_gpu_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_group.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_group.cc View 1 2 3 4 5 5 chunks +7 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/context_group_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +11 lines, -23 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
A gpu/command_buffer/service/gpu_preferences.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +110 lines, -0 lines 0 comments Download
A + gpu/command_buffer/service/gpu_preferences.cc View 1 2 3 4 5 1 chunk +7 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +20 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/mailbox_manager.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/mailbox_manager.cc View 1 2 3 4 5 2 chunks +6 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -31 lines 0 comments Download
M gpu/command_buffer/service/memory_program_cache_unittest.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/mocks.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/program_manager.h View 1 2 3 4 5 4 chunks +9 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 2 3 4 5 4 chunks +10 lines, -9 lines 0 comments Download
M gpu/command_buffer/service/program_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -1 line 0 comments Download
M gpu/command_buffer/service/shader_translator.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/shader_translator.cc View 1 2 3 4 4 chunks +6 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_cache.h View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M gpu/command_buffer/service/shader_translator_cache.cc View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/shader_translator_unittest.cc View 1 2 3 4 5 chunks +18 lines, -10 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer_service.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/display.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/display.cc View 1 2 3 4 5 6 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 47 (13 generated)
Fady Samuel
The primary goal here is to decouple from content_switches but piman@ suggested to me that ...
4 years, 10 months ago (2016-02-22 17:14:16 UTC) #4
Fady Samuel
The primary goal here is to decouple from content_switches but piman@ suggested to me that ...
4 years, 10 months ago (2016-02-22 17:14:16 UTC) #5
Peng
Hi piman, PTAL. Thanks.
4 years, 10 months ago (2016-02-24 20:48:02 UTC) #9
Peng
https://codereview.chromium.org/1716813002/diff/60001/gpu/command_buffer/service/gpu_preferences.cc File gpu/command_buffer/service/gpu_preferences.cc (right): https://codereview.chromium.org/1716813002/diff/60001/gpu/command_buffer/service/gpu_preferences.cc#newcode34 gpu/command_buffer/service/gpu_preferences.cc:34: GpuPreferences::GpuPreferences() { On 2016/02/22 17:14:16, Fady Samuel wrote: > ...
4 years, 10 months ago (2016-02-24 20:48:32 UTC) #10
Fady Samuel
https://codereview.chromium.org/1716813002/diff/160001/gpu/command_buffer/service/gpu_preferences.h File gpu/command_buffer/service/gpu_preferences.h (right): https://codereview.chromium.org/1716813002/diff/160001/gpu/command_buffer/service/gpu_preferences.h#newcode17 gpu/command_buffer/service/gpu_preferences.h:17: namespace base { class CommandLine; }; Is this forward ...
4 years, 10 months ago (2016-02-24 20:51:55 UTC) #11
piman
https://codereview.chromium.org/1716813002/diff/160001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/1716813002/diff/160001/content/gpu/gpu_child_thread.cc#newcode232 content/gpu/gpu_child_thread.cc:232: CHECK(base::CommandLine::InitializedForCurrentProcess()); nit: DCHECK https://codereview.chromium.org/1716813002/diff/160001/gpu/command_buffer/service/gpu_preferences.h File gpu/command_buffer/service/gpu_preferences.h (right): https://codereview.chromium.org/1716813002/diff/160001/gpu/command_buffer/service/gpu_preferences.h#newcode5 gpu/command_buffer/service/gpu_preferences.h:5: ...
4 years, 10 months ago (2016-02-24 22:19:08 UTC) #12
Peng
https://codereview.chromium.org/1716813002/diff/160001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/1716813002/diff/160001/content/gpu/gpu_child_thread.cc#newcode232 content/gpu/gpu_child_thread.cc:232: CHECK(base::CommandLine::InitializedForCurrentProcess()); On 2016/02/24 22:19:08, piman wrote: > nit: DCHECK ...
4 years, 10 months ago (2016-02-25 16:18:36 UTC) #13
Fady Samuel
https://codereview.chromium.org/1716813002/diff/180001/content/common/gpu/gpu_channel_manager.cc File content/common/gpu/gpu_channel_manager.cc (right): https://codereview.chromium.org/1716813002/diff/180001/content/common/gpu/gpu_channel_manager.cc#newcode21 content/common/gpu/gpu_channel_manager.cc:21: #include "content/common/gpu/gpu_messages.h" You can probably delete this. I missed ...
4 years, 10 months ago (2016-02-25 16:26:34 UTC) #14
Peng
https://codereview.chromium.org/1716813002/diff/180001/content/common/gpu/gpu_channel_manager.cc File content/common/gpu/gpu_channel_manager.cc (right): https://codereview.chromium.org/1716813002/diff/180001/content/common/gpu/gpu_channel_manager.cc#newcode21 content/common/gpu/gpu_channel_manager.cc:21: #include "content/common/gpu/gpu_messages.h" On 2016/02/25 16:26:33, Fady Samuel wrote: > ...
4 years, 10 months ago (2016-02-25 17:13:22 UTC) #15
Peng
4 years, 10 months ago (2016-02-25 17:13:26 UTC) #16
Peng
4 years, 10 months ago (2016-02-25 17:13:34 UTC) #17
piman
https://codereview.chromium.org/1716813002/diff/200001/android_webview/browser/deferred_gpu_command_service.cc File android_webview/browser/deferred_gpu_command_service.cc (right): https://codereview.chromium.org/1716813002/diff/200001/android_webview/browser/deferred_gpu_command_service.cc#newcode81 android_webview/browser/deferred_gpu_command_service.cc:81: : gpu::InProcessCommandBuffer::Service(gpu_preferences_), Oh, this is confusing/dangerous (and probably undefined ...
4 years, 10 months ago (2016-02-25 21:56:05 UTC) #18
Peng
https://codereview.chromium.org/1716813002/diff/200001/android_webview/browser/deferred_gpu_command_service.cc File android_webview/browser/deferred_gpu_command_service.cc (right): https://codereview.chromium.org/1716813002/diff/200001/android_webview/browser/deferred_gpu_command_service.cc#newcode81 android_webview/browser/deferred_gpu_command_service.cc:81: : gpu::InProcessCommandBuffer::Service(gpu_preferences_), On 2016/02/25 21:56:05, piman wrote: > Oh, ...
4 years, 10 months ago (2016-02-25 22:29:09 UTC) #19
piman
lgtm https://codereview.chromium.org/1716813002/diff/240001/android_webview/browser/deferred_gpu_command_service.h File android_webview/browser/deferred_gpu_command_service.h (right): https://codereview.chromium.org/1716813002/diff/240001/android_webview/browser/deferred_gpu_command_service.h#newcode77 android_webview/browser/deferred_gpu_command_service.h:77: gpu::GpuPreferences GetGpuPreferences(); static
4 years, 10 months ago (2016-02-25 22:58:29 UTC) #20
Peng
https://codereview.chromium.org/1716813002/diff/240001/android_webview/browser/deferred_gpu_command_service.h File android_webview/browser/deferred_gpu_command_service.h (right): https://codereview.chromium.org/1716813002/diff/240001/android_webview/browser/deferred_gpu_command_service.h#newcode77 android_webview/browser/deferred_gpu_command_service.h:77: gpu::GpuPreferences GetGpuPreferences(); On 2016/02/25 22:58:29, piman wrote: > static ...
4 years, 10 months ago (2016-02-26 15:41:12 UTC) #21
Peng
+boliu@ for android_webview/* Hi boliu, PTAL. Thanks.
4 years, 10 months ago (2016-02-26 15:44:33 UTC) #23
boliu
https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc File android_webview/browser/deferred_gpu_command_service.cc (right): https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc#newcode37 android_webview/browser/deferred_gpu_command_service.cc:37: gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { This chunk of code is duplicated ...
4 years, 10 months ago (2016-02-26 16:57:05 UTC) #24
Peng
https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc File android_webview/browser/deferred_gpu_command_service.cc (right): https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc#newcode37 android_webview/browser/deferred_gpu_command_service.cc:37: gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { On 2016/02/26 16:57:05, boliu wrote: > ...
4 years, 10 months ago (2016-02-26 17:04:48 UTC) #25
boliu
On 2016/02/26 17:04:48, Peng wrote: > https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc > File android_webview/browser/deferred_gpu_command_service.cc (right): > > https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc#newcode37 > ...
4 years, 10 months ago (2016-02-26 17:39:24 UTC) #26
Peng
https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc File android_webview/browser/deferred_gpu_command_service.cc (right): https://codereview.chromium.org/1716813002/diff/260001/android_webview/browser/deferred_gpu_command_service.cc#newcode37 android_webview/browser/deferred_gpu_command_service.cc:37: gpu::GpuPreferences GetGpuPreferencesFromCommandLine() { On 2016/02/26 17:04:48, Peng wrote: > ...
4 years, 10 months ago (2016-02-26 20:33:09 UTC) #27
boliu
https://codereview.chromium.org/1716813002/diff/280001/content/browser/android/synchronous_compositor_base.cc File content/browser/android/synchronous_compositor_base.cc (right): https://codereview.chromium.org/1716813002/diff/280001/content/browser/android/synchronous_compositor_base.cc#newcode24 content/browser/android/synchronous_compositor_base.cc:24: const gpu::GpuPreferences* g_gpu_preferences = nullptr; LazyInstance<gpu::GpuPreferences>, also const won't ...
4 years, 10 months ago (2016-02-26 22:17:32 UTC) #28
Peng
https://codereview.chromium.org/1716813002/diff/280001/content/browser/android/synchronous_compositor_base.cc File content/browser/android/synchronous_compositor_base.cc (right): https://codereview.chromium.org/1716813002/diff/280001/content/browser/android/synchronous_compositor_base.cc#newcode24 content/browser/android/synchronous_compositor_base.cc:24: const gpu::GpuPreferences* g_gpu_preferences = nullptr; On 2016/02/26 22:17:32, boliu ...
4 years, 9 months ago (2016-02-29 16:09:23 UTC) #29
boliu
https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.cc#newcode225 content/gpu/gpu_child_thread.cc:225: *gpu_preferences : GetGpuPreferencesFromCommandLine()), On 2016/02/29 16:09:22, Peng wrote: > ...
4 years, 9 months ago (2016-02-29 16:26:41 UTC) #30
Peng
https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.cc#newcode225 content/gpu/gpu_child_thread.cc:225: *gpu_preferences : GetGpuPreferencesFromCommandLine()), On 2016/02/29 16:26:40, boliu wrote: > ...
4 years, 9 months ago (2016-02-29 19:29:50 UTC) #31
boliu
a_w and synchronous_compositor* lgtm We are debating about code I don't own anymore. You probably ...
4 years, 9 months ago (2016-02-29 19:48:22 UTC) #32
Peng
https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.cc#newcode225 content/gpu/gpu_child_thread.cc:225: *gpu_preferences : GetGpuPreferencesFromCommandLine()), On 2016/02/29 19:48:22, boliu wrote: > ...
4 years, 9 months ago (2016-02-29 20:30:50 UTC) #33
boliu
https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.h File content/gpu/gpu_child_thread.h (right): https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.h#newcode54 content/gpu/gpu_child_thread.h:54: GpuChildThread(const gpu::GpuPreferences* gpu_preferences, On 2016/02/29 20:30:50, Peng wrote: > ...
4 years, 9 months ago (2016-02-29 20:40:07 UTC) #34
Peng
https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.h File content/gpu/gpu_child_thread.h (right): https://codereview.chromium.org/1716813002/diff/280001/content/gpu/gpu_child_thread.h#newcode54 content/gpu/gpu_child_thread.h:54: GpuChildThread(const gpu::GpuPreferences* gpu_preferences, On 2016/02/29 20:40:07, boliu wrote: > ...
4 years, 9 months ago (2016-02-29 21:18:30 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1716813002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1716813002/380001
4 years, 9 months ago (2016-02-29 21:19:22 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/151544)
4 years, 9 months ago (2016-02-29 21:43:07 UTC) #40
Fady Samuel
mus lgtm
4 years, 9 months ago (2016-02-29 21:54:23 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1716813002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1716813002/380001
4 years, 9 months ago (2016-02-29 21:57:00 UTC) #43
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 9 months ago (2016-02-29 23:07:39 UTC) #45
commit-bot: I haz the power
4 years, 9 months ago (2016-02-29 23:09:10 UTC) #47
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/7404df98850f7d6e4bfc0f88faf6629c3ded36e8
Cr-Commit-Position: refs/heads/master@{#378305}

Powered by Google App Engine
This is Rietveld 408576698