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

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed)

Created:
7 years, 8 months ago by enne (OOO)
Modified:
7 years, 7 months ago
Reviewers:
jamesr, sky, piman, danakj, bsalomon, reed1
CC:
chromium-reviews, cc-bugs_chromium.org, Vangelis Kokkevis, bsalomon_chromium, reed1, robertphillips, jvanverth1, aelias_OOO_until_Jul13, reveman, Tom Hudson, vmpstr, senorblanco
Visibility:
Public.

Description

Add flag for drawing layers to screen with Ganesh The --force-direct-layer-drawing flag causes any layer that could be drawn direct to the backbuffer to be drawn to the backbuffer using Ganesh. This flag also requires both the --enable-threaded-compositing flag and the --enable-impl-side-painting flag to have any effect. This patch also turns on testing for PictureDrawQuad using Ganesh in the cc pixeltests. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201362

Patch Set 1 #

Total comments: 1

Patch Set 2 : Stencil buffer support, --draw-layers-with-ganesh #

Patch Set 3 : Rebased, with tests #

Patch Set 4 : Rebased, passing tests :3 #

Patch Set 5 : Ready for review #

Total comments: 5

Patch Set 6 : Reset canvas matrix before setting clip #

Patch Set 7 : Use kTopLeft #

Total comments: 35

Patch Set 8 : Rebase #

Patch Set 9 : Addressing review comments #

Patch Set 10 : Base files missing. #

Total comments: 21

Patch Set 11 : Rebase #

Patch Set 12 : Address review comments #

Total comments: 9

Patch Set 13 : Review comments #

Patch Set 14 : Fix unit_tests #

Patch Set 15 : Rebase #

Patch Set 16 : Debug colors #

Patch Set 17 : Rebase #

Patch Set 18 : Rebase #

Patch Set 19 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -124 lines) Patch
M cc/base/switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M cc/debug/debug_colors.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M cc/debug/debug_colors.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M cc/layers/draw_properties.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +31 lines, -7 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -8 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +13 lines, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 10 chunks +133 lines, -21 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 11 chunks +36 lines, -13 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -16 lines 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -3 lines 0 comments Download
M cc/quads/picture_draw_quad.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M cc/quads/picture_draw_quad.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/picture.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -4 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +53 lines, -26 lines 0 comments Download
M cc/resources/picture_pile_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +15 lines, -0 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +2 lines, -8 lines 0 comments Download
M cc/test/pixel_test.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +44 lines, -3 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M skia/ext/analysis_canvas.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M skia/ext/analysis_canvas_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -2 lines 0 comments Download
M ui/gfx/skia_util.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
enne (OOO)
This patch is an initial attempt at drawing to the backbuffer directly using Ganesh. It ...
7 years, 8 months ago (2013-04-24 22:49:53 UTC) #1
enne (OOO)
Uploaded a patch that adds a stencil buffer as well. With this latest patch, you ...
7 years, 8 months ago (2013-04-25 16:02:37 UTC) #2
enne (OOO)
danakj: this work in progress patch is now ready for review. https://codereview.chromium.org/13863015/diff/20001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): ...
7 years, 7 months ago (2013-05-13 19:33:10 UTC) #3
bsalomon
https://codereview.chromium.org/13863015/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/13863015/diff/20001/cc/output/gl_renderer.cc#newcode2868 cc/output/gl_renderer.cc:2868: desc.fOrigin = kBottomLeft_GrSurfaceOrigin; As of skia r9113 (which should ...
7 years, 7 months ago (2013-05-13 19:49:15 UTC) #4
enne (OOO)
bsalomon: r9113 isn't quite enough. You still assert in GrGpuGL.cpp:483 and (I think, maybe my ...
7 years, 7 months ago (2013-05-14 18:20:09 UTC) #5
bsalomon
On 2013/05/14 18:20:09, enne wrote: > bsalomon: r9113 isn't quite enough. You still assert in ...
7 years, 7 months ago (2013-05-14 19:57:04 UTC) #6
enne (OOO)
bsalomon: Thanks. Patch set 6 fixes the scissor issue and r9129 lets me run with ...
7 years, 7 months ago (2013-05-14 20:02:41 UTC) #7
danakj
Pretty cool! https://codereview.chromium.org/13863015/diff/33001/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/13863015/diff/33001/cc/base/switches.cc#newcode42 cc/base/switches.cc:42: // Only valid with gl rendering / ...
7 years, 7 months ago (2013-05-15 20:33:16 UTC) #8
enne (OOO)
https://codereview.chromium.org/13863015/diff/33001/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/13863015/diff/33001/cc/base/switches.cc#newcode42 cc/base/switches.cc:42: // Only valid with gl rendering / threaded compositing ...
7 years, 7 months ago (2013-05-15 22:34:38 UTC) #9
danakj
LG overall! Thanks for moving that into draw properties. I recalled that senorblanco has requested ...
7 years, 7 months ago (2013-05-16 15:17:55 UTC) #10
enne (OOO)
On 2013/05/16 15:17:55, danakj wrote: > I recalled that senorblanco has requested before that we ...
7 years, 7 months ago (2013-05-16 20:34:01 UTC) #11
Stephen White
On 2013/05/16 20:34:01, enne wrote: > On 2013/05/16 15:17:55, danakj wrote: > > > I ...
7 years, 7 months ago (2013-05-17 00:54:53 UTC) #12
danakj
https://codereview.chromium.org/13863015/diff/64002/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/13863015/diff/64002/cc/layers/picture_layer_impl.cc#newcode111 cc/layers/picture_layer_impl.cc:111: bool use_ganesh = draw_properties().can_draw_directly_to_backbuffer && nit: ganesh https://codereview.chromium.org/13863015/diff/64002/cc/layers/picture_layer_impl.cc#newcode373 cc/layers/picture_layer_impl.cc:373: ...
7 years, 7 months ago (2013-05-17 23:24:01 UTC) #13
danakj
LGTM when the ideal_contents_scale_ thing is resolved. FTR I'm not a super fan of |use_skia_gpu_backend| ...
7 years, 7 months ago (2013-05-17 23:36:30 UTC) #14
enne (OOO)
https://codereview.chromium.org/13863015/diff/64002/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/13863015/diff/64002/cc/layers/picture_layer_impl.cc#newcode111 cc/layers/picture_layer_impl.cc:111: bool use_ganesh = draw_properties().can_draw_directly_to_backbuffer && On 2013/05/17 23:24:01, danakj ...
7 years, 7 months ago (2013-05-17 23:52:49 UTC) #15
enne (OOO)
OWNERS review request: piman: chrome/browser/chromeos/login/chrome_restart_request.cc sky: content/browser/renderer_host/render_process_host_impl.cc jamesr: content/renderer/*
7 years, 7 months ago (2013-05-20 17:37:40 UTC) #16
jamesr
lgtm
7 years, 7 months ago (2013-05-20 17:59:54 UTC) #17
piman
lgtm
7 years, 7 months ago (2013-05-20 18:37:07 UTC) #18
sky
LGTM
7 years, 7 months ago (2013-05-20 19:47:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/13863015/111001
7 years, 7 months ago (2013-05-20 19:49:18 UTC) #20
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=3790
7 years, 7 months ago (2013-05-20 20:02:08 UTC) #21
enne (OOO)
bsalomon: OWNER review for skia/ext? (or review for the rest of it too if you'd ...
7 years, 7 months ago (2013-05-20 20:30:26 UTC) #22
reed1
skia/ext lgtm
7 years, 7 months ago (2013-05-20 20:32:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/13863015/111001
7 years, 7 months ago (2013-05-20 21:37:04 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-20 21:51:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/13863015/111001
7 years, 7 months ago (2013-05-20 21:54:12 UTC) #26
commit-bot: I haz the power
Failed to apply patch for cc/output/gl_renderer_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-21 00:33:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/13863015/125003
7 years, 7 months ago (2013-05-21 01:58:56 UTC) #28
commit-bot: I haz the power
Failed to apply patch for cc/trees/layer_tree_host_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-21 08:15:29 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/13863015/145001
7 years, 7 months ago (2013-05-21 17:16:38 UTC) #30
commit-bot: I haz the power
7 years, 7 months ago (2013-05-21 21:31:46 UTC) #31
Message was sent while issue was closed.
Change committed as 201362

Powered by Google App Engine
This is Rietveld 408576698