| OLD | NEW |
| 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 CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 5 #ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/test/test_task_graph_runner.h" |
| 9 #include "cc/trees/layer_tree_host_client.h" | 10 #include "cc/trees/layer_tree_host_client.h" |
| 10 #include "cc/trees/layer_tree_host_single_thread_client.h" | 11 #include "cc/trees/layer_tree_host_single_thread_client.h" |
| 11 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" | 12 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
| 12 | 13 |
| 13 namespace cc { | 14 namespace cc { |
| 14 class LayerTreeHost; | 15 class LayerTreeHost; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace blink { class WebLayer; } | 18 namespace blink { class WebLayer; } |
| 18 | 19 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void RecordFrameTimingEvents( | 86 void RecordFrameTimingEvents( |
| 86 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, | 87 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| 87 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 88 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 88 override {} | 89 override {} |
| 89 | 90 |
| 90 // cc::LayerTreeHostSingleThreadClient implementation. | 91 // cc::LayerTreeHostSingleThreadClient implementation. |
| 91 void DidPostSwapBuffers() override {} | 92 void DidPostSwapBuffers() override {} |
| 92 void DidAbortSwapBuffers() override {} | 93 void DidAbortSwapBuffers() override {} |
| 93 | 94 |
| 94 private: | 95 private: |
| 96 cc::TestTaskGraphRunner task_graph_runner_; |
| 95 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 97 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 96 | 98 |
| 97 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 99 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 } // namespace content | 102 } // namespace content |
| 101 | 103 |
| 102 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 104 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| OLD | NEW |