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

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

Issue 2790673003: Aura-Mus: Enable Surface Synchronization behind flag (Closed)
Patch Set: Added unit test Created 3 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 | « no previous file | ui/aura/mus/client_surface_embedder.cc » ('j') | ui/aura/mus/window_port_mus.cc » ('J')
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 8
9 namespace cc { 9 namespace cc {
10 class SurfaceInfo; 10 class SurfaceInfo;
(...skipping 12 matching lines...) Expand all
23 // layer, and updating them when the client submits new surfaces. 23 // layer, and updating them when the client submits new surfaces.
24 class ClientSurfaceEmbedder { 24 class ClientSurfaceEmbedder {
25 public: 25 public:
26 explicit ClientSurfaceEmbedder(Window* window); 26 explicit ClientSurfaceEmbedder(Window* window);
27 ~ClientSurfaceEmbedder(); 27 ~ClientSurfaceEmbedder();
28 28
29 // Updates the clip layer and primary SurfaceInfo of the surface layer based 29 // Updates the clip layer and primary SurfaceInfo of the surface layer based
30 // on the provided |surface_info|. 30 // on the provided |surface_info|.
31 void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info); 31 void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info);
32 32
33 void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info);
sadrul 2017/03/31 01:26:20 Does the clip-layer apply here? Are there restrict
Fady Samuel 2017/03/31 01:57:43 The clip layer is explicitly NOT updated. I've exp
34
33 private: 35 private:
34 // The window which embeds the client. 36 // The window which embeds the client.
35 Window* window_; 37 Window* window_;
36 38
37 // Contains the client's content. 39 // Contains the client's content.
38 std::unique_ptr<ui::Layer> surface_layer_; 40 std::unique_ptr<ui::Layer> surface_layer_;
39 41
40 // Used for clipping the surface layer to the window bounds. 42 // Used for clipping the surface layer to the window bounds.
41 std::unique_ptr<ui::Layer> clip_layer_; 43 std::unique_ptr<ui::Layer> clip_layer_;
42 44
43 DISALLOW_COPY_AND_ASSIGN(ClientSurfaceEmbedder); 45 DISALLOW_COPY_AND_ASSIGN(ClientSurfaceEmbedder);
44 }; 46 };
45 47
46 } // namespace aura 48 } // namespace aura
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/client_surface_embedder.cc » ('j') | ui/aura/mus/window_port_mus.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698