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

Issue 881513004: Add a command-line flag to set GPU rasterization multisampling. (Closed)

Created:
5 years, 11 months ago by Stephen White
Modified:
5 years, 11 months ago
Reviewers:
danakj, piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a command-line flag to set GPU rasterization multisampling. The new flag is --gpu-rasterization-msaa-sample-count=X similar to the existing --canvas-msaa-sample-count=X where X is the sample count. Committed: https://crrev.com/b60ba95e91d9b3cb2193b39d86301e01acf84c1b Cr-Commit-Position: refs/heads/master@{#313322}

Patch Set 1 #

Total comments: 12

Patch Set 2 : git cl format #

Patch Set 3 : changes re: review comments #

Total comments: 1

Patch Set 4 : Fix GT -> GE. #

Patch Set 5 : Update to ToT #

Patch Set 6 : Forward MSAA count if set (regardless of gpu rast. enabled; it may be forced) #

Total comments: 4

Patch Set 7 : Cache msaa sample count to avoid double-parsing it. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -14 lines) Patch
M cc/resources/gpu_rasterizer.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M cc/resources/gpu_rasterizer.cc View 1 2 3 4 2 chunks +11 lines, -7 lines 0 comments Download
M cc/resources/resource_provider.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/compositor_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 2 3 4 3 chunks +23 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Stephen White
Dana: PTAL. Thanks!
5 years, 11 months ago (2015-01-26 19:59:24 UTC) #2
danakj
https://codereview.chromium.org/881513004/diff/1/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/881513004/diff/1/content/browser/gpu/compositor_util.cc#newcode318 content/browser/gpu/compositor_util.cc:318: command_line.GetSwitchValueASCII(switches::kGpuRasterizationMSAASampleCount); git cl format https://codereview.chromium.org/881513004/diff/1/content/browser/gpu/compositor_util.cc#newcode325 content/browser/gpu/compositor_util.cc:325: LOG(WARNING) << "Failed ...
5 years, 11 months ago (2015-01-26 21:04:32 UTC) #3
Stephen White
https://codereview.chromium.org/881513004/diff/1/content/browser/gpu/compositor_util.cc File content/browser/gpu/compositor_util.cc (right): https://codereview.chromium.org/881513004/diff/1/content/browser/gpu/compositor_util.cc#newcode318 content/browser/gpu/compositor_util.cc:318: command_line.GetSwitchValueASCII(switches::kGpuRasterizationMSAASampleCount); On 2015/01/26 21:04:32, danakj wrote: > git cl ...
5 years, 11 months ago (2015-01-26 22:39:51 UTC) #4
danakj
LGTM https://codereview.chromium.org/881513004/diff/40001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/881513004/diff/40001/content/renderer/render_thread_impl.cc#newcode595 content/renderer/render_thread_impl.cc:595: DCHECK_GT(gpu_rasterization_msaa_sample_count_, 0); Should this be GE? Browser could ...
5 years, 11 months ago (2015-01-26 22:49:12 UTC) #5
Stephen White
+piman for OWNERS
5 years, 11 months ago (2015-01-26 22:52:13 UTC) #7
Stephen White
On 2015/01/26 22:49:12, danakj wrote: > LGTM > > https://codereview.chromium.org/881513004/diff/40001/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > ...
5 years, 11 months ago (2015-01-26 22:53:24 UTC) #8
Stephen White
Dana: made a slight tweak to this CL to forward the flag from browser -> ...
5 years, 11 months ago (2015-01-27 17:57:26 UTC) #9
danakj
https://codereview.chromium.org/881513004/diff/100001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/881513004/diff/100001/content/browser/renderer_host/render_process_host_impl.cc#newcode1084 content/browser/renderer_host/render_process_host_impl.cc:1084: if (GpuRasterizationMSAASampleCount() > 0) { FWIW You could remove ...
5 years, 11 months ago (2015-01-27 17:59:36 UTC) #10
piman
lgtm https://codereview.chromium.org/881513004/diff/100001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/881513004/diff/100001/content/browser/renderer_host/render_process_host_impl.cc#newcode1084 content/browser/renderer_host/render_process_host_impl.cc:1084: if (GpuRasterizationMSAASampleCount() > 0) { nit: cache the ...
5 years, 11 months ago (2015-01-27 18:07:16 UTC) #11
Stephen White
https://codereview.chromium.org/881513004/diff/100001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/881513004/diff/100001/content/browser/renderer_host/render_process_host_impl.cc#newcode1084 content/browser/renderer_host/render_process_host_impl.cc:1084: if (GpuRasterizationMSAASampleCount() > 0) { On 2015/01/27 18:07:16, piman ...
5 years, 11 months ago (2015-01-27 18:11:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881513004/120001
5 years, 11 months ago (2015-01-27 18:13:02 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-27 19:13:09 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 19:14:20 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b60ba95e91d9b3cb2193b39d86301e01acf84c1b
Cr-Commit-Position: refs/heads/master@{#313322}

Powered by Google App Engine
This is Rietveld 408576698