Renamed setOffscreenRender to begin/endFrameSubscription because the name was a bit misleading, and replaced the ArrayBuffer creation with a node::Buffer::New call.

This commit is contained in:
Heilig Benedek 2015-09-16 02:59:16 +02:00
parent 1497e7e2ac
commit ceef06b344
5 changed files with 26 additions and 14 deletions

View file

@ -333,7 +333,7 @@ void NativeWindow::CapturePage(const gfx::Rect& rect,
kBGRA_8888_SkColorType);
}
void NativeWindow::SetOffscreenRender(bool isOffscreen) {
void NativeWindow::SetFrameSubscription(bool isOffscreen) {
if (!isOffscreen && !offscreen_) return;
const auto view = web_contents()->GetRenderWidgetHostView();
@ -637,7 +637,7 @@ void NativeWindow::SendMouseWheelEvent(int modifiers, int x, int y, bool precise
}
void NativeWindow::DidFinishLoad(content::RenderFrameHost* render_frame_host, const GURL& validated_url) {
SetOffscreenRender(offscreen_);
SetFrameSubscription(offscreen_);
}
void NativeWindow::RenderViewCreated(