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

Side by Side Diff: cc/test/test_hooks.h

Issue 2757373002: Fixing flakiness of TextureLayerChangeInvisibleMailboxTest (Closed)
Patch Set: c 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
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CC_TEST_TEST_HOOKS_H_ 5 #ifndef CC_TEST_TEST_HOOKS_H_
6 #define CC_TEST_TEST_HOOKS_H_ 6 #define CC_TEST_TEST_HOOKS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/animation/animation_delegate.h" 9 #include "cc/animation/animation_delegate.h"
10 #include "cc/trees/layer_tree_host.h" 10 #include "cc/trees/layer_tree_host.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual DrawResult PrepareToDrawOnThread( 44 virtual DrawResult PrepareToDrawOnThread(
45 LayerTreeHostImpl* host_impl, 45 LayerTreeHostImpl* host_impl,
46 LayerTreeHostImpl::FrameData* frame_data, 46 LayerTreeHostImpl::FrameData* frame_data,
47 DrawResult draw_result); 47 DrawResult draw_result);
48 virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) {} 48 virtual void DrawLayersOnThread(LayerTreeHostImpl* host_impl) {}
49 virtual void NotifyReadyToActivateOnThread(LayerTreeHostImpl* host_impl) {} 49 virtual void NotifyReadyToActivateOnThread(LayerTreeHostImpl* host_impl) {}
50 virtual void NotifyReadyToDrawOnThread(LayerTreeHostImpl* host_impl) {} 50 virtual void NotifyReadyToDrawOnThread(LayerTreeHostImpl* host_impl) {}
51 virtual void NotifyAllTileTasksCompleted(LayerTreeHostImpl* host_impl) {} 51 virtual void NotifyAllTileTasksCompleted(LayerTreeHostImpl* host_impl) {}
52 virtual void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl, 52 virtual void NotifyTileStateChangedOnThread(LayerTreeHostImpl* host_impl,
53 const Tile* tile) {} 53 const Tile* tile) {}
54 virtual void WillReceiveCompositorFrameAckOnThread(
55 LayerTreeHostImpl* host_impl) {}
56 virtual void DidReceiveCompositorFrameAckOnThread(
57 LayerTreeHostImpl* host_impl) {}
54 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, 58 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl,
55 bool visible) {} 59 bool visible) {}
56 virtual void AnimateLayers(LayerTreeHostImpl* host_impl, 60 virtual void AnimateLayers(LayerTreeHostImpl* host_impl,
57 base::TimeTicks monotonic_time) {} 61 base::TimeTicks monotonic_time) {}
58 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl, 62 virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl,
59 bool has_unfinished_animation) {} 63 bool has_unfinished_animation) {}
60 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl, 64 virtual void WillAnimateLayers(LayerTreeHostImpl* host_impl,
61 base::TimeTicks monotonic_time) {} 65 base::TimeTicks monotonic_time) {}
62 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {} 66 virtual void DidInvalidateContentOnImplSide(LayerTreeHostImpl* host_impl) {}
63 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {} 67 virtual void DidRequestImplSideInvalidation(LayerTreeHostImpl* host_impl) {}
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // OutputSurface indirections to the LayerTreeTest, that can be further 121 // OutputSurface indirections to the LayerTreeTest, that can be further
118 // overridden. 122 // overridden.
119 virtual void RequestNewCompositorFrameSink() = 0; 123 virtual void RequestNewCompositorFrameSink() = 0;
120 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( 124 virtual std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread(
121 scoped_refptr<ContextProvider> compositor_context_provider) = 0; 125 scoped_refptr<ContextProvider> compositor_context_provider) = 0;
122 }; 126 };
123 127
124 } // namespace cc 128 } // namespace cc
125 129
126 #endif // CC_TEST_TEST_HOOKS_H_ 130 #endif // CC_TEST_TEST_HOOKS_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698