OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 6 #define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 float top_controls_delta) override; | 60 float top_controls_delta) override; |
61 void RequestNewOutputSurface() override; | 61 void RequestNewOutputSurface() override; |
62 void DidFailToInitializeOutputSurface() override; | 62 void DidFailToInitializeOutputSurface() override; |
63 void DidInitializeOutputSurface() override; | 63 void DidInitializeOutputSurface() override; |
64 void WillCommit() override; | 64 void WillCommit() override; |
65 void DidCommit() override; | 65 void DidCommit() override; |
66 void DidCommitAndDrawFrame() override; | 66 void DidCommitAndDrawFrame() override; |
67 void DidCompleteSwapBuffers() override; | 67 void DidCompleteSwapBuffers() override; |
68 void DidCompletePageScaleAnimation() override {} | 68 void DidCompletePageScaleAnimation() override {} |
69 void RateLimitSharedMainThreadContext() override {} | 69 void RateLimitSharedMainThreadContext() override {} |
| 70 void RecordFrameTimingEvents( |
| 71 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| 72 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 73 override {} |
70 | 74 |
71 // blink::WebLayerTreeView implementation. | 75 // blink::WebLayerTreeView implementation. |
72 virtual void setRootLayer(const blink::WebLayer& layer); | 76 virtual void setRootLayer(const blink::WebLayer& layer); |
73 virtual void clearRootLayer(); | 77 virtual void clearRootLayer(); |
74 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 78 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
75 virtual blink::WebSize deviceViewportSize() const; | 79 virtual blink::WebSize deviceViewportSize() const; |
76 virtual void setDeviceScaleFactor(float); | 80 virtual void setDeviceScaleFactor(float); |
77 virtual float deviceScaleFactor() const; | 81 virtual float deviceScaleFactor() const; |
78 virtual void setBackgroundColor(blink::WebColor color); | 82 virtual void setBackgroundColor(blink::WebColor color); |
79 virtual void setHasTransparentBackground(bool has_transparent_background); | 83 virtual void setHasTransparentBackground(bool has_transparent_background); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 main_thread_compositor_task_runner_; | 127 main_thread_compositor_task_runner_; |
124 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 128 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
125 | 129 |
126 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 130 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
127 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 131 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
128 }; | 132 }; |
129 | 133 |
130 } // namespace html_viewer | 134 } // namespace html_viewer |
131 | 135 |
132 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 136 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
OLD | NEW |