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

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed)

Created:
4 years, 6 months ago by Fady Samuel
Modified:
3 years, 7 months ago
Reviewers:
Tom Sepez, ajuma, Nico
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace cc::ViewportSelectionBound with ui::SelectionBound We'd like to be able to fully serialize CompositorFrames over mojo. CompositorFrameMetadata has a cc::ViewportSelection(Bound), which closely resembles gfx::SelectionBound. This CL works towards unifying these structs to reduce code duplication. BUG=611802 TBR=piman@ for content changes. CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/5ca57dfa32cb7a1d497890a166e82df86077a11d Cr-Commit-Position: refs/heads/master@{#397855}

Patch Set 1 #

Patch Set 2 : Use gfx::SelectionBound #

Total comments: 3

Patch Set 3 : Further cleanup #

Total comments: 2

Patch Set 4 : Addressed tsepez's comment #

Patch Set 5 : Add gyp geometry dependency #

Patch Set 6 : Fix android #

Patch Set 7 : Another attempt at fixing android #

Patch Set 8 : More Android fixing #

Patch Set 9 : Android build compiles locally #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -297 lines) Patch
M cc/BUILD.gn View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M cc/cc.gyp View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M cc/input/layer_selection_bound.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/input/layer_selection_bound.cc View 1 2 3 chunks +16 lines, -17 lines 0 comments Download
M cc/input/layer_selection_bound_unittest.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
D cc/input/selection_bound_type.h View 1 2 1 chunk +0 lines, -20 lines 0 comments Download
M cc/ipc/cc_param_traits.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/ipc/cc_param_traits_macros.h View 1 2 3 chunks +1 line, -10 lines 0 comments Download
M cc/output/compositor_frame_metadata.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cc/output/viewport_selection_bound.h View 1 1 chunk +0 lines, -36 lines 0 comments Download
D cc/output/viewport_selection_bound.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 2 chunks +11 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 4 chunks +14 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_impl_unittest.cc View 1 2 7 chunks +49 lines, -48 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -7 lines 0 comments Download
D content/browser/renderer_host/input/ui_touch_selection_helper.h View 1 1 chunk +0 lines, -21 lines 0 comments Download
D content/browser/renderer_host/input/ui_touch_selection_helper.cc View 1 1 chunk +0 lines, -42 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 3 chunks +1 line, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -8 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 3 chunks +31 lines, -2 lines 0 comments Download
M ui/gfx/ipc/BUILD.gn View 1 2 chunks +3 lines, -4 lines 1 comment Download
M ui/gfx/ipc/gfx_ipc.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/ipc/gfx_param_traits.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ui/gfx/ipc/gfx_param_traits.cc View 1 2 3 2 chunks +50 lines, -0 lines 0 comments Download
M ui/gfx/ipc/gfx_param_traits_macros.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (29 generated)
Fady Samuel
Hi Sadrul, Could you please give me some initial thoughts? Thanks! Fady https://codereview.chromium.org/2030033003/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc ...
4 years, 6 months ago (2016-06-03 03:46:53 UTC) #4
sadrul
https://codereview.chromium.org/2030033003/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2030033003/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc#newcode8302 cc/trees/layer_tree_host_impl_unittest.cc:8302: // EXPECT_EQ(selection.start.type(), selection_after.start.type()); On 2016/06/03 03:46:53, Fady Samuel wrote: ...
4 years, 6 months ago (2016-06-03 07:59:21 UTC) #5
Fady Samuel
+ajuma@ for cc review. +tsepez@ for ipc review https://codereview.chromium.org/2030033003/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2030033003/diff/20001/cc/trees/layer_tree_host_impl_unittest.cc#newcode8302 cc/trees/layer_tree_host_impl_unittest.cc:8302: // ...
4 years, 6 months ago (2016-06-03 16:25:16 UTC) #7
Fady Samuel
+ajuma@ for cc review +tsepez@ for ipc review.
4 years, 6 months ago (2016-06-03 16:25:44 UTC) #9
Tom Sepez
https://codereview.chromium.org/2030033003/diff/40001/ui/gfx/ipc/gfx_param_traits.cc File ui/gfx/ipc/gfx_param_traits.cc (right): https://codereview.chromium.org/2030033003/diff/40001/ui/gfx/ipc/gfx_param_traits.cc#newcode109 ui/gfx/ipc/gfx_param_traits.cc:109: r->set_type(static_cast<gfx::SelectionBound::Type>(type)); We should add traits for the type enum ...
4 years, 6 months ago (2016-06-03 17:17:07 UTC) #10
ajuma
cc lgtm
4 years, 6 months ago (2016-06-03 17:32:27 UTC) #11
Fady Samuel
PTAL Tom! https://codereview.chromium.org/2030033003/diff/40001/ui/gfx/ipc/gfx_param_traits.cc File ui/gfx/ipc/gfx_param_traits.cc (right): https://codereview.chromium.org/2030033003/diff/40001/ui/gfx/ipc/gfx_param_traits.cc#newcode109 ui/gfx/ipc/gfx_param_traits.cc:109: r->set_type(static_cast<gfx::SelectionBound::Type>(type)); On 2016/06/03 17:17:06, Tom Sepez wrote: ...
4 years, 6 months ago (2016-06-03 17:39:06 UTC) #13
Tom Sepez
lgtm
4 years, 6 months ago (2016-06-03 17:47:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/60001
4 years, 6 months ago (2016-06-03 17:49:21 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/194854)
4 years, 6 months ago (2016-06-03 17:57:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/60001
4 years, 6 months ago (2016-06-03 17:59:15 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/76442)
4 years, 6 months ago (2016-06-03 18:05:28 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/80001
4 years, 6 months ago (2016-06-03 18:13:58 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/76311)
4 years, 6 months ago (2016-06-03 18:32:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/100001
4 years, 6 months ago (2016-06-03 19:10:44 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/76381)
4 years, 6 months ago (2016-06-03 19:30:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/120001
4 years, 6 months ago (2016-06-03 20:56:44 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/81870)
4 years, 6 months ago (2016-06-03 21:15:28 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/140001
4 years, 6 months ago (2016-06-03 22:17:07 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/81920)
4 years, 6 months ago (2016-06-03 22:34:53 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030033003/160001
4 years, 6 months ago (2016-06-03 22:58:10 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-04 00:35:16 UTC) #49
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/5ca57dfa32cb7a1d497890a166e82df86077a11d Cr-Commit-Position: refs/heads/master@{#397855}
4 years, 6 months ago (2016-06-04 00:37:49 UTC) #51
Nico
3 years, 7 months ago (2017-05-12 14:54:29 UTC) #53
Message was sent while issue was closed.
(fix here: https://chromium-review.googlesource.com/c/504767/)

https://codereview.chromium.org/2030033003/diff/160001/ui/gfx/ipc/BUILD.gn
File ui/gfx/ipc/BUILD.gn (left):

https://codereview.chromium.org/2030033003/diff/160001/ui/gfx/ipc/BUILD.gn#ol...
ui/gfx/ipc/BUILD.gn:2: # Use of this source code is governed by a BSD-style
license that can be
tsk tsk

Powered by Google App Engine
This is Rietveld 408576698