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

Side by Side Diff: third_party/WebKit/Source/platform/testing/WebLayerTreeViewImplForTesting.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 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 WebLayerTreeViewImplForTesting_h 5 #ifndef WebLayerTreeViewImplForTesting_h
6 #define WebLayerTreeViewImplForTesting_h 6 #define WebLayerTreeViewImplForTesting_h
7 7
8 #include "cc/test/test_task_graph_runner.h" 8 #include "cc/test/test_task_graph_runner.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 blink::WebEventListenerProperties eventListenerProperties( 73 blink::WebEventListenerProperties eventListenerProperties(
74 blink::WebEventListenerClass eventClass) const override; 74 blink::WebEventListenerClass eventClass) const override;
75 void setHaveScrollEventHandlers(bool) override; 75 void setHaveScrollEventHandlers(bool) override;
76 bool haveScrollEventHandlers() const override; 76 bool haveScrollEventHandlers() const override;
77 77
78 // cc::LayerTreeHostClient implementation. 78 // cc::LayerTreeHostClient implementation.
79 void WillBeginMainFrame() override {} 79 void WillBeginMainFrame() override {}
80 void DidBeginMainFrame() override {} 80 void DidBeginMainFrame() override {}
81 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} 81 void BeginMainFrame(const cc::BeginFrameArgs& args) override {}
82 void BeginMainFrameNotExpectedSoon() override {} 82 void BeginMainFrameNotExpectedSoon() override {}
83 void BeginMainFrameNotExpectedUntil(base::TimeTicks) override {}
83 void UpdateLayerTreeHost() override; 84 void UpdateLayerTreeHost() override;
84 void ApplyViewportDeltas(const gfx::Vector2dF& innerDelta, 85 void ApplyViewportDeltas(const gfx::Vector2dF& innerDelta,
85 const gfx::Vector2dF& outerDelta, 86 const gfx::Vector2dF& outerDelta,
86 const gfx::Vector2dF& elasticOverscrollDelta, 87 const gfx::Vector2dF& elasticOverscrollDelta,
87 float pageScale, 88 float pageScale,
88 float browserControlsDelta) override; 89 float browserControlsDelta) override;
89 void RecordWheelAndTouchScrollingCount(bool hasScrolledByWheel, 90 void RecordWheelAndTouchScrollingCount(bool hasScrolledByWheel,
90 bool hasScrolledByTouch) override; 91 bool hasScrolledByTouch) override;
91 void RequestNewCompositorFrameSink() override; 92 void RequestNewCompositorFrameSink() override;
92 void DidInitializeCompositorFrameSink() override {} 93 void DidInitializeCompositorFrameSink() override {}
(...skipping 10 matching lines...) Expand all
103 104
104 private: 105 private:
105 cc::TestTaskGraphRunner m_taskGraphRunner; 106 cc::TestTaskGraphRunner m_taskGraphRunner;
106 std::unique_ptr<cc::AnimationHost> m_animationHost; 107 std::unique_ptr<cc::AnimationHost> m_animationHost;
107 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost; 108 std::unique_ptr<cc::LayerTreeHost> m_layerTreeHost;
108 }; 109 };
109 110
110 } // namespace blink 111 } // namespace blink
111 112
112 #endif // WebLayerTreeViewImplForTesting_h 113 #endif // WebLayerTreeViewImplForTesting_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698