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

Issue 2174653002: cc: Break up with FakeLayerTreeHostClient. (Closed)

Created:
4 years, 5 months ago by danakj
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@fakeoutputsurface
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Break up with FakeLayerTreeHostClient. This class is mostly a stub but not quite. And it's also a stub of LayerTreeHostSingleThreadClient. Break it up into two real stubs of those interfaces. And it inherits from StubLayerTreeHostClient and implements just what it needs to be the client for FakeLayerTreeHost. Now stuff that isn't using FakeLayerTreeHost doesn't need to use FakeLayerTreeHostClient, they can use the StubLayerTreeHostClient. R=enne,dtrainor TBR=miguelg BUG=606056 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_blink_rel Committed: https://crrev.com/ffc181a212a047aaaa8e653c759d51d25eb3c71c Cr-Commit-Position: refs/heads/master@{#407288}

Patch Set 1 #

Patch Set 2 : lthclient-tests: . #

Patch Set 3 : lthclient-tests: rebase #

Total comments: 10

Patch Set 4 : lthclient-tests: perftests #

Patch Set 5 : lthclient-tests: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -95 lines) Patch
M cc/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/animation/animation_host_perftest.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M cc/cc_tests.gyp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/layer_perftest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M cc/layers/layer_unittest.cc View 4 chunks +5 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 4 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M cc/layers/texture_layer_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M cc/layers/ui_resource_layer_unittest.cc View 3 chunks +3 lines, -1 line 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 2 chunks +4 lines, -30 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/test/layer_test_common.h View 1 chunk +1 line, -0 lines 0 comments Download
A + cc/test/stub_layer_tree_host_client.h View 2 chunks +8 lines, -26 lines 0 comments Download
A + cc/test/stub_layer_tree_host_client.cc View 1 chunk +4 lines, -7 lines 0 comments Download
A cc/test/stub_layer_tree_host_single_thread_client.h View 1 chunk +27 lines, -0 lines 0 comments Download
A cc/test/stub_layer_tree_host_single_thread_client.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M cc/trees/tree_synchronizer_unittest.cc View 4 chunks +6 lines, -4 lines 0 comments Download
M ui/android/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M ui/android/resources/resource_manager_impl_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 35 (26 generated)
danakj
4 years, 5 months ago (2016-07-22 03:42:31 UTC) #8
vmpstr
This looks good, I just had some clarifying questions. Maybe what is confusing to me ...
4 years, 5 months ago (2016-07-22 21:08:43 UTC) #22
danakj
https://codereview.chromium.org/2174653002/diff/40001/cc/layers/layer_unittest.cc File cc/layers/layer_unittest.cc (right): https://codereview.chromium.org/2174653002/diff/40001/cc/layers/layer_unittest.cc#newcode923 cc/layers/layer_unittest.cc:923: new StrictMock<MockLayerTreeHost>(&single_thread_client_, &params)); On 2016/07/22 21:08:42, vmpstr wrote: > ...
4 years, 5 months ago (2016-07-22 21:19:30 UTC) #23
danakj
https://codereview.chromium.org/2174653002/diff/40001/cc/layers/texture_layer_unittest.cc File cc/layers/texture_layer_unittest.cc (right): https://codereview.chromium.org/2174653002/diff/40001/cc/layers/texture_layer_unittest.cc#newcode88 cc/layers/texture_layer_unittest.cc:88: MockLayerTreeHost(FakeLayerTreeHostClient* client, On 2016/07/22 21:08:43, vmpstr wrote: > not ...
4 years, 5 months ago (2016-07-22 21:21:20 UTC) #24
vmpstr
Thanks for the explanation. I was a bit confused but it was because of our ...
4 years, 5 months ago (2016-07-22 21:28:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2174653002/80001
4 years, 5 months ago (2016-07-22 22:17:13 UTC) #30
David Trainor- moved to gerrit
Sorry for the delayed reply. lgtm as well :).
4 years, 5 months ago (2016-07-22 22:26:48 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-22 22:49:00 UTC) #33
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 22:50:38 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ffc181a212a047aaaa8e653c759d51d25eb3c71c
Cr-Commit-Position: refs/heads/master@{#407288}

Powered by Google App Engine
This is Rietveld 408576698