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

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed)

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

Description

cc: Move draw params from SetExternalDrawConstraints to OnDraw This is a clean up to move some of the logic spread between LayerTreeHostImpl and SynchronousCompositorOutputSurface about setting and saving parameters for synchronous compositor draws. Move draw parameters to OnDraw. These will be reset before OnDraw returns. Parameters are overridden permanently is set in SetExternalDrawConstraints. BUG=419795 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/7097ee5b1f3691d12f425d719d33698bb90261b6 Cr-Commit-Position: refs/heads/master@{#365700}

Patch Set 1 #

Total comments: 3

Patch Set 2 : back #

Patch Set 3 : tests compile #

Patch Set 4 : rebase #

Patch Set 5 : tests fixed #

Total comments: 26

Patch Set 6 : rebase #

Patch Set 7 : review #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Total comments: 6

Patch Set 10 : rebase r365255 #

Total comments: 1

Patch Set 11 : ForTesting #

Total comments: 7

Patch Set 12 : remove SetResourcelessSoftwareDrawForTesting #

Patch Set 13 : rebase r365535 #

Patch Set 14 : rebaseline pixel tests #

Total comments: 3

Patch Set 15 : EXPECT_SCOPED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -537 lines) Patch
M cc/layers/picture_layer_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +28 lines, -79 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -7 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -15 lines 0 comments Download
M cc/output/output_surface_client.h View 1 2 3 4 5 6 2 chunks +7 lines, -8 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -6 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 6 7 10 chunks +17 lines, -11 lines 0 comments Download
M cc/surfaces/display.h View 1 2 3 4 5 6 1 chunk +7 lines, -8 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -8 lines 0 comments Download
M cc/test/data/background_filter_blur_off_axis.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
M cc/test/data/background_filter_on_scaled_layer_gl.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
M cc/test/data/background_filter_rotated_gl.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 Binary file 0 comments Download
M cc/test/fake_layer_tree_host_impl_client.h View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface_client.h View 1 2 3 4 5 6 1 chunk +6 lines, -7 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -11 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 3 chunks +62 lines, -44 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 25 chunks +294 lines, -223 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +28 lines, -10 lines 0 comments Download
M cc/trees/proxy_impl.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -7 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -6 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -9 lines 0 comments Download
M content/renderer/android/synchronous_compositor_output_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +8 lines, -49 lines 0 comments Download

Messages

Total messages: 34 (11 generated)
boliu
Early thoughts? The production code changes are all there. Negative line number so far, but ...
5 years, 2 months ago (2015-10-23 18:02:47 UTC) #2
danakj
On 2015/10/23 18:02:47, boliu wrote: > Early thoughts? > > The production code changes are ...
5 years, 2 months ago (2015-10-23 18:13:10 UTC) #3
boliu
kk, will come back when tests are in good shape.. https://codereview.chromium.org/1418273002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/1418273002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode1513 ...
5 years, 2 months ago (2015-10-23 18:18:20 UTC) #4
boliu
And I'm back! Tests are fixed. And added a couple of new LTHIUnittests Two things ...
5 years, 1 month ago (2015-11-04 00:39:11 UTC) #9
boliu
ping?
5 years, 1 month ago (2015-11-06 16:52:46 UTC) #10
danakj
lgtm Hey! This is great, thanks for the CL. I have some comments/questions about testing ...
5 years ago (2015-11-24 21:17:31 UTC) #12
danakj
And I hit the lgtm button by accident hah. Anyways...
5 years ago (2015-11-24 21:17:56 UTC) #13
boliu
rebase + changes in two patch sets :) https://codereview.chromium.org/1418273002/diff/80001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1418273002/diff/80001/cc/layers/picture_layer_impl_unittest.cc#newcode1755 cc/layers/picture_layer_impl_unittest.cc:1755: host_impl_.SetExternalViewporForTesting(viewport); ...
5 years ago (2015-11-24 23:27:38 UTC) #15
boliu
back from vacation, and just rebased this patch ptal?
5 years ago (2015-12-07 23:17:31 UTC) #16
boliu
On 2015/12/07 23:17:31, boliu wrote: > back from vacation, and just rebased this patch > ...
5 years ago (2015-12-10 16:46:00 UTC) #17
danakj
https://codereview.chromium.org/1418273002/diff/80001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1418273002/diff/80001/cc/layers/picture_layer_impl_unittest.cc#newcode1755 cc/layers/picture_layer_impl_unittest.cc:1755: host_impl_.SetExternalViewporForTesting(viewport); There's a typo "SetExternalViewporForTesting" -> Viewport On 2015/11/24 ...
5 years ago (2015-12-10 22:33:54 UTC) #18
brianderson
Scheduler changes lgtm. https://codereview.chromium.org/1418273002/diff/180001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/1418273002/diff/180001/cc/trees/layer_tree_host_impl.cc#newcode1470 cc/trees/layer_tree_host_impl.cc:1470: const gfx::Transform& transform) { Would it ...
5 years ago (2015-12-14 20:51:26 UTC) #19
boliu
Spent afternoon trying to remove the ForTesting methods. Got rid of a few more uses, ...
5 years ago (2015-12-15 23:46:45 UTC) #20
boliu
https://codereview.chromium.org/1418273002/diff/220001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1418273002/diff/220001/cc/trees/layer_tree_host_impl_unittest.cc#newcode6014 cc/trees/layer_tree_host_impl_unittest.cc:6014: SetResourcelessSoftwareDraw(); // Needed to draw while viewport invalid. On ...
5 years ago (2015-12-16 00:00:50 UTC) #21
boliu
PTAL Managed to get rid of SetResourcelessSoftwareDrawForTesting \o/ SetExternalViewportForTesting remains due to my question on ...
5 years ago (2015-12-16 01:17:47 UTC) #22
boliu
Rebaselined pixel tests. Weirdly one more pixel test failing this morning after rebase. Looked into ...
5 years ago (2015-12-16 19:06:42 UTC) #23
brianderson
Ok. Still lgtm.
5 years ago (2015-12-16 22:49:25 UTC) #24
danakj
LGTM https://codereview.chromium.org/1418273002/diff/220001/cc/test/layer_tree_pixel_test.cc File cc/test/layer_tree_pixel_test.cc (right): https://codereview.chromium.org/1418273002/diff/220001/cc/test/layer_tree_pixel_test.cc#newcode77 cc/test/layer_tree_pixel_test.cc:77: impl->SetExternalViewportForTesting(viewport); On 2015/12/15 23:46:45, boliu wrote: > This ...
5 years ago (2015-12-16 23:57:53 UTC) #25
boliu
https://codereview.chromium.org/1418273002/diff/280001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1418273002/diff/280001/cc/trees/layer_tree_host_impl_unittest.cc#newcode6065 cc/trees/layer_tree_host_impl_unittest.cc:6065: TestEmptyLayerWithOnDraw(); On 2015/12/16 23:57:53, danakj (behind on reviews) wrote: ...
5 years ago (2015-12-17 00:14:07 UTC) #26
danakj
https://codereview.chromium.org/1418273002/diff/280001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/1418273002/diff/280001/cc/trees/layer_tree_host_impl_unittest.cc#newcode6065 cc/trees/layer_tree_host_impl_unittest.cc:6065: TestEmptyLayerWithOnDraw(); On 2015/12/17 00:14:07, boliu wrote: > On 2015/12/16 ...
5 years ago (2015-12-17 00:31:24 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1418273002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1418273002/300001
5 years ago (2015-12-17 00:33:26 UTC) #30
commit-bot: I haz the power
Committed patchset #15 (id:300001)
5 years ago (2015-12-17 03:16:17 UTC) #32
commit-bot: I haz the power
5 years ago (2015-12-17 03:17:30 UTC) #34
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/7097ee5b1f3691d12f425d719d33698bb90261b6
Cr-Commit-Position: refs/heads/master@{#365700}

Powered by Google App Engine
This is Rietveld 408576698