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 #include "content/test/web_layer_tree_view_impl_for_testing.h" | 5 #include "content/test/web_layer_tree_view_impl_for_testing.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void WebLayerTreeViewImplForTesting::setNeedsAnimate() { | 115 void WebLayerTreeViewImplForTesting::setNeedsAnimate() { |
116 layer_tree_host_->SetNeedsAnimate(); | 116 layer_tree_host_->SetNeedsAnimate(); |
117 } | 117 } |
118 | 118 |
119 bool WebLayerTreeViewImplForTesting::commitRequested() const { | 119 bool WebLayerTreeViewImplForTesting::commitRequested() const { |
120 return layer_tree_host_->CommitRequested(); | 120 return layer_tree_host_->CommitRequested(); |
121 } | 121 } |
122 | 122 |
123 void WebLayerTreeViewImplForTesting::didStopFlinging() {} | 123 void WebLayerTreeViewImplForTesting::didStopFlinging() {} |
124 | 124 |
125 bool WebLayerTreeViewImplForTesting::compositeAndReadback( | |
126 void* pixels, const WebRect& rect_in_device_viewport) { | |
127 return layer_tree_host_->CompositeAndReadback(pixels, | |
128 rect_in_device_viewport); | |
129 } | |
130 | |
131 void WebLayerTreeViewImplForTesting::finishAllRendering() { | 125 void WebLayerTreeViewImplForTesting::finishAllRendering() { |
132 layer_tree_host_->FinishAllRendering(); | 126 layer_tree_host_->FinishAllRendering(); |
133 } | 127 } |
134 | 128 |
135 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { | 129 void WebLayerTreeViewImplForTesting::setDeferCommits(bool defer_commits) { |
136 layer_tree_host_->SetDeferCommits(defer_commits); | 130 layer_tree_host_->SetDeferCommits(defer_commits); |
137 } | 131 } |
138 | 132 |
139 void WebLayerTreeViewImplForTesting::Layout() { | 133 void WebLayerTreeViewImplForTesting::Layout() { |
140 } | 134 } |
(...skipping 22 matching lines...) Expand all Loading... |
163 : NULL); | 157 : NULL); |
164 } | 158 } |
165 | 159 |
166 void WebLayerTreeViewImplForTesting::clearViewportLayers() { | 160 void WebLayerTreeViewImplForTesting::clearViewportLayers() { |
167 layer_tree_host_->RegisterViewportLayers(scoped_refptr<cc::Layer>(), | 161 layer_tree_host_->RegisterViewportLayers(scoped_refptr<cc::Layer>(), |
168 scoped_refptr<cc::Layer>(), | 162 scoped_refptr<cc::Layer>(), |
169 scoped_refptr<cc::Layer>()); | 163 scoped_refptr<cc::Layer>()); |
170 } | 164 } |
171 | 165 |
172 } // namespace content | 166 } // namespace content |
OLD | NEW |