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

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

Issue 2617603002: Revert of Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embeded content. (Closed)
Patch Set: 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 // DrawWindow creates SurfaceDrawQuad for the provided ServerWindow and 83 // DrawWindowTree recursively visits ServerWindows, creating a SurfaceDrawQuad
84 // appends it to the provided cc::RenderPass. 84 // for each that lacks one.
85 void DrawWindow(cc::RenderPass* pass, ServerWindow* window); 85 void DrawWindowTree(cc::RenderPass* pass,
86 ServerWindow* window,
87 const gfx::Vector2d& parent_to_root_origin_offset,
88 float opacity);
86 89
87 // Finds the parent surface id for |window|. 90 // Finds the parent surface id for |window|.
88 cc::SurfaceId FindParentSurfaceId(ServerWindow* window); 91 cc::SurfaceId FindParentSurfaceId(ServerWindow* window);
89 92
90 // Adds surface reference to local cache and surface manager. 93 // Adds surface reference to local cache and surface manager.
91 void AddSurfaceReference(const cc::SurfaceId& parent_id, 94 void AddSurfaceReference(const cc::SurfaceId& parent_id,
92 const cc::SurfaceId& child_id); 95 const cc::SurfaceId& child_id);
93 96
94 // Does work necessary for adding the first surface reference. 97 // Does work necessary for adding the first surface reference.
95 void AddFirstReference(const cc::SurfaceId& surface_id, ServerWindow* window); 98 void AddFirstReference(const cc::SurfaceId& surface_id, ServerWindow* window);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 base::WeakPtrFactory<FrameGenerator> weak_factory_; 154 base::WeakPtrFactory<FrameGenerator> weak_factory_;
152 155
153 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); 156 DISALLOW_COPY_AND_ASSIGN(FrameGenerator);
154 }; 157 };
155 158
156 } // namespace ws 159 } // namespace ws
157 160
158 } // namespace ui 161 } // namespace ui
159 162
160 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ 163 #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