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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void DidCommitAndDrawFrame() = 0; | 58 virtual void DidCommitAndDrawFrame() = 0; |
59 virtual void DidCompleteSwapBuffers() = 0; | 59 virtual void DidCompleteSwapBuffers() = 0; |
60 | 60 |
61 // Called when page scale animation has completed. | 61 // Called when page scale animation has completed. |
62 virtual void DidCompletePageScaleAnimation() = 0; | 62 virtual void DidCompletePageScaleAnimation() = 0; |
63 | 63 |
64 // TODO(simonhong): Makes this to pure virtual function when client | 64 // TODO(simonhong): Makes this to pure virtual function when client |
65 // implementation is ready. | 65 // implementation is ready. |
66 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} | 66 virtual void SendBeginFramesToChildren(const BeginFrameArgs& args) {} |
67 | 67 |
| 68 virtual void ReportFixedRasterScaleUseCounters( |
| 69 bool has_blurry_content, |
| 70 bool has_potential_performance_regression) = 0; |
| 71 |
68 protected: | 72 protected: |
69 virtual ~LayerTreeHostClient() {} | 73 virtual ~LayerTreeHostClient() {} |
70 }; | 74 }; |
71 | 75 |
72 } // namespace cc | 76 } // namespace cc |
73 | 77 |
74 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ | 78 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ |
OLD | NEW |