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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2083423006: Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 57ea8fdc8f942d4a3c061aa1244abc01fa39fb44..04eee53b03a9cf0241632bf00fa263df78edbc03 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -2360,13 +2360,6 @@ bool LayerTreeHostImpl::InitializeRenderer(OutputSurface* output_surface) {
CreateTileManagerResources();
RecreateTreeResources();
- // Initialize vsync parameters to sane values.
- const base::TimeDelta display_refresh_interval =
- base::TimeDelta::FromMicroseconds(
- base::Time::kMicrosecondsPerSecond /
- settings_.renderer_settings.refresh_rate);
- CommitVSyncParameters(base::TimeTicks(), display_refresh_interval);
-
// TODO(brianderson): Don't use a hard-coded parent draw time.
base::TimeDelta parent_draw_time =
(!settings_.use_external_begin_frame_source &&
@@ -2387,11 +2380,6 @@ bool LayerTreeHostImpl::InitializeRenderer(OutputSurface* output_surface) {
return true;
}
-void LayerTreeHostImpl::CommitVSyncParameters(base::TimeTicks timebase,
- base::TimeDelta interval) {
- client_->CommitVSyncParameters(timebase, interval);
-}
-
void LayerTreeHostImpl::SetBeginFrameSource(BeginFrameSource* source) {
client_->SetBeginFrameSource(source);
}
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698