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

Issue 18139004: cc: Create a LayerScrollClient interface and an adapter class in compositor_bindings. (Closed)

Created:
7 years, 5 months ago by tfarina
Modified:
7 years, 5 months ago
Reviewers:
danakj, jamesr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

cc: Use base::Callback approach instead of using WebKit interface. Instead of having cc/ talk directly to the WebKit::WebLayerScrollClient, we define a callback in cc/ that it can talk to. In the compositor_bindings, we pass this callback down to cc, so it can call us back later. BUG=None TEST=cc_unittests, webkit_compositor_bindings_unittests R=jamesr@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209386

Patch Set 1 #

Total comments: 4

Patch Set 2 : now using base::Callback approach #

Patch Set 3 : fixes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -29 lines) Patch
M cc/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 3 chunks +3 lines, -7 lines 0 comments Download
M cc/layers/layer.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 6 chunks +13 lines, -13 lines 3 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_layer_impl.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
tfarina
7 years, 5 months ago (2013-06-28 00:08:45 UTC) #1
jamesr
https://codereview.chromium.org/18139004/diff/1/cc/layers/layer_scroll_client.h File cc/layers/layer_scroll_client.h (right): https://codereview.chromium.org/18139004/diff/1/cc/layers/layer_scroll_client.h#newcode12 cc/layers/layer_scroll_client.h:12: virtual void DidScroll() = 0; i wonder if instead ...
7 years, 5 months ago (2013-06-28 00:12:45 UTC) #2
tfarina
On 2013/06/28 00:12:45, jamesr wrote: > https://codereview.chromium.org/18139004/diff/1/cc/layers/layer_scroll_client.h > File cc/layers/layer_scroll_client.h (right): > > https://codereview.chromium.org/18139004/diff/1/cc/layers/layer_scroll_client.h#newcode12 > ...
7 years, 5 months ago (2013-06-28 02:07:35 UTC) #3
danakj
https://codereview.chromium.org/18139004/diff/1/webkit/renderer/compositor_bindings/web_layer_impl.cc File webkit/renderer/compositor_bindings/web_layer_impl.cc (right): https://codereview.chromium.org/18139004/diff/1/webkit/renderer/compositor_bindings/web_layer_impl.cc#newcode364 webkit/renderer/compositor_bindings/web_layer_impl.cc:364: layer_->set_layer_scroll_client(layer_scroll_client_adapter_.get()); To do this with base::Callback, you'd add a ...
7 years, 5 months ago (2013-06-28 02:57:48 UTC) #4
danakj
https://codereview.chromium.org/18139004/diff/1/webkit/renderer/compositor_bindings/web_layer_impl.cc File webkit/renderer/compositor_bindings/web_layer_impl.cc (right): https://codereview.chromium.org/18139004/diff/1/webkit/renderer/compositor_bindings/web_layer_impl.cc#newcode364 webkit/renderer/compositor_bindings/web_layer_impl.cc:364: layer_->set_layer_scroll_client(layer_scroll_client_adapter_.get()); On 2013/06/28 02:57:48, danakj wrote: > To do ...
7 years, 5 months ago (2013-06-28 02:59:02 UTC) #5
tfarina
Cool! Thanks Dana! It turns out to be simpler :) https://codereview.chromium.org/18139004/diff/1/webkit/renderer/compositor_bindings/web_layer_impl.cc File webkit/renderer/compositor_bindings/web_layer_impl.cc (right): https://codereview.chromium.org/18139004/diff/1/webkit/renderer/compositor_bindings/web_layer_impl.cc#newcode364 ...
7 years, 5 months ago (2013-06-28 04:07:03 UTC) #6
danakj
Thanks, that looks awesome. One question about a test, it seems like a client class ...
7 years, 5 months ago (2013-06-28 16:06:54 UTC) #7
tfarina
https://codereview.chromium.org/18139004/diff/15002/cc/trees/layer_tree_host_unittest_scroll.cc File cc/trees/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/18139004/diff/15002/cc/trees/layer_tree_host_unittest_scroll.cc#newcode802 cc/trees/layer_tree_host_unittest_scroll.cc:802: class FakeLayerScrollClient { On 2013/06/28 16:06:54, danakj wrote: > ...
7 years, 5 months ago (2013-06-28 16:13:33 UTC) #8
danakj
https://codereview.chromium.org/18139004/diff/15002/cc/trees/layer_tree_host_unittest_scroll.cc File cc/trees/layer_tree_host_unittest_scroll.cc (right): https://codereview.chromium.org/18139004/diff/15002/cc/trees/layer_tree_host_unittest_scroll.cc#newcode802 cc/trees/layer_tree_host_unittest_scroll.cc:802: class FakeLayerScrollClient { On 2013/06/28 16:13:33, tfarina wrote: > ...
7 years, 5 months ago (2013-06-28 16:46:42 UTC) #9
danakj
+enne for compositor bindings
7 years, 5 months ago (2013-06-28 16:47:02 UTC) #10
enne (OOO)
lgtm
7 years, 5 months ago (2013-06-28 16:51:19 UTC) #11
danakj
(The patch description needs updating before landing)
7 years, 5 months ago (2013-06-29 16:16:47 UTC) #12
tfarina
On Sat, Jun 29, 2013 at 1:16 PM, <danakj@chromium.org> wrote: > (The patch description needs ...
7 years, 5 months ago (2013-06-29 23:24:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/18139004/15002
7 years, 5 months ago (2013-06-30 04:09:00 UTC) #14
commit-bot: I haz the power
7 years, 5 months ago (2013-07-01 07:39:00 UTC) #15
Message was sent while issue was closed.
Change committed as 209386

Powered by Google App Engine
This is Rietveld 408576698