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

Side by Side Diff: cc/trees/layer_tree_host_single_thread_client.h

Issue 134623005: Make SingleThreadProxy a SchedulerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add scoped_abort_remaining_swap_promises.h Created 6 years, 4 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
« no previous file with comments | « cc/trees/layer_tree_host_perftest.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 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 CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_
6 #define CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_ 6 #define CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_
7 7
8 namespace cc { 8 namespace cc {
9 9
10 class LayerTreeHostSingleThreadClient { 10 class LayerTreeHostSingleThreadClient {
11 public: 11 public:
12 // Request that the client schedule a composite. 12 // Request that the client schedule a composite.
13 virtual void ScheduleComposite() = 0; 13 virtual void ScheduleComposite() {}
14 // Request that the client schedule a composite now, and calculate appropriate 14 // Request that the client schedule a composite now, and calculate appropriate
15 // delay for potential future frame. 15 // delay for potential future frame.
16 virtual void ScheduleAnimation() = 0; 16 virtual void ScheduleAnimation() {}
17 17
18 // Called whenever the compositor posts a SwapBuffers (either full or 18 // Called whenever the compositor posts a SwapBuffers (either full or
19 // partial). After DidPostSwapBuffers(), exactly one of 19 // partial). After DidPostSwapBuffers(), exactly one of
20 // DidCompleteSwapBuffers() or DidAbortSwapBuffers() will be called, thus 20 // DidCompleteSwapBuffers() or DidAbortSwapBuffers() will be called, thus
21 // these functions can be used to keep track of pending swap buffers calls for 21 // these functions can be used to keep track of pending swap buffers calls for
22 // rate limiting. 22 // rate limiting.
23 virtual void DidPostSwapBuffers() = 0; 23 virtual void DidPostSwapBuffers() = 0;
24 virtual void DidCompleteSwapBuffers() = 0; 24 virtual void DidCompleteSwapBuffers() = 0;
25 virtual void DidAbortSwapBuffers() = 0; 25 virtual void DidAbortSwapBuffers() = 0;
26 26
27 protected: 27 protected:
28 virtual ~LayerTreeHostSingleThreadClient() {} 28 virtual ~LayerTreeHostSingleThreadClient() {}
29 }; 29 };
30 30
31 } // namespace cc 31 } // namespace cc
32 32
33 #endif // CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_ 33 #endif // CC_TREES_LAYER_TREE_HOST_SINGLE_THREAD_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_perftest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698