OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROPERTY_TREE_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); | 371 void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node); |
372 | 372 |
373 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); | 373 void AddCopyRequest(int node_id, std::unique_ptr<CopyOutputRequest> request); |
374 void PushCopyRequestsTo(EffectTree* other_tree); | 374 void PushCopyRequestsTo(EffectTree* other_tree); |
375 void TakeCopyRequestsAndTransformToSurface( | 375 void TakeCopyRequestsAndTransformToSurface( |
376 int node_id, | 376 int node_id, |
377 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); | 377 std::vector<std::unique_ptr<CopyOutputRequest>>* requests); |
378 bool HasCopyRequests() const; | 378 bool HasCopyRequests() const; |
379 void ClearCopyRequests(); | 379 void ClearCopyRequests(); |
380 | 380 |
381 int ClosestAncestorWithCopyRequest(int id) const; | |
382 | |
383 // Given the ids of two effect nodes that have render surfaces, returns the | 381 // Given the ids of two effect nodes that have render surfaces, returns the |
384 // id of the lowest common ancestor effect node that also has a render | 382 // id of the lowest common ancestor effect node that also has a render |
385 // surface. | 383 // surface. |
386 int LowestCommonAncestorWithRenderSurface(int id_1, int id_2) const; | 384 int LowestCommonAncestorWithRenderSurface(int id_1, int id_2) const; |
387 | 385 |
388 void AddMaskLayerId(int id); | 386 void AddMaskLayerId(int id); |
389 const std::vector<int>& mask_layer_ids() const { return mask_layer_ids_; } | 387 const std::vector<int>& mask_layer_ids() const { return mask_layer_ids_; } |
390 | 388 |
391 RenderSurfaceImpl* GetRenderSurface(int id) { | 389 RenderSurfaceImpl* GetRenderSurface(int id) { |
392 return render_surfaces_[id].get(); | 390 return render_surfaces_[id].get(); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 726 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
729 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 727 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
730 int effect_id) const; | 728 int effect_id) const; |
731 | 729 |
732 PropertyTreesCachedData cached_data_; | 730 PropertyTreesCachedData cached_data_; |
733 }; | 731 }; |
734 | 732 |
735 } // namespace cc | 733 } // namespace cc |
736 | 734 |
737 #endif // CC_TREES_PROPERTY_TREE_H_ | 735 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |