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

Issue 11830040: cc: Do not request redraw on commit when impl-side painting (Closed)

Created:
7 years, 11 months ago by brianderson
Modified:
7 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@decouple_draw3
Visibility:
Public.

Description

cc: Do not request redraw on commit when impl-side painting When impl-side painting, we draw when the pending tree becomes active and should no longer draw on commit. BUG=168724 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177274

Patch Set 1 #

Total comments: 9

Patch Set 2 : Keep needsRedraw decision in the commit state #

Total comments: 4

Patch Set 3 : Pass down layerTreeSettings #

Patch Set 4 : fix cc_unittests #

Total comments: 7

Patch Set 5 : Address comments #

Patch Set 6 : delete unnecessary forward declaration, add comments #

Total comments: 2

Patch Set 7 : store copy of settings + nits #

Total comments: 1

Patch Set 8 : Use CC_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -57 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layer_tree_host_unittest_scroll.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M cc/scheduler.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -3 lines 0 comments Download
M cc/scheduler.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
A cc/scheduler_settings.h View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
A cc/scheduler_settings.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M cc/scheduler_state_machine.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M cc/scheduler_state_machine.cc View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M cc/scheduler_state_machine_unittest.cc View 1 2 3 4 5 6 37 chunks +77 lines, -37 lines 0 comments Download
M cc/scheduler_unittest.cc View 1 2 3 4 10 chunks +20 lines, -10 lines 0 comments Download
M cc/thread_proxy.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
enne (OOO)
https://codereview.chromium.org/11830040/diff/1/cc/thread_proxy.cc File cc/thread_proxy.cc (right): https://codereview.chromium.org/11830040/diff/1/cc/thread_proxy.cc#newcode414 cc/thread_proxy.cc:414: if (!m_layerTreeHost->settings().implSidePainting) I understand moving the conditional in the ...
7 years, 11 months ago (2013-01-10 03:45:31 UTC) #1
nduca
https://codereview.chromium.org/11830040/diff/1/cc/scheduler_state_machine.cc File cc/scheduler_state_machine.cc (left): https://codereview.chromium.org/11830040/diff/1/cc/scheduler_state_machine.cc#oldcode188 cc/scheduler_state_machine.cc:188: m_needsRedraw = true; this seems really funky https://codereview.chromium.org/11830040/diff/1/cc/thread_proxy.cc File ...
7 years, 11 months ago (2013-01-10 11:01:09 UTC) #2
nduca
7 years, 11 months ago (2013-01-10 11:01:10 UTC) #3
brianderson
https://codereview.chromium.org/11830040/diff/1/cc/thread_proxy.cc File cc/thread_proxy.cc (right): https://codereview.chromium.org/11830040/diff/1/cc/thread_proxy.cc#newcode414 cc/thread_proxy.cc:414: if (!m_layerTreeHost->settings().implSidePainting) Ah, I saw this being called after ...
7 years, 11 months ago (2013-01-10 18:55:32 UTC) #4
brianderson
Please take a look again.
7 years, 11 months ago (2013-01-11 00:06:17 UTC) #5
nduca
lgtm with nit https://codereview.chromium.org/11830040/diff/7001/cc/scheduler.h File cc/scheduler.h (right): https://codereview.chromium.org/11830040/diff/7001/cc/scheduler.h#newcode52 cc/scheduler.h:52: static scoped_ptr<Scheduler> create(SchedulerClient* client, scoped_ptr<FrameRateController> frameRateController, ...
7 years, 11 months ago (2013-01-11 04:07:31 UTC) #6
brianderson
https://codereview.chromium.org/11830040/diff/7001/cc/scheduler.h File cc/scheduler.h (right): https://codereview.chromium.org/11830040/diff/7001/cc/scheduler.h#newcode52 cc/scheduler.h:52: static scoped_ptr<Scheduler> create(SchedulerClient* client, scoped_ptr<FrameRateController> frameRateController, bool implSidePaintingEnabled) On ...
7 years, 11 months ago (2013-01-12 00:38:34 UTC) #7
nduca
sgtm
7 years, 11 months ago (2013-01-12 00:39:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/11830040/15001
7 years, 11 months ago (2013-01-14 18:03:08 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-14 18:29:51 UTC) #10
brianderson
Requesting another review pass for my changes to the tests.
7 years, 11 months ago (2013-01-15 00:57:11 UTC) #11
nduca
https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_host_unittest_scroll.cc File cc/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_host_unittest_scroll.cc#newcode561 cc/layer_tree_host_unittest_scroll.cc:561: impl->setNeedsRedraw(); any idea why this one happened? https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_settings.cc File ...
7 years, 11 months ago (2013-01-15 01:54:54 UTC) #12
enne (OOO)
https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_host_unittest_scroll.cc File cc/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_host_unittest_scroll.cc#newcode561 cc/layer_tree_host_unittest_scroll.cc:561: impl->setNeedsRedraw(); On 2013/01/15 01:54:54, nduca wrote: > any idea ...
7 years, 11 months ago (2013-01-15 01:58:35 UTC) #13
brianderson
https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_host_unittest_scroll.cc File cc/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/11830040/diff/13005/cc/layer_tree_host_unittest_scroll.cc#newcode561 cc/layer_tree_host_unittest_scroll.cc:561: impl->setNeedsRedraw(); On 2013/01/15 01:58:35, enne wrote: > On 2013/01/15 ...
7 years, 11 months ago (2013-01-15 02:01:56 UTC) #14
brianderson
ptal
7 years, 11 months ago (2013-01-16 01:39:07 UTC) #15
nduca
lgtm. Go ahead and land without any more review. But no virtual ~, make a ...
7 years, 11 months ago (2013-01-16 02:16:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/11830040/37001
7 years, 11 months ago (2013-01-16 02:53:28 UTC) #17
brianderson
Many of the trybots are failing to link in SchedulerSettings. I've added the new files ...
7 years, 11 months ago (2013-01-16 03:31:26 UTC) #18
danakj
https://codereview.chromium.org/11830040/diff/37001/cc/scheduler_settings.h File cc/scheduler_settings.h (right): https://codereview.chromium.org/11830040/diff/37001/cc/scheduler_settings.h#newcode10 cc/scheduler_settings.h:10: class SchedulerSettings You want CC_EXPORT here (defined in cc/cc_export.h)
7 years, 11 months ago (2013-01-16 03:36:18 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chromeos_unittests, ...
7 years, 11 months ago (2013-01-16 04:06:20 UTC) #20
brianderson
Thanks for the quick response Dana. Giving CC_EXPORT a try.
7 years, 11 months ago (2013-01-16 19:54:16 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/11830040/53001
7 years, 11 months ago (2013-01-16 19:56:12 UTC) #22
commit-bot: I haz the power
7 years, 11 months ago (2013-01-17 00:03:49 UTC) #23
Message was sent while issue was closed.
Change committed as 177274

Powered by Google App Engine
This is Rietveld 408576698