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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: missed one Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) { 1040 void RenderWidgetCompositor::BeginMainFrame(const cc::BeginFrameArgs& args) {
1041 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args); 1041 compositor_deps_->GetRendererScheduler()->WillBeginFrame(args);
1042 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF(); 1042 double frame_time_sec = (args.frame_time - base::TimeTicks()).InSecondsF();
1043 delegate_->BeginMainFrame(frame_time_sec); 1043 delegate_->BeginMainFrame(frame_time_sec);
1044 } 1044 }
1045 1045
1046 void RenderWidgetCompositor::BeginMainFrameNotExpectedSoon() { 1046 void RenderWidgetCompositor::BeginMainFrameNotExpectedSoon() {
1047 compositor_deps_->GetRendererScheduler()->BeginFrameNotExpectedSoon(); 1047 compositor_deps_->GetRendererScheduler()->BeginFrameNotExpectedSoon();
1048 } 1048 }
1049 1049
1050 void RenderWidgetCompositor::DoShortIdleWork(const cc::BeginFrameArgs& args) {
1051 compositor_deps_->GetRendererScheduler()->DoShortIdleWork(args);
1052 }
1053
1050 void RenderWidgetCompositor::UpdateLayerTreeHost() { 1054 void RenderWidgetCompositor::UpdateLayerTreeHost() {
1051 delegate_->UpdateVisualState(); 1055 delegate_->UpdateVisualState();
1052 } 1056 }
1053 1057
1054 void RenderWidgetCompositor::ApplyViewportDeltas( 1058 void RenderWidgetCompositor::ApplyViewportDeltas(
1055 const gfx::Vector2dF& inner_delta, 1059 const gfx::Vector2dF& inner_delta,
1056 const gfx::Vector2dF& outer_delta, 1060 const gfx::Vector2dF& outer_delta,
1057 const gfx::Vector2dF& elastic_overscroll_delta, 1061 const gfx::Vector2dF& elastic_overscroll_delta,
1058 float page_scale, 1062 float page_scale,
1059 float top_controls_delta) { 1063 float top_controls_delta) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) { 1149 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) {
1146 layer_tree_host_->SetContentSourceId(id); 1150 layer_tree_host_->SetContentSourceId(id);
1147 } 1151 }
1148 1152
1149 void RenderWidgetCompositor::SetLocalSurfaceId( 1153 void RenderWidgetCompositor::SetLocalSurfaceId(
1150 const cc::LocalSurfaceId& local_surface_id) { 1154 const cc::LocalSurfaceId& local_surface_id) {
1151 layer_tree_host_->SetLocalSurfaceId(local_surface_id); 1155 layer_tree_host_->SetLocalSurfaceId(local_surface_id);
1152 } 1156 }
1153 1157
1154 } // namespace content 1158 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698