| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 | 471 |
| 472 void RecordGpuRasterizationHistogram(); | 472 void RecordGpuRasterizationHistogram(); |
| 473 | 473 |
| 474 private: | 474 private: |
| 475 friend class LayerTreeHostSerializationTest; | 475 friend class LayerTreeHostSerializationTest; |
| 476 | 476 |
| 477 // This is the number of consecutive frames in which we want the content to be | 477 // This is the number of consecutive frames in which we want the content to be |
| 478 // suitable for GPU rasterization before re-enabling it. | 478 // suitable for GPU rasterization before re-enabling it. |
| 479 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; | 479 enum { kNumFramesToConsiderBeforeGpuRasterization = 60 }; |
| 480 | 480 |
| 481 void ApplyViewportDeltas(ScrollAndScaleSet* info); |
| 481 void InitializeProxy( | 482 void InitializeProxy( |
| 482 std::unique_ptr<Proxy> proxy, | 483 std::unique_ptr<Proxy> proxy, |
| 483 std::unique_ptr<BeginFrameSource> external_begin_frame_source); | 484 std::unique_ptr<BeginFrameSource> external_begin_frame_source); |
| 484 | 485 |
| 485 bool DoUpdateLayers(Layer* root_layer); | 486 bool DoUpdateLayers(Layer* root_layer); |
| 486 void UpdateHudLayer(); | 487 void UpdateHudLayer(); |
| 487 | 488 |
| 488 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time); | 489 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time); |
| 489 | 490 |
| 490 struct UIResourceClientData { | 491 struct UIResourceClientData { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 uint32_t surface_client_id_; | 606 uint32_t surface_client_id_; |
| 606 uint32_t next_surface_sequence_; | 607 uint32_t next_surface_sequence_; |
| 607 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 608 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
| 608 | 609 |
| 609 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 610 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 610 }; | 611 }; |
| 611 | 612 |
| 612 } // namespace cc | 613 } // namespace cc |
| 613 | 614 |
| 614 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 615 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |