Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: content/common/gpu/ca_layer_tree_mac.h

Issue 1844053002: Add detached mode plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And target Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/accelerated_surface_buffers_swapped_params_mac.h ('k') | content/common/gpu/ca_layer_tree_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698