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

Unified Diff: components/mus/surfaces/direct_output_surface.cc

Issue 2061273002: cc: Make BackToBackBeginFrameSource a SyntheticBeginFrameSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: syntheticbeginframesource: delete-DEBUG_FRAMES Created 4 years, 6 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 | « cc/trees/single_thread_proxy.cc ('k') | components/mus/surfaces/direct_output_surface_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/direct_output_surface.cc
diff --git a/components/mus/surfaces/direct_output_surface.cc b/components/mus/surfaces/direct_output_surface.cc
index df8bf7d3acbe1dec41e7dd71118d11b1a4221a98..0f26e3c9b089acc35d07fd297649db09c9f52321 100644
--- a/components/mus/surfaces/direct_output_surface.cc
+++ b/components/mus/surfaces/direct_output_surface.cc
@@ -7,9 +7,11 @@
#include <stdint.h>
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/context_provider.h"
#include "cc/output/output_surface_client.h"
+#include "cc/scheduler/delay_based_time_source.h"
#include "gpu/command_buffer/client/context_support.h"
#include "gpu/command_buffer/client/gles2_interface.h"
@@ -19,9 +21,8 @@ DirectOutputSurface::DirectOutputSurface(
scoped_refptr<SurfacesContextProvider> context_provider,
base::SingleThreadTaskRunner* task_runner)
: cc::OutputSurface(context_provider, nullptr, nullptr),
- synthetic_begin_frame_source_(new cc::SyntheticBeginFrameSource(
- task_runner,
- cc::BeginFrameArgs::DefaultInterval())),
+ synthetic_begin_frame_source_(new cc::DelayBasedBeginFrameSource(
+ base::MakeUnique<cc::DelayBasedTimeSource>(task_runner))),
weak_ptr_factory_(this) {
context_provider->SetDelegate(this);
}
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | components/mus/surfaces/direct_output_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698