| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 float page_scale, | 63 float page_scale, |
| 64 float top_controls_delta) override; | 64 float top_controls_delta) override; |
| 65 void RequestNewOutputSurface() override; | 65 void RequestNewOutputSurface() override; |
| 66 void DidFailToInitializeOutputSurface() override; | 66 void DidFailToInitializeOutputSurface() override; |
| 67 void DidInitializeOutputSurface() override; | 67 void DidInitializeOutputSurface() override; |
| 68 void WillCommit() override; | 68 void WillCommit() override; |
| 69 void DidCommit() override; | 69 void DidCommit() override; |
| 70 void DidCommitAndDrawFrame() override; | 70 void DidCommitAndDrawFrame() override; |
| 71 void DidCompleteSwapBuffers() override; | 71 void DidCompleteSwapBuffers() override; |
| 72 void DidCompletePageScaleAnimation() override {} | 72 void DidCompletePageScaleAnimation() override {} |
| 73 void RateLimitSharedMainThreadContext() override {} | |
| 74 void RecordFrameTimingEvents( | 73 void RecordFrameTimingEvents( |
| 75 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, | 74 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| 76 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 75 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 77 override {} | 76 override {} |
| 78 | 77 |
| 79 // blink::WebLayerTreeView implementation. | 78 // blink::WebLayerTreeView implementation. |
| 80 virtual void setRootLayer(const blink::WebLayer& layer); | 79 virtual void setRootLayer(const blink::WebLayer& layer); |
| 81 virtual void clearRootLayer(); | 80 virtual void clearRootLayer(); |
| 82 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 81 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
| 83 virtual void setDeviceScaleFactor(float); | 82 virtual void setDeviceScaleFactor(float); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 main_thread_compositor_task_runner_; | 121 main_thread_compositor_task_runner_; |
| 123 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; | 122 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
| 124 | 123 |
| 125 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; | 124 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
| 126 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); | 125 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 } // namespace html_viewer | 128 } // namespace html_viewer |
| 130 | 129 |
| 131 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ | 130 #endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
| OLD | NEW |