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

Issue 189883009: Define a --force-gpu-rasterization flag (Closed)

Created:
6 years, 9 months ago by ajuma
Modified:
6 years, 9 months ago
Reviewers:
nduca, ernstm, boliu, piman
CC:
chromium-reviews, chrome-speed-team+watch_google.com, creis+watch_chromium.org, nkostylev+watch_chromium.org, nasko+codewatch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, stevenjb+watch_chromium.org, android-webview-reviews_chromium.org, davemoore+watch_chromium.org, Vangelis Kokkevis, ernstm
Visibility:
Public.

Description

Define a --force-gpu-rasterization flag This flag forces gpu rasterization for all layers (that is, it behaves the way --enable-gpu-rasterization behaved previously). --enable-gpu-rasterization now enables gpu rasterization only on layers that have a GPU rasterization hint. Since this hint will be added in a later CL, this flag is currently a no-op. BUG=329722 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256143

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix nits #

Patch Set 3 : Minor logic fix-up #

Total comments: 3

Patch Set 4 : Use cpu/hybrid/gpu in cc #

Patch Set 5 : Rebased #

Total comments: 3

Patch Set 6 : Add switch to aw_main_delegate.cc #

Patch Set 7 : Add null check to render_view_impl.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -148 lines) Patch
M android_webview/lib/main/aw_main_delegate.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/base/switches.h View 1 2 3 4 3 chunks +0 lines, -13 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 3 chunks +0 lines, -80 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 4 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 4 chunks +7 lines, -6 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 3 chunks +17 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 6 chunks +13 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 4 chunks +9 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 9 chunks +34 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M content/renderer/render_thread_impl.h View 2 chunks +23 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 3 chunks +37 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M content/test/gpu/gpu_tests/gpu_rasterization.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/smoothness.py View 1 chunk +1 line, -1 line 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.cc View 2 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
ajuma
This is split off from https://codereview.chromium.org/181063022/, and uses enable/disable/force flags instead of a single rasterization-site ...
6 years, 9 months ago (2014-03-08 01:20:13 UTC) #1
piman
LGTM+nits https://codereview.chromium.org/189883009/diff/40001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/189883009/diff/40001/content/public/common/content_switches.cc#newcode466 content/public/common/content_switches.cc:466: const char kEnableGpuRasterization[] = "-enable-gpu-rasterization"; nit: remove leading ...
6 years, 9 months ago (2014-03-08 01:22:21 UTC) #2
ajuma
https://codereview.chromium.org/189883009/diff/40001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/189883009/diff/40001/content/public/common/content_switches.cc#newcode466 content/public/common/content_switches.cc:466: const char kEnableGpuRasterization[] = "-enable-gpu-rasterization"; On 2014/03/08 01:22:21, piman ...
6 years, 9 months ago (2014-03-08 01:25:25 UTC) #3
nduca
lgtm thank you!! https://codereview.chromium.org/189883009/diff/70001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/189883009/diff/70001/cc/trees/layer_tree_settings.h#newcode35 cc/trees/layer_tree_settings.h:35: GpuRasterizationEnabled, Once you get into cc, ...
6 years, 9 months ago (2014-03-08 04:18:01 UTC) #4
ernstm
https://codereview.chromium.org/189883009/diff/70001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/189883009/diff/70001/cc/trees/layer_tree_settings.h#newcode35 cc/trees/layer_tree_settings.h:35: GpuRasterizationEnabled, On 2014/03/08 04:18:02, nduca wrote: > Once you ...
6 years, 9 months ago (2014-03-08 05:13:53 UTC) #5
ajuma
https://codereview.chromium.org/189883009/diff/70001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/189883009/diff/70001/cc/trees/layer_tree_settings.h#newcode35 cc/trees/layer_tree_settings.h:35: GpuRasterizationEnabled, On 2014/03/08 05:13:53, ernstm wrote: > On 2014/03/08 ...
6 years, 9 months ago (2014-03-08 19:04:02 UTC) #6
ajuma
TBRing boliu for mechanical change to android_webview/ (replacing "cc::switches" with "switches").
6 years, 9 months ago (2014-03-10 14:17:54 UTC) #7
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 9 months ago (2014-03-10 14:18:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/100001
6 years, 9 months ago (2014-03-10 14:30:18 UTC) #9
boliu
android_webview lgtm And one question about default value of impl-side-painting on android https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc ...
6 years, 9 months ago (2014-03-10 15:40:38 UTC) #10
ajuma
https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc#newcode397 content/renderer/render_thread_impl.cc:397: !command_line.HasSwitch(switches::kDisableImplSidePainting); On 2014/03/10 15:40:38, boliu wrote: > impl_side_painting was ...
6 years, 9 months ago (2014-03-10 15:53:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/100001
6 years, 9 months ago (2014-03-10 15:54:52 UTC) #12
ajuma
https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc#newcode397 content/renderer/render_thread_impl.cc:397: !command_line.HasSwitch(switches::kDisableImplSidePainting); On 2014/03/10 15:53:56, ajuma wrote: > On 2014/03/10 ...
6 years, 9 months ago (2014-03-10 15:59:34 UTC) #13
ajuma
The CQ bit was unchecked by ajuma@chromium.org
6 years, 9 months ago (2014-03-10 15:59:40 UTC) #14
boliu
On 2014/03/10 15:53:55, ajuma wrote: > https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc > File content/renderer/render_thread_impl.cc (right): > > https://codereview.chromium.org/189883009/diff/100001/content/renderer/render_thread_impl.cc#newcode397 > ...
6 years, 9 months ago (2014-03-10 16:02:30 UTC) #15
ajuma
boliu, PTAL. > From cs, looks like it's going to be a problem for android ...
6 years, 9 months ago (2014-03-10 16:41:49 UTC) #16
boliu
lgtm
6 years, 9 months ago (2014-03-10 16:43:13 UTC) #17
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 9 months ago (2014-03-10 16:43:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/120001
6 years, 9 months ago (2014-03-10 17:41:33 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 19:47:50 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-10 19:47:51 UTC) #21
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 9 months ago (2014-03-10 19:48:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/120001
6 years, 9 months ago (2014-03-10 19:53:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/120001
6 years, 9 months ago (2014-03-10 21:42:46 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/120001
6 years, 9 months ago (2014-03-10 22:21:45 UTC) #25
ajuma
piman, PTAL. Since RenderThreadImpl::current() can be null in during tests, I've added null checks to ...
6 years, 9 months ago (2014-03-10 23:20:03 UTC) #26
piman
lgtm
6 years, 9 months ago (2014-03-10 23:21:03 UTC) #27
ajuma
The CQ bit was checked by ajuma@chromium.org
6 years, 9 months ago (2014-03-10 23:38:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ajuma@chromium.org/189883009/140001
6 years, 9 months ago (2014-03-11 00:19:29 UTC) #29
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 06:04:18 UTC) #30
Message was sent while issue was closed.
Change committed as 256143

Powered by Google App Engine
This is Rietveld 408576698