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

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

Issue 1137823002: Pass collected frame timing events to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some code review cleanup. Created 5 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
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void BeginMainFrameNotExpectedSoon() override; 141 void BeginMainFrameNotExpectedSoon() override;
142 void Layout() override; 142 void Layout() override;
143 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 143 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
144 const gfx::Vector2dF& outer_delta, 144 const gfx::Vector2dF& outer_delta,
145 const gfx::Vector2dF& elastic_overscroll_delta, 145 const gfx::Vector2dF& elastic_overscroll_delta,
146 float page_scale, 146 float page_scale,
147 float top_controls_delta) override; 147 float top_controls_delta) override;
148 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 148 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
149 float page_scale, 149 float page_scale,
150 float top_controls_delta) override; 150 float top_controls_delta) override;
151 void RecordCompositeTimings(
152 cc::FrameTimingTracker::CompositeTimingSet* composites) override;
153 void RecordRenderTimings(
154 cc::FrameTimingTracker::MainFrameTimingSet* renders) override;
151 void RequestNewOutputSurface() override; 155 void RequestNewOutputSurface() override;
152 void DidInitializeOutputSurface() override; 156 void DidInitializeOutputSurface() override;
153 void DidFailToInitializeOutputSurface() override; 157 void DidFailToInitializeOutputSurface() override;
154 void WillCommit() override; 158 void WillCommit() override;
155 void DidCommit() override; 159 void DidCommit() override;
156 void DidCommitAndDrawFrame() override; 160 void DidCommitAndDrawFrame() override;
157 void DidCompleteSwapBuffers() override; 161 void DidCompleteSwapBuffers() override;
158 void DidCompletePageScaleAnimation() override; 162 void DidCompletePageScaleAnimation() override;
159 void RateLimitSharedMainThreadContext() override; 163 void RateLimitSharedMainThreadContext() override;
160 164
(...skipping 26 matching lines...) Expand all
187 191
188 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 192 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
189 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; 193 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_;
190 194
191 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 195 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
192 }; 196 };
193 197
194 } // namespace content 198 } // namespace content
195 199
196 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 200 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698