Hoist compositorDrivenAcceleratedScrollingEnabled check out of scrollParent
This CL moves the compositorDrivenAcceleratedScrollingEnabled check out of scrollParent so that it's clearer in the callers that this code only does something when this setting is enabled. In compositorDrivenAcceleratedScrollingEnabled, this lets us call compositorDrivenAcceleratedScrollingEnabled once instead of twice, which is faster. In a future CL, I'll cache compositorDrivenAcceleratedScrollingEnabled as a compositing trigger, which will make this code actually go fast. This CL also reorders a bunch of methods in CompositingReasonFinder.cpp to make it clearer which of these functions are called during style recalc and which are call unconditionally on all RenderLayers. Review URL: https://codereview.chromium.org/205343009 git-svn-id: svn://svn.chromium.org/blink/trunk@169992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment