adds beginframe scheduling

This commit is contained in:
gellert 2016-07-22 13:55:58 +02:00
parent 504c79cae7
commit 81be0bc123
8 changed files with 434 additions and 152 deletions

View file

@ -66,6 +66,9 @@
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "third_party/WebKit/public/web/WebFindOptions.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "atom/browser/osr_web_contents_view.h"
#include "atom/common/node_includes.h"
namespace {
@ -305,6 +308,10 @@ WebContents::WebContents(v8::Isolate* isolate,
web_contents = content::WebContents::Create(params);
}
content::WebContentsImpl* impl =
reinterpret_cast<content::WebContentsImpl*>(web_contents);
impl->SetView(new OffScreenWebContentsView);
Observe(web_contents);
InitWithWebContents(web_contents, session->browser_context());