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

Side by Side Diff: ui/aura/mus/client_surface_embedder.h

Issue 2848273002: Aura-Mus: Avoid creating StubSurfaceReferenceFactory's on every surface ID change (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | ui/aura/mus/client_surface_embedder.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include <memory> 5 #include <memory>
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ref_counted.h"
9 #include "cc/surfaces/surface_reference_factory.h"
8 #include "ui/gfx/geometry/insets.h" 10 #include "ui/gfx/geometry/insets.h"
9 11
10 namespace cc { 12 namespace cc {
11 class SurfaceInfo; 13 class SurfaceInfo;
12 } 14 }
13 15
14 namespace gfx { 16 namespace gfx {
15 class Insets; 17 class Insets;
16 } 18 }
17 19
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 57
56 // Contains the client's content. 58 // Contains the client's content.
57 std::unique_ptr<ui::Layer> surface_layer_; 59 std::unique_ptr<ui::Layer> surface_layer_;
58 60
59 // Used for showing a gutter when the content is not available. 61 // Used for showing a gutter when the content is not available.
60 std::unique_ptr<ui::Layer> right_gutter_; 62 std::unique_ptr<ui::Layer> right_gutter_;
61 std::unique_ptr<ui::Layer> bottom_gutter_; 63 std::unique_ptr<ui::Layer> bottom_gutter_;
62 64
63 gfx::Insets client_area_insets_; 65 gfx::Insets client_area_insets_;
64 66
67 scoped_refptr<cc::SurfaceReferenceFactory> ref_factory_;
68
65 DISALLOW_COPY_AND_ASSIGN(ClientSurfaceEmbedder); 69 DISALLOW_COPY_AND_ASSIGN(ClientSurfaceEmbedder);
66 }; 70 };
67 71
68 } // namespace aura 72 } // namespace aura
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/client_surface_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698