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

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

Issue 337693005: cc: Control defer_commits logic by Scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void WillBeginMainFrame() {} 81 virtual void WillBeginMainFrame() {}
82 virtual void DidBeginMainFrame() {} 82 virtual void DidBeginMainFrame() {}
83 virtual void Layout() {} 83 virtual void Layout() {}
84 virtual void DidInitializeOutputSurface() {} 84 virtual void DidInitializeOutputSurface() {}
85 virtual void DidFailToInitializeOutputSurface() {} 85 virtual void DidFailToInitializeOutputSurface() {}
86 virtual void DidAddAnimation() {} 86 virtual void DidAddAnimation() {}
87 virtual void WillCommit() {} 87 virtual void WillCommit() {}
88 virtual void DidCommit() {} 88 virtual void DidCommit() {}
89 virtual void DidCommitAndDrawFrame() {} 89 virtual void DidCommitAndDrawFrame() {}
90 virtual void DidCompleteSwapBuffers() {} 90 virtual void DidCompleteSwapBuffers() {}
91 virtual void DidDeferCommit() {}
92 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl, 91 virtual void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl,
93 bool visible) {} 92 bool visible) {}
94 virtual void ScheduleComposite() {} 93 virtual void ScheduleComposite() {}
95 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} 94 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {}
96 95
97 // Hooks for SchedulerClient. 96 // Hooks for SchedulerClient.
98 virtual void ScheduledActionWillSendBeginMainFrame() {} 97 virtual void ScheduledActionWillSendBeginMainFrame() {}
99 virtual void ScheduledActionSendBeginMainFrame() {} 98 virtual void ScheduledActionSendBeginMainFrame() {}
100 virtual void ScheduledActionDrawAndSwapIfPossible() {} 99 virtual void ScheduledActionDrawAndSwapIfPossible() {}
101 virtual void ScheduledActionAnimate() {} 100 virtual void ScheduledActionAnimate() {}
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 373 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
375 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 374 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
376 375
377 // Some tests want to control when notify ready for activation occurs, 376 // Some tests want to control when notify ready for activation occurs,
378 // but this is not supported in the single-threaded case. 377 // but this is not supported in the single-threaded case.
379 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 378 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
380 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 379 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
381 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 380 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
382 381
383 #endif // CC_TEST_LAYER_TREE_TEST_H_ 382 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698