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

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

Issue 17351017: Re-land: cc: Add raster finished signals to RasterWorkerPool. (Closed) Base URL: http://git.chromium.org/chromium/src.git@new-graph-build
Patch Set: fix flaky unit tests Created 7 years, 5 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/fake_tile_manager.cc ('k') | cc/test/layer_tree_test.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_TREE_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_
6 #define CC_TEST_LAYER_TREE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void Layout() {} 57 virtual void Layout() {}
58 virtual void DidInitializeOutputSurface(bool succeeded) {} 58 virtual void DidInitializeOutputSurface(bool succeeded) {}
59 virtual void DidFailToInitializeOutputSurface() {} 59 virtual void DidFailToInitializeOutputSurface() {}
60 virtual void DidAddAnimation() {} 60 virtual void DidAddAnimation() {}
61 virtual void DidCommit() {} 61 virtual void DidCommit() {}
62 virtual void DidCommitAndDrawFrame() {} 62 virtual void DidCommitAndDrawFrame() {}
63 virtual void DidCompleteSwapBuffers() {} 63 virtual void DidCompleteSwapBuffers() {}
64 virtual void ScheduleComposite() {} 64 virtual void ScheduleComposite() {}
65 virtual void DidDeferCommit() {} 65 virtual void DidDeferCommit() {}
66 virtual bool CanActivatePendingTree(LayerTreeHostImpl* host_impl); 66 virtual bool CanActivatePendingTree(LayerTreeHostImpl* host_impl);
67 virtual bool CanActivatePendingTreeIfNeeded(LayerTreeHostImpl* host_impl);
67 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, 68 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl,
68 bool visible) {} 69 bool visible) {}
69 70
70 // Implementation of AnimationDelegate: 71 // Implementation of AnimationDelegate:
71 virtual void NotifyAnimationStarted(double time) OVERRIDE {} 72 virtual void NotifyAnimationStarted(double time) OVERRIDE {}
72 virtual void NotifyAnimationFinished(double time) OVERRIDE {} 73 virtual void NotifyAnimationFinished(double time) OVERRIDE {}
73 74
74 virtual scoped_ptr<OutputSurface> CreateOutputSurface() = 0; 75 virtual scoped_ptr<OutputSurface> CreateOutputSurface() = 0;
75 virtual scoped_refptr<cc::ContextProvider> 76 virtual scoped_refptr<cc::ContextProvider>
76 OffscreenContextProviderForMainThread() = 0; 77 OffscreenContextProviderForMainThread() = 0;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 234
234 #define SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ 235 #define SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) \
235 SINGLE_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 236 SINGLE_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
236 MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 237 MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
237 238
238 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ 239 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \
239 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 240 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
240 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 241 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
241 242
242 #endif // CC_TEST_LAYER_TREE_TEST_H_ 243 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698