| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 skia::RefPtr<SkPicture> CapturePicture(); | 248 skia::RefPtr<SkPicture> CapturePicture(); |
| 249 | 249 |
| 250 bool BlocksPendingCommit() const; | 250 bool BlocksPendingCommit() const; |
| 251 | 251 |
| 252 // Obtains a thorough dump of the LayerTreeHost as a value. | 252 // Obtains a thorough dump of the LayerTreeHost as a value. |
| 253 scoped_ptr<base::Value> AsValue() const; | 253 scoped_ptr<base::Value> AsValue() const; |
| 254 | 254 |
| 255 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } | 255 bool in_paint_layer_contents() const { return in_paint_layer_contents_; } |
| 256 | 256 |
| 257 void ShowTopControls(bool show); |
| 258 float GetTopControlsOffset(); |
| 259 |
| 257 protected: | 260 protected: |
| 258 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); | 261 LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); |
| 259 bool Initialize(scoped_ptr<Thread> impl_thread); | 262 bool Initialize(scoped_ptr<Thread> impl_thread); |
| 260 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); | 263 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); |
| 261 | 264 |
| 262 private: | 265 private: |
| 263 bool InitializeProxy(scoped_ptr<Proxy> proxy); | 266 bool InitializeProxy(scoped_ptr<Proxy> proxy); |
| 264 | 267 |
| 265 bool PaintLayerContents(const LayerList& render_surface_layer_list, | 268 bool PaintLayerContents(const LayerList& render_surface_layer_list, |
| 266 ResourceUpdateQueue* quue); | 269 ResourceUpdateQueue* quue); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 bool in_paint_layer_contents_; | 347 bool in_paint_layer_contents_; |
| 345 | 348 |
| 346 LatencyInfo latency_info_; | 349 LatencyInfo latency_info_; |
| 347 | 350 |
| 348 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 351 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 349 }; | 352 }; |
| 350 | 353 |
| 351 } // namespace cc | 354 } // namespace cc |
| 352 | 355 |
| 353 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 356 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |