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

Issue 131683005: cc: Make PrepareToDraw return an enum for why it aborts (Closed)

Created:
6 years, 10 months ago by enne (OOO)
Modified:
6 years, 10 months ago
Reviewers:
danakj, brianderson
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Make PrepareToDraw return an enum for why it aborts This is mostly a cosmetic patch to change a boolean into an enum. BUG=335289 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247869

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase #

Patch Set 3 : DRAW_SUCCESS; assert CanDraw #

Total comments: 21

Patch Set 4 : danakj review #

Patch Set 5 : wrapping... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -403 lines) Patch
M cc/cc.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl_unittest.cc View 1 2 25 chunks +50 lines, -25 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 2 chunks +64 lines, -52 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 4 chunks +15 lines, -12 lines 0 comments Download
M cc/output/delegating_renderer_unittest.cc View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
A cc/scheduler/draw_swap_readback_result.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler.h View 2 chunks +1 line, -10 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 3 chunks +3 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 3 chunks +32 lines, -26 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 16 chunks +29 lines, -23 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 chunks +13 lines, -9 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 chunk +4 lines, -3 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 2 chunks +11 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 9 chunks +23 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 66 chunks +132 lines, -66 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 15 chunks +45 lines, -37 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_animation.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 8 chunks +27 lines, -22 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 2 16 chunks +48 lines, -40 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_video.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 2 chunks +8 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
enne (OOO)
The only thing I'm not so sure about is what to do about aborting due ...
6 years, 10 months ago (2014-01-29 00:22:31 UTC) #1
brianderson
https://codereview.chromium.org/131683005/diff/1/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/131683005/diff/1/cc/scheduler/scheduler_state_machine.cc#newcode1039 cc/scheduler/scheduler_state_machine.cc:1039: // Nothing to do in these cases. External state ...
6 years, 10 months ago (2014-01-29 01:31:21 UTC) #2
brianderson
On 2014/01/29 00:22:31, enne wrote: > The only thing I'm not so sure about is ...
6 years, 10 months ago (2014-01-29 01:34:07 UTC) #3
enne (OOO)
https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc#newcode1147 cc/trees/thread_proxy.cc:1147: layer_tree_host_impl_->PrepareToDraw(&frame, readback_rect); On 2014/01/29 01:31:22, Brian Anderson wrote: > ...
6 years, 10 months ago (2014-01-29 01:40:18 UTC) #4
danakj
https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc#newcode1147 cc/trees/thread_proxy.cc:1147: layer_tree_host_impl_->PrepareToDraw(&frame, readback_rect); On 2014/01/29 01:40:19, enne wrote: > On ...
6 years, 10 months ago (2014-01-29 01:42:35 UTC) #5
enne (OOO)
https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc#newcode1147 cc/trees/thread_proxy.cc:1147: layer_tree_host_impl_->PrepareToDraw(&frame, readback_rect); On 2014/01/29 01:42:35, danakj wrote: > On ...
6 years, 10 months ago (2014-01-29 01:47:20 UTC) #6
brianderson
On 2014/01/29 01:47:20, enne wrote: > https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc > File cc/trees/thread_proxy.cc (right): > > https://codereview.chromium.org/131683005/diff/1/cc/trees/thread_proxy.cc#newcode1147 > ...
6 years, 10 months ago (2014-01-29 01:54:29 UTC) #7
enne (OOO)
Removed early outs and just asserted. Changed DID_DRAW to DRAW_SUCCESS. PTAL
6 years, 10 months ago (2014-01-29 20:57:05 UTC) #8
danakj
LGTM https://codereview.chromium.org/131683005/diff/40001/cc/output/delegating_renderer_unittest.cc File cc/output/delegating_renderer_unittest.cc (right): https://codereview.chromium.org/131683005/diff/40001/cc/output/delegating_renderer_unittest.cc#newcode114 cc/output/delegating_renderer_unittest.cc:114: return DrawSwapReadbackResult::DRAW_SUCCESS; nit: can you make this return ...
6 years, 10 months ago (2014-01-29 21:56:28 UTC) #9
enne (OOO)
https://codereview.chromium.org/131683005/diff/40001/cc/output/delegating_renderer_unittest.cc File cc/output/delegating_renderer_unittest.cc (right): https://codereview.chromium.org/131683005/diff/40001/cc/output/delegating_renderer_unittest.cc#newcode114 cc/output/delegating_renderer_unittest.cc:114: return DrawSwapReadbackResult::DRAW_SUCCESS; On 2014/01/29 21:56:29, danakj wrote: > nit: ...
6 years, 10 months ago (2014-01-29 23:09:22 UTC) #10
danakj
https://codereview.chromium.org/131683005/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/131683005/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode1124 cc/trees/layer_tree_host_impl.cc:1124: // this On 2014/01/29 23:09:23, enne wrote: > On ...
6 years, 10 months ago (2014-01-29 23:10:47 UTC) #11
enne (OOO)
https://codereview.chromium.org/131683005/diff/40001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/131683005/diff/40001/cc/trees/layer_tree_host_impl.cc#newcode1124 cc/trees/layer_tree_host_impl.cc:1124: // this On 2014/01/29 23:09:23, enne wrote: > On ...
6 years, 10 months ago (2014-01-29 23:11:27 UTC) #12
brianderson
lgtm
6 years, 10 months ago (2014-01-30 00:15:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/131683005/80001
6 years, 10 months ago (2014-01-30 00:18:10 UTC) #14
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=110772
6 years, 10 months ago (2014-01-30 01:27:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/131683005/80001
6 years, 10 months ago (2014-01-30 01:39:47 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 03:03:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/131683005/80001
6 years, 10 months ago (2014-01-30 03:09:14 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 07:22:33 UTC) #19
Message was sent while issue was closed.
Change committed as 247869

Powered by Google App Engine
This is Rietveld 408576698