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

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed)

Created:
5 years, 2 months ago by ericrk
Modified:
4 years, 8 months ago
Reviewers:
danakj, vmpstr, jbroman, piman
CC:
achuith+watch_chromium.org, cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, davemoore+watch_chromium.org, dzhioev+watch_chromium.org, jam, jbauman+watch_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, sievers+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a flag to disable partial raster in renderer Partial raster was intended to be disabled in renderers, but it was disabled indirectly through a GPUMemoryBuffer property, which didn't apply to all rasterization modes / tile workers. This change adds a flag "--enable-partial-raster" which will cause partial raster to be enabled (current state) if passed. The default behavior is now that we block partial raster at a higher level, but not providing invalidated IDs to tiles. BUG=537722 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/1d17f75189e66a12ef287af75e0d6adb5449db3d Cr-Commit-Position: refs/heads/master@{#354966}

Patch Set 1 #

Total comments: 11

Patch Set 2 : rebase #

Patch Set 3 : fixes + test #

Patch Set 4 : Remove "--enable-persistent-gpu-memory-buffer" #

Total comments: 12

Patch Set 5 : feedback #

Total comments: 8

Patch Set 6 : feedback + UT refactoring #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -98 lines) Patch
M cc/raster/one_copy_tile_task_worker_pool.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.cc View 1 2 3 5 chunks +12 lines, -12 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 5 7 chunks +144 lines, -23 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_tiles.cc View 1 2 3 4 5 4 chunks +38 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/gpu/compositor_util.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/gpu/compositor_util.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 2 chunks +3 lines, -7 lines 0 comments Download
M content/renderer/gpu/compositor_dependencies.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M content/test/fake_compositor_dependencies.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/test/fake_compositor_dependencies.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 1 chunk +8 lines, -4 lines 0 comments Download

Messages

Total messages: 35 (14 generated)
ericrk
https://codereview.chromium.org/1381163002/diff/1/cc/layers/picture_layer_impl.h File cc/layers/picture_layer_impl.h (right): https://codereview.chromium.org/1381163002/diff/1/cc/layers/picture_layer_impl.h#newcode55 cc/layers/picture_layer_impl.h:55: gfx::Rect GetEnclosingRectInTargetSpace() const override; Moved this up from below ...
5 years, 2 months ago (2015-10-02 20:15:14 UTC) #2
ericrk
+jbroman as well
5 years, 2 months ago (2015-10-02 20:15:55 UTC) #4
jbroman
Seems reasonable to me in principle. Since this was the purpose of the --enable-persistent-gpu-memory-buffer flag, ...
5 years, 2 months ago (2015-10-05 13:38:38 UTC) #6
ericrk
On 2015/10/05 at 13:38:38, jbroman wrote: > Seems reasonable to me in principle. Since this ...
5 years, 2 months ago (2015-10-05 20:28:02 UTC) #7
vmpstr
https://codereview.chromium.org/1381163002/diff/1/cc/test/fake_picture_layer_tiling_client.h File cc/test/fake_picture_layer_tiling_client.h (right): https://codereview.chromium.org/1381163002/diff/1/cc/test/fake_picture_layer_tiling_client.h#newcode50 cc/test/fake_picture_layer_tiling_client.h:50: void set_enable_partial_Raster(bool enable_partial_raster) { nit: capitalization typo https://codereview.chromium.org/1381163002/diff/1/cc/tiles/picture_layer_tiling.cc File ...
5 years, 2 months ago (2015-10-06 18:35:49 UTC) #8
ericrk
On 2015/10/06 at 18:35:49, vmpstr wrote: > https://codereview.chromium.org/1381163002/diff/1/cc/test/fake_picture_layer_tiling_client.h > File cc/test/fake_picture_layer_tiling_client.h (right): > > https://codereview.chromium.org/1381163002/diff/1/cc/test/fake_picture_layer_tiling_client.h#newcode50 ...
5 years, 2 months ago (2015-10-06 19:57:54 UTC) #9
jbroman
On 2015/10/06 at 19:57:54, ericrk wrote: > On 2015/10/06 at 18:35:49, vmpstr wrote: > > ...
5 years, 2 months ago (2015-10-06 20:22:59 UTC) #10
ericrk
On 2015/10/06 20:22:59, jbroman wrote: > On 2015/10/06 at 19:57:54, ericrk wrote: > > On ...
5 years, 2 months ago (2015-10-07 17:16:34 UTC) #12
ericrk
Thanks for the feedback! https://codereview.chromium.org/1381163002/diff/1/cc/test/fake_picture_layer_tiling_client.h File cc/test/fake_picture_layer_tiling_client.h (right): https://codereview.chromium.org/1381163002/diff/1/cc/test/fake_picture_layer_tiling_client.h#newcode50 cc/test/fake_picture_layer_tiling_client.h:50: void set_enable_partial_Raster(bool enable_partial_raster) { On ...
5 years, 2 months ago (2015-10-07 17:59:08 UTC) #14
ericrk
Updated this to combine it with "--enable-persistent-gpu-memory-buffer". There are rare cases in which you might ...
5 years, 2 months ago (2015-10-08 00:12:20 UTC) #18
jbroman
https://codereview.chromium.org/1381163002/diff/160001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/1381163002/diff/160001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode86 chrome/browser/chromeos/login/chrome_restart_request.cc:86: ::switches::kDisablePartialRaster, On 2015/10/08 at 00:12:20, ericrk wrote: > Is ...
5 years, 2 months ago (2015-10-08 14:08:22 UTC) #19
danakj
One q: Why do you prefer not setting ids on the tiles in PictureLayerTiling vs ...
5 years, 2 months ago (2015-10-08 15:18:43 UTC) #20
jbroman
https://codereview.chromium.org/1381163002/diff/160001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/1381163002/diff/160001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode86 chrome/browser/chromeos/login/chrome_restart_request.cc:86: ::switches::kDisablePartialRaster, On 2015/10/08 at 15:18:43, danakj_OOO_til_10-12 wrote: > On ...
5 years, 2 months ago (2015-10-08 15:19:59 UTC) #21
danakj
https://codereview.chromium.org/1381163002/diff/160001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/1381163002/diff/160001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode86 chrome/browser/chromeos/login/chrome_restart_request.cc:86: ::switches::kDisablePartialRaster, On 2015/10/08 15:19:59, jbroman wrote: > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 15:21:28 UTC) #22
ericrk
Moved away from modifying PictureLayerTiling to avoid generating invalidated IDs and instead block off the ...
5 years, 2 months ago (2015-10-13 23:03:45 UTC) #23
danakj
LGTM https://codereview.chromium.org/1381163002/diff/180001/cc/tiles/tile_manager.h File cc/tiles/tile_manager.h (right): https://codereview.chromium.org/1381163002/diff/180001/cc/tiles/tile_manager.h#newcode294 cc/tiles/tile_manager.h:294: bool use_partial_raster_; const https://codereview.chromium.org/1381163002/diff/180001/cc/tiles/tile_manager_unittest.cc File cc/tiles/tile_manager_unittest.cc (right): https://codereview.chromium.org/1381163002/diff/180001/cc/tiles/tile_manager_unittest.cc#newcode1737 ...
5 years, 2 months ago (2015-10-16 18:13:08 UTC) #24
ericrk
+piman for owners on remaining files. https://codereview.chromium.org/1381163002/diff/180001/cc/tiles/tile_manager.h File cc/tiles/tile_manager.h (right): https://codereview.chromium.org/1381163002/diff/180001/cc/tiles/tile_manager.h#newcode294 cc/tiles/tile_manager.h:294: bool use_partial_raster_; On ...
5 years, 2 months ago (2015-10-16 20:27:13 UTC) #26
piman
lgtm
5 years, 2 months ago (2015-10-20 01:53:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1381163002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1381163002/190001
5 years, 2 months ago (2015-10-20 02:01:01 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:190001)
5 years, 2 months ago (2015-10-20 03:03:15 UTC) #34
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 03:04:26 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1d17f75189e66a12ef287af75e0d6adb5449db3d
Cr-Commit-Position: refs/heads/master@{#354966}

Powered by Google App Engine
This is Rietveld 408576698