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

Side by Side Diff: cc/layers/render_surface_impl.h

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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
« no previous file with comments | « cc/layers/render_pass_sink.h ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_LAYERS_RENDER_SURFACE_IMPL_H_ 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_
6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "cc/base/cc_export.h" 15 #include "cc/base/cc_export.h"
16 #include "cc/layers/layer_collections.h" 16 #include "cc/layers/layer_collections.h"
17 #include "cc/quads/render_pass.h" 17 #include "cc/quads/render_pass.h"
18 #include "cc/quads/shared_quad_state.h" 18 #include "cc/quads/shared_quad_state.h"
19 #include "cc/trees/occlusion.h" 19 #include "cc/trees/occlusion.h"
20 #include "ui/gfx/geometry/rect.h" 20 #include "ui/gfx/geometry/rect.h"
21 #include "ui/gfx/geometry/rect_f.h" 21 #include "ui/gfx/geometry/rect_f.h"
22 #include "ui/gfx/transform.h" 22 #include "ui/gfx/transform.h"
23 23
24 namespace cc { 24 namespace cc {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 bool contributes_to_drawn_surface_ : 1; 197 bool contributes_to_drawn_surface_ : 1;
198 198
199 LayerImplList layer_list_; 199 LayerImplList layer_list_;
200 Occlusion occlusion_in_content_space_; 200 Occlusion occlusion_in_content_space_;
201 201
202 // The nearest ancestor target surface that will contain the contents of this 202 // The nearest ancestor target surface that will contain the contents of this
203 // surface, and that ignores outside occlusion. This can point to itself. 203 // surface, and that ignores outside occlusion. This can point to itself.
204 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; 204 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
205 205
206 scoped_ptr<DamageTracker> damage_tracker_; 206 std::unique_ptr<DamageTracker> damage_tracker_;
207 207
208 // For LayerIteratorActions 208 // For LayerIteratorActions
209 int target_render_surface_layer_index_history_; 209 int target_render_surface_layer_index_history_;
210 size_t current_layer_index_history_; 210 size_t current_layer_index_history_;
211 211
212 friend class LayerIterator; 212 friend class LayerIterator;
213 213
214 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 214 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
215 }; 215 };
216 216
217 } // namespace cc 217 } // namespace cc
218 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 218 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/render_pass_sink.h ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698