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

Side by Side Diff: services/ui/ws/frame_generator.h

Issue 2613903003: Reland of "Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embe… (Closed)
Patch Set: fix Created 3 years, 11 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 | « services/ui/ws/display.cc ('k') | services/ui/ws/frame_generator.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 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 SERVICES_UI_WS_FRAME_GENERATOR_H_ 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_
6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <vector> 10 #include <vector>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // cc::mojom::MojoCompositorFrameSinkClient implementation: 74 // cc::mojom::MojoCompositorFrameSinkClient implementation:
75 void DidReceiveCompositorFrameAck() override; 75 void DidReceiveCompositorFrameAck() override;
76 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_arags) override; 76 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_arags) override;
77 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 77 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
78 void WillDrawSurface() override; 78 void WillDrawSurface() override;
79 79
80 // Generates the CompositorFrame. 80 // Generates the CompositorFrame.
81 cc::CompositorFrame GenerateCompositorFrame(const gfx::Rect& output_rect); 81 cc::CompositorFrame GenerateCompositorFrame(const gfx::Rect& output_rect);
82 82
83 // DrawWindowTree recursively visits ServerWindows, creating a SurfaceDrawQuad 83 // DrawWindow creates SurfaceDrawQuad for the provided ServerWindow and
84 // for each that lacks one. 84 // appends it to the provided cc::RenderPass.
85 void DrawWindowTree(cc::RenderPass* pass, 85 void DrawWindow(cc::RenderPass* pass, ServerWindow* window);
86 ServerWindow* window,
87 const gfx::Vector2d& parent_to_root_origin_offset,
88 float opacity);
89 86
90 // Finds the parent surface id for |window|. 87 // Finds the parent surface id for |window|.
91 cc::SurfaceId FindParentSurfaceId(ServerWindow* window); 88 cc::SurfaceId FindParentSurfaceId(ServerWindow* window);
92 89
93 // Adds surface reference to local cache and surface manager. 90 // Adds surface reference to local cache and surface manager.
94 void AddSurfaceReference(const cc::SurfaceId& parent_id, 91 void AddSurfaceReference(const cc::SurfaceId& parent_id,
95 const cc::SurfaceId& child_id); 92 const cc::SurfaceId& child_id);
96 93
97 // Does work necessary for adding the first surface reference. 94 // Does work necessary for adding the first surface reference.
98 void AddFirstReference(const cc::SurfaceId& surface_id, ServerWindow* window); 95 void AddFirstReference(const cc::SurfaceId& surface_id, ServerWindow* window);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 base::WeakPtrFactory<FrameGenerator> weak_factory_; 151 base::WeakPtrFactory<FrameGenerator> weak_factory_;
155 152
156 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); 153 DISALLOW_COPY_AND_ASSIGN(FrameGenerator);
157 }; 154 };
158 155
159 } // namespace ws 156 } // namespace ws
160 157
161 } // namespace ui 158 } // namespace ui
162 159
163 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ 160 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_
OLDNEW
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698