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

Issue 17362002: cc: Remove FakeThread, use SingleThreadTaskRunner in scheduling classes. (Closed)

Created:
7 years, 6 months ago by danakj
Modified:
7 years, 6 months ago
Reviewers:
brettw, piman
CC:
chromium-reviews, cc-bugs_chromium.org, erikwright+watch_chromium.org, backer, brianderson, nduca, akalin
Visibility:
Public.

Description

cc: Remove FakeThread, use SingleThreadTaskRunner in scheduling classes. This changes from using cc::Thread to base::SingleThreadTaskRunner in FrameRateController, DelayBasedTimeSource, and ResourceUpdateController. Then all unit tests for these classes are switched from using cc::FakeThread to base::TestSimpleTaskRunner. This is a step toward deleting cc::Thread and moving to using MessageLoopProxy directly in cc. R=piman BUG=251134 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207027

Patch Set 1 : rm-fakethread: #

Total comments: 2

Patch Set 2 : rm-fakethread: fixcrash #

Patch Set 3 : rm-fakethread: rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -285 lines) Patch
M base/test/test_simple_task_runner.h View 2 chunks +4 lines, -0 lines 0 comments Download
M base/test/test_simple_task_runner.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M cc/base/thread.h View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/base/thread_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/thread_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/output/output_surface.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M cc/output/output_surface_unittest.cc View 1 2 6 chunks +14 lines, -12 lines 0 comments Download
M cc/resources/resource_update_controller.h View 4 chunks +6 lines, -5 lines 0 comments Download
M cc/resources/resource_update_controller.cc View 5 chunks +8 lines, -5 lines 0 comments Download
M cc/resources/resource_update_controller_unittest.cc View 14 chunks +44 lines, -32 lines 0 comments Download
M cc/scheduler/delay_based_time_source.h View 3 chunks +9 lines, -6 lines 0 comments Download
M cc/scheduler/delay_based_time_source.cc View 4 chunks +13 lines, -12 lines 0 comments Download
M cc/scheduler/delay_based_time_source_unittest.cc View 3 chunks +122 lines, -103 lines 0 comments Download
M cc/scheduler/frame_rate_controller.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M cc/scheduler/frame_rate_controller.cc View 1 2 4 chunks +10 lines, -7 lines 0 comments Download
M cc/scheduler/frame_rate_controller_unittest.cc View 1 2 9 chunks +29 lines, -25 lines 0 comments Download
M cc/test/scheduler_test_common.h View 1 2 1 chunk +6 lines, -38 lines 0 comments Download
M cc/test/scheduler_test_common.cc View 1 2 1 chunk +0 lines, -25 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
danakj
7 years, 6 months ago (2013-06-18 02:56:06 UTC) #1
danakj
+akalin fyi for base/
7 years, 6 months ago (2013-06-18 02:58:54 UTC) #2
piman
LGTM, 1q https://codereview.chromium.org/17362002/diff/2001/cc/resources/resource_update_controller_unittest.cc File cc/resources/resource_update_controller_unittest.cc (right): https://codereview.chromium.org/17362002/diff/2001/cc/resources/resource_update_controller_unittest.cc#newcode185 cc/resources/resource_update_controller_unittest.cc:185: NULL, OK to pass a NULL TaskRunner ...
7 years, 6 months ago (2013-06-18 03:02:45 UTC) #3
danakj
https://codereview.chromium.org/17362002/diff/2001/cc/resources/resource_update_controller_unittest.cc File cc/resources/resource_update_controller_unittest.cc (right): https://codereview.chromium.org/17362002/diff/2001/cc/resources/resource_update_controller_unittest.cc#newcode185 cc/resources/resource_update_controller_unittest.cc:185: NULL, On 2013/06/18 03:02:45, piman wrote: > OK to ...
7 years, 6 months ago (2013-06-18 03:03:34 UTC) #4
danakj
+brettw for base/ OWNERS
7 years, 6 months ago (2013-06-18 03:04:00 UTC) #5
brettw
base owners lgtm rubberstamp
7 years, 6 months ago (2013-06-18 05:27:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17362002/11001
7 years, 6 months ago (2013-06-18 15:21:18 UTC) #7
commit-bot: I haz the power
Failed to apply patch for cc/scheduler/frame_rate_controller.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-18 15:21:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17362002/18001
7 years, 6 months ago (2013-06-18 15:35:52 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 17:39:53 UTC) #10
Message was sent while issue was closed.
Change committed as 207027

Powered by Google App Engine
This is Rietveld 408576698