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

Unified Diff: components/surfaces/display_impl.cc

Issue 1012853003: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change Browser references to root surfce 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/surfaces/display_impl.h ('k') | components/surfaces/surfaces_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/surfaces/display_impl.cc
diff --git a/components/surfaces/display_impl.cc b/components/surfaces/display_impl.cc
index 15319159a8b7d293b33ca8653f3c3fb84587c5d1..09eeb7f9dee48328940c7e4046aea3f2809a9386 100644
--- a/components/surfaces/display_impl.cc
+++ b/components/surfaces/display_impl.cc
@@ -46,8 +46,13 @@ void DisplayImpl::OnContextCreated(mojo::CommandBufferPtr gles2_client) {
cc::RendererSettings settings;
display_.reset(new cc::Display(this, manager_, nullptr, nullptr, settings));
scheduler_->AddDisplay(display_.get());
- display_->Initialize(make_scoped_ptr(new mojo::DirectOutputSurface(
- new mojo::ContextProviderMojo(gles2_client.PassMessagePipe()))));
+
+ // TODO(brianderson): Reconcile with SurfacesScheduler crbug.com/476676
+ cc::DisplayScheduler* null_display_scheduler = nullptr;
+ display_->Initialize(
+ make_scoped_ptr(new mojo::DirectOutputSurface(
+ new mojo::ContextProviderMojo(gles2_client.PassMessagePipe()))),
+ null_display_scheduler);
factory_.Create(cc_id_);
display_->SetSurfaceId(cc_id_, 1.f);
@@ -82,15 +87,6 @@ void DisplayImpl::Draw() {
pending_callback_.reset();
}
-void DisplayImpl::DisplayDamaged() {
-}
-
-void DisplayImpl::DidSwapBuffers() {
-}
-
-void DisplayImpl::DidSwapBuffersComplete() {
-}
-
void DisplayImpl::CommitVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval) {
}
« no previous file with comments | « components/surfaces/display_impl.h ('k') | components/surfaces/surfaces_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698