| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_CLIENT_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 51 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 52 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0; | 52 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) = 0; |
| 53 | 53 |
| 54 // Called when page scale animation has completed. | 54 // Called when page scale animation has completed. |
| 55 virtual void DidCompletePageScaleAnimation() = 0; | 55 virtual void DidCompletePageScaleAnimation() = 0; |
| 56 | 56 |
| 57 // TODO(simonhong): Makes this to pure virtual function when client | 57 // TODO(simonhong): Makes this to pure virtual function when client |
| 58 // implementation is ready. | 58 // implementation is ready. |
| 59 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} | 59 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} |
| 60 | 60 |
| 61 // Requests that the client insert a rate limiting token in the shared main | |
| 62 // thread context's command stream that will block if the context gets too far | |
| 63 // ahead of the compositor's command stream. Only needed if the tree contains | |
| 64 // a TextureLayer that calls SetRateLimitContext(true). | |
| 65 virtual void RateLimitSharedMainThreadContext() {} | |
| 66 | |
| 67 protected: | 61 protected: |
| 68 virtual ~LayerTreeHostClient() {} | 62 virtual ~LayerTreeHostClient() {} |
| 69 }; | 63 }; |
| 70 | 64 |
| 71 } // namespace cc | 65 } // namespace cc |
| 72 | 66 |
| 73 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ | 67 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
| OLD | NEW |