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

Issue 2382733007: Add BlimpDocument, pull out functions in BlimpCompositor. (Closed)

Created:
4 years, 2 months ago by xingliu
Modified:
4 years, 2 months ago
CC:
anandc+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, chromium-reviews, dtrainor+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add BlimpDocument, pull out functions in BlimpCompositor. Previously BlimpCompositor is heavy weight class that also include render_widget_id and input manager, and we have the following ownership: BlimpContentImpl -> BlimpCompositorManager -> BlimpCompositor. This CL: 1. Rename BlimpCompositorManager to BlimpDocumentManager. 2. Add BlimpDocument, which owns a BlimpCompositor. It matches the idea of helium document. So more feature with document scope can goes in this layer. 3. Unit test for new class, and also rename old unit tests. The ownership chains now become the following: BlimpContentImpl->BlimpDocumentManager->BlimpDocument->BlimpCompositor. BUG=644326 Committed: https://crrev.com/d78db80d1a9953c01fe68f94adee0f4460cb2caf Cr-Commit-Position: refs/heads/master@{#423629}

Patch Set 1 #

Patch Set 2 : Minor polish. #

Patch Set 3 : Fix linux client. #

Total comments: 25

Patch Set 4 : Rebased #

Patch Set 5 : Fixes according to feedback. #

Patch Set 6 : Renamed most render_widget_id to document_id. #

Total comments: 2

Patch Set 7 : Add some test details for compositor layers. #

Total comments: 4

Patch Set 8 : Fix the include for dir moving in WebInput. #

Patch Set 9 : Move mock_render_widget_feature to core/render_widget #

Patch Set 10 : Clean up build file. #

Total comments: 2

Patch Set 11 : Remove Webkit DEPS modification. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+561 lines, -596 lines) Patch
M blimp/client/app/android/blimp_view.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/client/app/android/blimp_view.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M blimp/client/core/compositor/BUILD.gn View 4 chunks +0 lines, -6 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +1 line, -9 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +6 lines, -8 lines 0 comments Download
D blimp/client/core/compositor/blimp_compositor_manager.h View 1 chunk +0 lines, -106 lines 0 comments Download
D blimp/client/core/compositor/blimp_compositor_manager.cc View 1 chunk +0 lines, -136 lines 0 comments Download
D blimp/client/core/compositor/blimp_compositor_manager_unittest.cc View 1 chunk +0 lines, -193 lines 0 comments Download
M blimp/client/core/compositor/blimp_compositor_unittest.cc View 5 chunks +9 lines, -17 lines 0 comments Download
M blimp/client/core/contents/BUILD.gn View 2 chunks +1 line, -1 line 0 comments Download
M blimp/client/core/contents/android/blimp_view.cc View 1 chunk +0 lines, -1 line 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.h View 2 chunks +5 lines, -4 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M blimp/client/core/contents/blimp_contents_view_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M blimp/client/core/feedback/blimp_feedback_data.cc View 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/core/render_widget/BUILD.gn View 1 2 3 4 5 6 7 8 9 6 chunks +15 lines, -0 lines 0 comments Download
A blimp/client/core/render_widget/blimp_document.h View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A blimp/client/core/render_widget/blimp_document.cc View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A + blimp/client/core/render_widget/blimp_document_manager.h View 1 2 3 4 5 6 7 8 5 chunks +41 lines, -39 lines 0 comments Download
A blimp/client/core/render_widget/blimp_document_manager.cc View 1 2 3 4 5 1 chunk +136 lines, -0 lines 0 comments Download
A + blimp/client/core/render_widget/blimp_document_manager_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +90 lines, -48 lines 0 comments Download
A blimp/client/core/render_widget/blimp_document_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A blimp/client/core/render_widget/mock_render_widget_feature.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A + blimp/client/core/render_widget/mock_render_widget_feature.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -6 lines 0 comments Download
M blimp/client/core/render_widget/render_widget_feature.h View 1 chunk +9 lines, -6 lines 0 comments Download

Messages

Total messages: 64 (43 generated)
xingliu
Added BlimpDocument, renamed BlimpCompositorManager.
4 years, 2 months ago (2016-09-30 23:14:01 UTC) #6
Khushal
https://codereview.chromium.org/2382733007/diff/40001/blimp/client/DEPS File blimp/client/DEPS (right): https://codereview.chromium.org/2382733007/diff/40001/blimp/client/DEPS#newcode16 blimp/client/DEPS:16: "+third_party/WebKit/public/platform/WebInputEvent.h", Why did we need to change this? https://codereview.chromium.org/2382733007/diff/40001/blimp/client/core/feedback/BUILD.gn ...
4 years, 2 months ago (2016-10-03 20:05:00 UTC) #9
xingliu
Fixes based on review. Rename render_widget_id to document_id. https://codereview.chromium.org/2382733007/diff/40001/blimp/client/DEPS File blimp/client/DEPS (right): https://codereview.chromium.org/2382733007/diff/40001/blimp/client/DEPS#newcode16 blimp/client/DEPS:16: "+third_party/WebKit/public/platform/WebInputEvent.h", ...
4 years, 2 months ago (2016-10-04 18:33:50 UTC) #12
Khushal
lgtm. Thanks! https://codereview.chromium.org/2382733007/diff/40001/blimp/client/core/render_widget/blimp_document.h File blimp/client/core/render_widget/blimp_document.h (right): https://codereview.chromium.org/2382733007/diff/40001/blimp/client/core/render_widget/blimp_document.h#newcode46 blimp/client/core/render_widget/blimp_document.h:46: const int render_widget_id_; On 2016/10/04 18:33:49, xingliu ...
4 years, 2 months ago (2016-10-04 18:49:54 UTC) #13
xingliu
Thanks for the feedback, added some more test checks on compositor layers. https://codereview.chromium.org/2382733007/diff/100001/blimp/client/core/render_widget/blimp_document_manager_unittest.cc File blimp/client/core/render_widget/blimp_document_manager_unittest.cc ...
4 years, 2 months ago (2016-10-04 20:17:49 UTC) #16
David Trainor- moved to gerrit
https://codereview.chromium.org/2382733007/diff/120001/blimp/client/core/render_widget/blimp_document_manager.h File blimp/client/core/render_widget/blimp_document_manager.h (right): https://codereview.chromium.org/2382733007/diff/120001/blimp/client/core/render_widget/blimp_document_manager.h#newcode21 blimp/client/core/render_widget/blimp_document_manager.h:21: // The BlimpDocumentManager Suggest: The BlimpDocumentManager is responsible for: ...
4 years, 2 months ago (2016-10-04 22:29:02 UTC) #21
xingliu
Thanks for the feedback, moved mock_render_widget_feature to core/render_widget. https://codereview.chromium.org/2382733007/diff/120001/blimp/client/core/render_widget/blimp_document_manager.h File blimp/client/core/render_widget/blimp_document_manager.h (right): https://codereview.chromium.org/2382733007/diff/120001/blimp/client/core/render_widget/blimp_document_manager.h#newcode21 blimp/client/core/render_widget/blimp_document_manager.h:21: // ...
4 years, 2 months ago (2016-10-05 00:40:08 UTC) #26
David Trainor- moved to gerrit
lgtm!
4 years, 2 months ago (2016-10-05 16:29:28 UTC) #29
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/2382733007/180001
4 years, 2 months ago (2016-10-05 20:53:02 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/274617)
4 years, 2 months ago (2016-10-05 21:05:17 UTC) #34
xingliu
@pdr, please help review blimp/client/DEPS.
4 years, 2 months ago (2016-10-05 21:56:17 UTC) #36
pdr.
On 2016/10/05 at 21:56:17, xingliu wrote: > @pdr, please help review blimp/client/DEPS. I'm sorry, I'm ...
4 years, 2 months ago (2016-10-05 22:33:54 UTC) #38
xingliu
On 2016/10/05 22:33:54, pdr. wrote: > On 2016/10/05 at 21:56:17, xingliu wrote: > > @pdr, ...
4 years, 2 months ago (2016-10-05 23:12:00 UTC) #39
kouhei (in TOK)
https://codereview.chromium.org/2382733007/diff/180001/blimp/client/DEPS File blimp/client/DEPS (right): https://codereview.chromium.org/2382733007/diff/180001/blimp/client/DEPS#newcode16 blimp/client/DEPS:16: "+third_party/WebKit/public/platform/WebInputEvent.h", This lgtm. However I'm not sure how this ...
4 years, 2 months ago (2016-10-05 23:16:29 UTC) #40
xingliu
If everything looks fine, then I'll prepare to put it into CQ. https://codereview.chromium.org/2382733007/diff/180001/blimp/client/DEPS File blimp/client/DEPS ...
4 years, 2 months ago (2016-10-05 23:41:09 UTC) #43
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/2382733007/180001
4 years, 2 months ago (2016-10-06 01:58:06 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/274941)
4 years, 2 months ago (2016-10-06 02:06:33 UTC) #47
xingliu
On 2016/10/05 23:16:29, kouhei wrote: > https://codereview.chromium.org/2382733007/diff/180001/blimp/client/DEPS > File blimp/client/DEPS (right): > > https://codereview.chromium.org/2382733007/diff/180001/blimp/client/DEPS#newcode16 > ...
4 years, 2 months ago (2016-10-06 19:23:01 UTC) #57
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/2382733007/200001
4 years, 2 months ago (2016-10-06 19:23:51 UTC) #60
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-06 19:34:36 UTC) #62
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 19:39:19 UTC) #64
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d78db80d1a9953c01fe68f94adee0f4460cb2caf
Cr-Commit-Position: refs/heads/master@{#423629}

Powered by Google App Engine
This is Rietveld 408576698