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

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: Add BeginMainFrameNotExpectedUntil to content::CompositorImpl for Android. Created 3 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 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void SetBrowserControlsShownRatio(float) override; 175 void SetBrowserControlsShownRatio(float) override;
176 // TODO(ianwen): Move this method to WebLayerTreeView and implement main 176 // TODO(ianwen): Move this method to WebLayerTreeView and implement main
177 // thread scrolling. 177 // thread scrolling.
178 virtual void setBottomControlsHeight(float height); 178 virtual void setBottomControlsHeight(float height);
179 179
180 // cc::LayerTreeHostClient implementation. 180 // cc::LayerTreeHostClient implementation.
181 void WillBeginMainFrame() override; 181 void WillBeginMainFrame() override;
182 void DidBeginMainFrame() override; 182 void DidBeginMainFrame() override;
183 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 183 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
184 void BeginMainFrameNotExpectedSoon() override; 184 void BeginMainFrameNotExpectedSoon() override;
185 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override;
185 void UpdateLayerTreeHost() override; 186 void UpdateLayerTreeHost() override;
186 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 187 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
187 const gfx::Vector2dF& outer_delta, 188 const gfx::Vector2dF& outer_delta,
188 const gfx::Vector2dF& elastic_overscroll_delta, 189 const gfx::Vector2dF& elastic_overscroll_delta,
189 float page_scale, 190 float page_scale,
190 float top_controls_delta) override; 191 float top_controls_delta) override;
191 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, 192 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
192 bool has_scrolled_by_touch) override; 193 bool has_scrolled_by_touch) override;
193 void RequestNewCompositorFrameSink() override; 194 void RequestNewCompositorFrameSink() override;
194 void DidInitializeCompositorFrameSink() override; 195 void DidInitializeCompositorFrameSink() override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 239 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
239 240
240 cc::FrameSinkId frame_sink_id_; 241 cc::FrameSinkId frame_sink_id_;
241 242
242 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 243 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
243 }; 244 };
244 245
245 } // namespace content 246 } // namespace content
246 247
247 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 248 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698