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

Side by Side Diff: content/test/web_layer_tree_view_impl_for_testing.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 | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/compositor.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 5 #ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/trees/layer_tree_host_client.h" 9 #include "cc/trees/layer_tree_host_client.h"
10 #include "cc/trees/layer_tree_host_single_thread_client.h" 10 #include "cc/trees/layer_tree_host_single_thread_client.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void BeginMainFrameNotExpectedSoon() override {} 69 void BeginMainFrameNotExpectedSoon() override {}
70 void Layout() override; 70 void Layout() override;
71 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 71 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
72 const gfx::Vector2dF& outer_delta, 72 const gfx::Vector2dF& outer_delta,
73 const gfx::Vector2dF& elastic_overscroll_delta, 73 const gfx::Vector2dF& elastic_overscroll_delta,
74 float page_scale, 74 float page_scale,
75 float top_controls_delta) override; 75 float top_controls_delta) override;
76 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 76 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
77 float page_scale, 77 float page_scale,
78 float top_controls_delta) override; 78 float top_controls_delta) override;
79 void RecordCompositeTimings(
80 cc::FrameTimingTracker::CompositeTimingSet* composites) override {}
81 void RecordRenderTimings(
82 cc::FrameTimingTracker::MainFrameTimingSet* renders) override {}
79 void RequestNewOutputSurface() override; 83 void RequestNewOutputSurface() override;
80 void DidInitializeOutputSurface() override {} 84 void DidInitializeOutputSurface() override {}
81 void DidFailToInitializeOutputSurface() override; 85 void DidFailToInitializeOutputSurface() override;
82 void WillCommit() override {} 86 void WillCommit() override {}
83 void DidCommit() override {} 87 void DidCommit() override {}
84 void DidCommitAndDrawFrame() override {} 88 void DidCommitAndDrawFrame() override {}
85 void DidCompleteSwapBuffers() override {} 89 void DidCompleteSwapBuffers() override {}
86 void DidCompletePageScaleAnimation() override {} 90 void DidCompletePageScaleAnimation() override {}
87 91
88 // cc::LayerTreeHostSingleThreadClient implementation. 92 // cc::LayerTreeHostSingleThreadClient implementation.
89 void DidPostSwapBuffers() override {} 93 void DidPostSwapBuffers() override {}
90 void DidAbortSwapBuffers() override {} 94 void DidAbortSwapBuffers() override {}
91 95
92 private: 96 private:
93 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 97 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
94 98
95 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); 99 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting);
96 }; 100 };
97 101
98 } // namespace content 102 } // namespace content
99 103
100 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 104 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698