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

Issue 11344004: Remove WebKit::Platform dependencies from cc (Closed)

Created:
8 years, 1 month ago by jamesr
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Remove WebKit::Platform dependencies from cc This removes all dependencies on the static WebKit::Platform pointer from cc. The biggest change is implementing cc::Thread on top of base::MessageLoopProxy instead of WebKit::WebThread. For the main thread cc::Thread simply binds to the current thread's MessageLoopProxy. For the impl thread, the bindings layer (specifically webkit/compositor_bindings/web_compositor_impl) extracts the MessageLoopProxy out of the passed in WebThread. BUG=144539 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165050 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=165060

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 3

Patch Set 3 : fix webkit_compositor_bindings #

Patch Set 4 : fix ScopedThreadProxy #

Patch Set 5 : fix clang warning/error in layer_tree_test_common.cc #

Patch Set 6 : #

Patch Set 7 : fix webkit_compositor_bindings_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -1263 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M cc/delay_based_time_source.h View 3 chunks +8 lines, -9 lines 0 comments Download
M cc/delay_based_time_source.cc View 5 chunks +9 lines, -4 lines 0 comments Download
M cc/frame_rate_controller.h View 4 chunks +7 lines, -6 lines 0 comments Download
M cc/frame_rate_controller.cc View 5 chunks +8 lines, -4 lines 0 comments Download
M cc/gl_renderer_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 3 4 5 4 chunks +14 lines, -34 lines 0 comments Download
M cc/layer_unittest.cc View 10 chunks +0 lines, -10 lines 0 comments Download
M cc/prioritized_texture_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/proxy.cc View 6 chunks +7 lines, -12 lines 0 comments Download
M cc/rate_limiter.cc View 2 chunks +1 line, -24 lines 0 comments Download
M cc/resource_update_controller.h View 5 chunks +8 lines, -6 lines 0 comments Download
M cc/resource_update_controller.cc View 7 chunks +19 lines, -8 lines 0 comments Download
M cc/resource_update_controller_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/scoped_thread_proxy.h View 1 2 3 4 5 2 chunks +11 lines, -35 lines 0 comments Download
M cc/scoped_thread_proxy.cc View 2 chunks +26 lines, -1 line 0 comments Download
M cc/single_thread_proxy.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/layer_tree_test_common.h View 1 2 3 4 5 4 chunks +8 lines, -7 lines 0 comments Download
M cc/test/layer_tree_test_common.cc View 1 3 4 5 5 chunks +26 lines, -74 lines 0 comments Download
M cc/test/run_all_unittests.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M cc/test/scheduler_test_common.h View 4 chunks +7 lines, -13 lines 0 comments Download
M cc/test/scheduler_test_common.cc View 1 chunk +14 lines, -7 lines 0 comments Download
D cc/test/test_webkit_platform.h View 1 chunk +0 lines, -44 lines 0 comments Download
D cc/test/test_webkit_platform.cc View 1 chunk +0 lines, -53 lines 0 comments Download
D cc/test/web_compositor_initializer.h View 1 chunk +0 lines, -36 lines 0 comments Download
M cc/texture_layer_unittest.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M cc/thread.h View 2 chunks +5 lines, -18 lines 0 comments Download
A cc/thread_impl.h View 1 chunk +39 lines, -0 lines 0 comments Download
A cc/thread_impl.cc View 1 chunk +45 lines, -0 lines 0 comments Download
M cc/thread_proxy.h View 1 2 3 4 5 3 chunks +1 line, -3 lines 0 comments Download
M cc/thread_proxy.cc View 1 29 chunks +42 lines, -62 lines 0 comments Download
D cc/thread_task.h View 1 2 3 4 5 1 chunk +0 lines, -305 lines 0 comments Download
D cc/thread_task_unittest.cc View 1 1 chunk +0 lines, -42 lines 0 comments Download
M cc/tiled_layer_unittest.cc View 3 chunks +1 line, -4 lines 0 comments Download
D cc/timer.h View 1 chunk +0 lines, -41 lines 0 comments Download
D cc/timer.cc View 1 chunk +0 lines, -81 lines 0 comments Download
D cc/timer_unittest.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D webkit/compositor_bindings/ccthread_impl.h View 1 chunk +0 lines, -41 lines 0 comments Download
D webkit/compositor_bindings/ccthread_impl.cc View 1 chunk +0 lines, -102 lines 0 comments Download
M webkit/compositor_bindings/compositor_bindings.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/compositor_bindings/test/run_all_unittests.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/compositor_bindings/web_compositor_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_unittest.cc View 1 2 3 4 5 6 6 chunks +24 lines, -70 lines 0 comments Download
M webkit/compositor_bindings/web_layer_unittest.cc View 1 2 3 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jamesr
This depends on http://codereview.chromium.org/11191068/ @aelias - this should complement http://codereview.chromium.org/11232051/ very nicely. With both landed, ...
8 years, 1 month ago (2012-10-28 22:12:28 UTC) #1
enne (OOO)
http://codereview.chromium.org/11344004/diff/3001/cc/scoped_thread_proxy.h File cc/scoped_thread_proxy.h (right): http://codereview.chromium.org/11344004/diff/3001/cc/scoped_thread_proxy.h#newcode26 cc/scoped_thread_proxy.h:26: class ScopedThreadProxy : public base::RefCounted<ScopedThreadProxy> { Sanity checking: this ...
8 years, 1 month ago (2012-10-29 17:40:42 UTC) #2
jamesr
On 2012/10/29 17:40:42, enne wrote: > http://codereview.chromium.org/11344004/diff/3001/cc/scoped_thread_proxy.h > File cc/scoped_thread_proxy.h (right): > > http://codereview.chromium.org/11344004/diff/3001/cc/scoped_thread_proxy.h#newcode26 > ...
8 years, 1 month ago (2012-10-29 18:03:52 UTC) #3
enne (OOO)
lgtm Could you file a bug to remove cc::Thread entirely in some other patch?
8 years, 1 month ago (2012-10-29 22:14:09 UTC) #4
jamesr
On 2012/10/29 22:14:09, enne wrote: > lgtm > > Could you file a bug to ...
8 years, 1 month ago (2012-10-29 23:25:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11344004/10002
8 years, 1 month ago (2012-10-29 23:52:11 UTC) #6
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 1 month ago (2012-10-30 01:13:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11344004/10002
8 years, 1 month ago (2012-10-30 01:22:13 UTC) #8
commit-bot: I haz the power
Failed to apply patch for cc/test/layer_tree_test_common.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-10-30 01:22:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/11344004/12002
8 years, 1 month ago (2012-10-30 20:29:15 UTC) #10
commit-bot: I haz the power
Failed to apply patch for cc/test/layer_tree_test_common.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-10-30 22:55:16 UTC) #11
Sergey Ulanov
8 years, 1 month ago (2012-10-30 23:22:17 UTC) #12

Powered by Google App Engine
This is Rietveld 408576698