WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
96151
[chromium] Implement WebCompositorInputHandlerImpl on top of exposed API instead of CC internals
https://bugs.webkit.org/show_bug.cgi?id=96151
Summary
[chromium] Implement WebCompositorInputHandlerImpl on top of exposed API inst...
James Robinson
Reported
2012-09-07 15:45:39 PDT
[chromium] Implement WebCompositorInputHandlerImpl on top of exposed API instead of CC internals
Attachments
Patch
(79.55 KB, patch)
2012-09-07 15:49 PDT
,
James Robinson
no flags
Details
Formatted Diff
Diff
checks bindToClient called once, asserts enums match, puts WCIHI in correct gyp section
(81.32 KB, patch)
2012-09-07 16:45 PDT
,
James Robinson
enne
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
James Robinson
Comment 1
2012-09-07 15:49:21 PDT
Created
attachment 162890
[details]
Patch
WebKit Review Bot
Comment 2
2012-09-07 15:53:29 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Adrienne Walker
Comment 3
2012-09-07 16:20:50 PDT
Comment on
attachment 162890
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=162890&action=review
There's a lot of code change, but it seems pretty straightforward.
> Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp:237 > + TRACE_EVENT_INSTANT0("cc", "WebCompositorInputHandlerImpl::bindToClient"); > + if (!s_compositors) > + s_compositors = new HashSet<WebCompositorInputHandlerImpl*>; > + s_compositors->add(this);
Now that this doesn't happen on construction, do you want some check that bindToClient is only called once?
> Source/WebKit/chromium/src/WebToCCInputHandlerAdapter.cpp:60 > + return static_cast<WebInputHandlerClient::ScrollStatus>(m_client->scrollBegin(point, static_cast<WebCore::CCInputHandlerClient::ScrollInputType>(type)));
Can you add compile-time asserts that these enums are the same?
James Robinson
Comment 4
2012-09-07 16:24:39 PDT
(In reply to
comment #3
)
> (From update of
attachment 162890
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=162890&action=review
> > There's a lot of code change, but it seems pretty straightforward. > > > Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp:237 > > + TRACE_EVENT_INSTANT0("cc", "WebCompositorInputHandlerImpl::bindToClient"); > > + if (!s_compositors) > > + s_compositors = new HashSet<WebCompositorInputHandlerImpl*>; > > + s_compositors->add(this); > > Now that this doesn't happen on construction, do you want some check that bindToClient is only called once?
Yeah, good idea.
> > > Source/WebKit/chromium/src/WebToCCInputHandlerAdapter.cpp:60 > > + return static_cast<WebInputHandlerClient::ScrollStatus>(m_client->scrollBegin(point, static_cast<WebCore::CCInputHandlerClient::ScrollInputType>(type))); > > Can you add compile-time asserts that these enums are the same?
Sure - just have to figure out how those macros work
James Robinson
Comment 5
2012-09-07 16:45:50 PDT
Created
attachment 162905
[details]
checks bindToClient called once, asserts enums match, puts WCIHI in correct gyp section
Adrienne Walker
Comment 6
2012-09-07 18:17:18 PDT
Comment on
attachment 162905
[details]
checks bindToClient called once, asserts enums match, puts WCIHI in correct gyp section R=me.
James Robinson
Comment 7
2012-09-07 18:22:24 PDT
Committed
r127948
: <
http://trac.webkit.org/changeset/127948
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug