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

Side by Side Diff: components/mus/ws/server_window_surface.h

Issue 2042643002: Implement cc::CompositorFrameMetadata StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment Created 4 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Takes a mojom::CompositorFrame |input|, and converts it into a 67 // Takes a mojom::CompositorFrame |input|, and converts it into a
68 // cc::CompositorFrame. Along the way, this conversion ensures that a 68 // cc::CompositorFrame. Along the way, this conversion ensures that a
69 // CompositorFrame of this window can only refer to windows within its 69 // CompositorFrame of this window can only refer to windows within its
70 // subtree. Windows referenced in |input| are stored in 70 // subtree. Windows referenced in |input| are stored in
71 // |referenced_window_ids_|. 71 // |referenced_window_ids_|.
72 std::unique_ptr<cc::CompositorFrame> ConvertCompositorFrame( 72 std::unique_ptr<cc::CompositorFrame> ConvertCompositorFrame(
73 const mojom::CompositorFramePtr& input); 73 const mojom::CompositorFramePtr& input);
74 74
75 // Overriden from CustomSurfaceConverter: 75 // Overriden from CustomSurfaceConverter:
76 bool ConvertSurfaceDrawQuad(const mojom::QuadPtr& input, 76 bool ConvertSurfaceDrawQuad(const mojom::QuadPtr& input,
77 const mojom::CompositorFrameMetadataPtr& metadata, 77 const cc::CompositorFrameMetadata& metadata,
78 cc::SharedQuadState* sqs, 78 cc::SharedQuadState* sqs,
79 cc::RenderPass* render_pass) override; 79 cc::RenderPass* render_pass) override;
80 80
81 // SurfaceFactoryClient implementation. 81 // SurfaceFactoryClient implementation.
82 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 82 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
83 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 83 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
84 84
85 ServerWindowSurfaceManager* manager_; // Owns this. 85 ServerWindowSurfaceManager* manager_; // Owns this.
86 86
87 // The set of Windows referenced in the last submitted CompositorFrame. 87 // The set of Windows referenced in the last submitted CompositorFrame.
(...skipping 12 matching lines...) Expand all
100 bool registered_surface_factory_client_; 100 bool registered_surface_factory_client_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface); 102 DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface);
103 }; 103 };
104 104
105 } // namespace ws 105 } // namespace ws
106 106
107 } // namespace mus 107 } // namespace mus
108 108
109 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_ 109 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_SURFACE_H_
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/compositor_frame.mojom ('k') | components/mus/ws/server_window_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698