| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ | 5 #ifndef CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ |
| 6 #define CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ | 6 #define CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ |
| 7 | 7 |
| 8 #include <IOSurface/IOSurface.h> | 8 #include <IOSurface/IOSurface.h> |
| 9 #include <QuartzCore/QuartzCore.h> | 9 #include <QuartzCore/QuartzCore.h> |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 unsigned background_color, | 46 unsigned background_color, |
| 47 unsigned edge_aa_mask, | 47 unsigned edge_aa_mask, |
| 48 float opacity); | 48 float opacity); |
| 49 | 49 |
| 50 // Create a CALayer tree for the scheduled layers, and set |superlayer| to | 50 // Create a CALayer tree for the scheduled layers, and set |superlayer| to |
| 51 // have only this tree as its sublayers. If |old_tree| is non-null, then try | 51 // have only this tree as its sublayers. If |old_tree| is non-null, then try |
| 52 // to re-use the CALayers of |old_tree| as much as possible. |old_tree| will | 52 // to re-use the CALayers of |old_tree| as much as possible. |old_tree| will |
| 53 // be destroyed at the end of the function, and any CALayers in it which were | 53 // be destroyed at the end of the function, and any CALayers in it which were |
| 54 // not re-used by |this| will be removed from the CALayer hierarchy. | 54 // not re-used by |this| will be removed from the CALayer hierarchy. |
| 55 void CommitScheduledCALayers(CALayer* superlayer, | 55 void CommitScheduledCALayers(CALayer* superlayer, |
| 56 bool* use_detached_video_layer, |
| 57 AVSampleBufferDisplayLayer* detached_video_layer, |
| 56 scoped_ptr<CALayerTree> old_tree, | 58 scoped_ptr<CALayerTree> old_tree, |
| 57 float scale_factor); | 59 float scale_factor); |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 struct RootLayer; | 62 struct RootLayer; |
| 61 struct ClipAndSortingLayer; | 63 struct ClipAndSortingLayer; |
| 62 struct TransformLayer; | 64 struct TransformLayer; |
| 63 struct ContentLayer; | 65 struct ContentLayer; |
| 64 | 66 |
| 65 struct RootLayer { | 67 struct RootLayer { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 float scale_factor_ = 1; | 195 float scale_factor_ = 1; |
| 194 bool has_committed_ = false; | 196 bool has_committed_ = false; |
| 195 | 197 |
| 196 private: | 198 private: |
| 197 DISALLOW_COPY_AND_ASSIGN(CALayerTree); | 199 DISALLOW_COPY_AND_ASSIGN(CALayerTree); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace content | 202 } // namespace content |
| 201 | 203 |
| 202 #endif // CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ | 204 #endif // CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ |
| OLD | NEW |