Merge pull request #4609 from MaxWhere/framesubscriber-fix

🐎 framesubscriber speed and quality improvement
This commit is contained in:
Cheng Zhao 2016-02-26 23:21:42 +08:00
commit 7de97a55f7
3 changed files with 34 additions and 32 deletions

View file

@ -1069,7 +1069,7 @@ void WebContents::BeginFrameSubscription(
const auto view = web_contents()->GetRenderWidgetHostView();
if (view) {
scoped_ptr<FrameSubscriber> frame_subscriber(new FrameSubscriber(
isolate(), view->GetVisibleViewportSize(), callback));
isolate(), view, callback));
view->BeginFrameSubscription(frame_subscriber.Pass());
}
}