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

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

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: Respond to Sami's comments Created 3 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 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 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 void setBrowserControlsShownRatio(float) override; 178 void setBrowserControlsShownRatio(float) override;
179 // TODO(ianwen): Move this method to WebLayerTreeView and implement main 179 // TODO(ianwen): Move this method to WebLayerTreeView and implement main
180 // thread scrolling. 180 // thread scrolling.
181 virtual void setBottomControlsHeight(float height); 181 virtual void setBottomControlsHeight(float height);
182 182
183 // cc::LayerTreeHostClient implementation. 183 // cc::LayerTreeHostClient implementation.
184 void WillBeginMainFrame() override; 184 void WillBeginMainFrame() override;
185 void DidBeginMainFrame() override; 185 void DidBeginMainFrame() override;
186 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 186 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
187 void BeginMainFrameNotExpectedSoon() override; 187 void BeginMainFrameNotExpectedSoon() override;
188 void BeginMainFrameNotExpectedUntil(base::TimeTicks frame_time) override;
188 void UpdateLayerTreeHost() override; 189 void UpdateLayerTreeHost() override;
189 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 190 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
190 const gfx::Vector2dF& outer_delta, 191 const gfx::Vector2dF& outer_delta,
191 const gfx::Vector2dF& elastic_overscroll_delta, 192 const gfx::Vector2dF& elastic_overscroll_delta,
192 float page_scale, 193 float page_scale,
193 float top_controls_delta) override; 194 float top_controls_delta) override;
194 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, 195 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
195 bool has_scrolled_by_touch) override; 196 bool has_scrolled_by_touch) override;
196 void RequestNewCompositorFrameSink() override; 197 void RequestNewCompositorFrameSink() override;
197 void DidInitializeCompositorFrameSink() override; 198 void DidInitializeCompositorFrameSink() override;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 241 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
241 242
242 cc::FrameSinkId frame_sink_id_; 243 cc::FrameSinkId frame_sink_id_;
243 244
244 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 245 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
245 }; 246 };
246 247
247 } // namespace content 248 } // namespace content
248 249
249 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 250 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698