| 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 28 matching lines...) Expand all  Loading... | 
| 39 #include "cc/trees/compositor_mode.h" | 39 #include "cc/trees/compositor_mode.h" | 
| 40 #include "cc/trees/layer_tree_host_client.h" | 40 #include "cc/trees/layer_tree_host_client.h" | 
| 41 #include "cc/trees/layer_tree_settings.h" | 41 #include "cc/trees/layer_tree_settings.h" | 
| 42 #include "cc/trees/mutator_host.h" | 42 #include "cc/trees/mutator_host.h" | 
| 43 #include "cc/trees/proxy.h" | 43 #include "cc/trees/proxy.h" | 
| 44 #include "cc/trees/swap_promise_manager.h" | 44 #include "cc/trees/swap_promise_manager.h" | 
| 45 #include "cc/trees/target_property.h" | 45 #include "cc/trees/target_property.h" | 
| 46 #include "third_party/skia/include/core/SkColor.h" | 46 #include "third_party/skia/include/core/SkColor.h" | 
| 47 #include "ui/gfx/geometry/rect.h" | 47 #include "ui/gfx/geometry/rect.h" | 
| 48 | 48 | 
| 49 class SkImage; |  | 
| 50 |  | 
| 51 namespace cc { | 49 namespace cc { | 
| 52 class HeadsUpDisplayLayer; | 50 class HeadsUpDisplayLayer; | 
| 53 class Layer; | 51 class Layer; | 
| 54 class LayerTreeHostClient; | 52 class LayerTreeHostClient; | 
| 55 class LayerTreeHostImpl; | 53 class LayerTreeHostImpl; | 
| 56 class LayerTreeHostImplClient; | 54 class LayerTreeHostImplClient; | 
| 57 class LayerTreeHostSingleThreadClient; | 55 class LayerTreeHostSingleThreadClient; | 
| 58 class LayerTreeMutator; | 56 class LayerTreeMutator; | 
| 59 class MutatorEvents; | 57 class MutatorEvents; | 
| 60 class MutatorHost; | 58 class MutatorHost; | 
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 478 | 476 | 
| 479   void ElementIsAnimatingChanged(ElementId element_id, | 477   void ElementIsAnimatingChanged(ElementId element_id, | 
| 480                                  ElementListType list_type, | 478                                  ElementListType list_type, | 
| 481                                  const PropertyAnimationState& mask, | 479                                  const PropertyAnimationState& mask, | 
| 482                                  const PropertyAnimationState& state) override; | 480                                  const PropertyAnimationState& state) override; | 
| 483 | 481 | 
| 484   void ScrollOffsetAnimationFinished() override {} | 482   void ScrollOffsetAnimationFinished() override {} | 
| 485   gfx::ScrollOffset GetScrollOffsetForAnimation( | 483   gfx::ScrollOffset GetScrollOffsetForAnimation( | 
| 486       ElementId element_id) const override; | 484       ElementId element_id) const override; | 
| 487 | 485 | 
| 488   void QueueImageDecode(sk_sp<const SkImage> image, | 486   void QueueImageDecode(const PaintImage& image, | 
| 489                         const base::Callback<void(bool)>& callback); | 487                         const base::Callback<void(bool)>& callback); | 
| 490 | 488 | 
| 491  protected: | 489  protected: | 
| 492   LayerTreeHost(InitParams* params, CompositorMode mode); | 490   LayerTreeHost(InitParams* params, CompositorMode mode); | 
| 493 | 491 | 
| 494   void InitializeThreaded( | 492   void InitializeThreaded( | 
| 495       scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 493       scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 
| 496       scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 494       scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 
| 497   void InitializeSingleThreaded( | 495   void InitializeSingleThreaded( | 
| 498       LayerTreeHostSingleThreadClient* single_thread_client, | 496       LayerTreeHostSingleThreadClient* single_thread_client, | 
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 639   bool in_paint_layer_contents_ = false; | 637   bool in_paint_layer_contents_ = false; | 
| 640   bool in_update_property_trees_ = false; | 638   bool in_update_property_trees_ = false; | 
| 641 | 639 | 
| 642   // This is true if atleast one layer in the layer tree has a copy request. We | 640   // This is true if atleast one layer in the layer tree has a copy request. We | 
| 643   // use this bool to decide whether we need to compute subtree has copy request | 641   // use this bool to decide whether we need to compute subtree has copy request | 
| 644   // for every layer during property tree building. | 642   // for every layer during property tree building. | 
| 645   bool has_copy_request_ = false; | 643   bool has_copy_request_ = false; | 
| 646 | 644 | 
| 647   MutatorHost* mutator_host_; | 645   MutatorHost* mutator_host_; | 
| 648 | 646 | 
| 649   std::vector<std::pair<sk_sp<const SkImage>, base::Callback<void(bool)>>> | 647   std::vector<std::pair<PaintImage, base::Callback<void(bool)>>> | 
| 650       queued_image_decodes_; | 648       queued_image_decodes_; | 
| 651 | 649 | 
| 652   DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 650   DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 
| 653 }; | 651 }; | 
| 654 | 652 | 
| 655 }  // namespace cc | 653 }  // namespace cc | 
| 656 | 654 | 
| 657 #endif  // CC_TREES_LAYER_TREE_HOST_H_ | 655 #endif  // CC_TREES_LAYER_TREE_HOST_H_ | 
| OLD | NEW | 
|---|