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

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

Issue 1711503002: Mac Overlays: Add unittests for CALayerTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/mac/scoped_cftyperef.h" 13 #include "base/mac/scoped_cftyperef.h"
14 #include "base/mac/scoped_nsobject.h" 14 #include "base/mac/scoped_nsobject.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "content/common/content_export.h"
16 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
17 #include "ui/gfx/geometry/rect_f.h" 18 #include "ui/gfx/geometry/rect_f.h"
18 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
19 20
20 namespace content { 21 namespace content {
21 22
22 // The CALayerTree will construct a hierarchy of CALayers from a linear list, 23 // The CALayerTree will construct a hierarchy of CALayers from a linear list,
23 // using the algorithm and structure referenced described in 24 // using the algorithm and structure referenced described in
24 // https://docs.google.com/document/d/1DtSN9zzvCF44_FQPM7ie01UxGHagQ66zfF5L9Hnig QY/edit?usp=sharing 25 // https://docs.google.com/document/d/1DtSN9zzvCF44_FQPM7ie01UxGHagQ66zfF5L9Hnig QY/edit?usp=sharing
25 class CALayerTree { 26 class CONTENT_EXPORT CALayerTree {
26 public: 27 public:
27 CALayerTree(); 28 CALayerTree();
28 29
29 // This will remove all CALayers from this tree from their superlayer. 30 // This will remove all CALayers from this tree from their superlayer.
30 ~CALayerTree(); 31 ~CALayerTree();
31 32
32 // Append the description of a new CALayer to the tree. This will not 33 // Append the description of a new CALayer to the tree. This will not
33 // create any new CALayers until CommitScheduledCALayers is called. This 34 // create any new CALayers until CommitScheduledCALayers is called. This
34 // cannot be called anymore after CommitScheduledCALayers has been called. 35 // cannot be called anymore after CommitScheduledCALayers has been called.
35 bool ScheduleCALayer(bool is_clipped, 36 bool ScheduleCALayer(bool is_clipped,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 float scale_factor_ = 1; 182 float scale_factor_ = 1;
182 bool has_committed_ = false; 183 bool has_committed_ = false;
183 184
184 private: 185 private:
185 DISALLOW_COPY_AND_ASSIGN(CALayerTree); 186 DISALLOW_COPY_AND_ASSIGN(CALayerTree);
186 }; 187 };
187 188
188 } // namespace content 189 } // namespace content
189 190
190 #endif // CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_ 191 #endif // CONTENT_COMMON_GPU_CA_LAYER_TREE_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/ca_layer_tree_mac.mm » ('j') | content/common/gpu/ca_layer_tree_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698