Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: components/html_viewer/html_viewer.cc

Issue 1112573003: Hook up the scheduler component to html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/blink_platform_impl.cc ('k') | components/html_viewer/web_scheduler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_viewer.cc
diff --git a/components/html_viewer/html_viewer.cc b/components/html_viewer/html_viewer.cc
index d71d04355d7b965a547ae64c8d3ceecae647b2f2..0ef8a886822b59015ef73b88fc2235cdc3c1799f 100644
--- a/components/html_viewer/html_viewer.cc
+++ b/components/html_viewer/html_viewer.cc
@@ -14,6 +14,7 @@
#include "components/html_viewer/discardable_memory_allocator.h"
#include "components/html_viewer/html_document.h"
#include "components/html_viewer/web_media_player_factory.h"
+#include "components/scheduler/renderer/renderer_scheduler.h"
#include "gin/v8_initializer.h"
#include "mojo/application/application_runner_chromium.h"
#include "mojo/services/network/public/interfaces/network_service.mojom.h"
@@ -172,7 +173,9 @@ class HTMLViewer : public mojo::ApplicationDelegate,
base::DiscardableMemoryAllocator::SetInstance(
&discardable_memory_allocator_);
- blink_platform_.reset(new BlinkPlatformImpl(app));
+ renderer_scheduler_ = scheduler::RendererScheduler::Create();
+ blink_platform_.reset(
+ new BlinkPlatformImpl(app, renderer_scheduler_.get()));
#if defined(V8_USE_EXTERNAL_STARTUP_DATA)
// Note: this requires file system access.
gin::V8Initializer::LoadV8Snapshot();
@@ -237,6 +240,7 @@ class HTMLViewer : public mojo::ApplicationDelegate,
// memory based purging allocator working here.
DiscardableMemoryAllocator discardable_memory_allocator_;
+ scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_;
scoped_ptr<BlinkPlatformImpl> blink_platform_;
base::Thread compositor_thread_;
scoped_ptr<WebMediaPlayerFactory> web_media_player_factory_;
« no previous file with comments | « components/html_viewer/blink_platform_impl.cc ('k') | components/html_viewer/web_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698