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

Unified Diff: components/surfaces/display_impl.cc

Issue 1138563002: Add DisplayScheduler for Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rendererLatencyRecoveryHeuristic
Patch Set: rebase Created 5 years, 7 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 55eef4ed0bbcf05d6ab73dd0f674404fbd77d047..98a9f278d53c1330a335e133559441c1c20b22bc 100644
--- a/components/surfaces/display_impl.cc
+++ b/components/surfaces/display_impl.cc
@@ -51,9 +51,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 surfaces::DirectOutputSurface(new surfaces::SurfacesContextProvider(
- gles2_client.PassInterface().PassHandle()))));
+
+ // TODO(brianderson): Reconcile with SurfacesScheduler crbug.com/476676
+ cc::DisplayScheduler* null_display_scheduler = nullptr;
+ display_->Initialize(make_scoped_ptr(new surfaces::DirectOutputSurface(
+ new surfaces::SurfacesContextProvider(
+ gles2_client.PassInterface().PassHandle()))),
+ null_display_scheduler);
display_->Resize(last_submitted_frame_size_);
display_->SetSurfaceId(cc_id_, 1.f);
@@ -94,15 +98,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