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

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

Issue 2790673003: Aura-Mus: Enable Surface Synchronization behind flag (Closed)
Patch Set: Addressed Sadrul's comments 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 | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.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 UI_AURA_MUS_WINDOW_PORT_MUS_H_ 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_
6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void SetVisibleFromServer(bool visible) override; 221 void SetVisibleFromServer(bool visible) override;
222 void SetOpacityFromServer(float opacity) override; 222 void SetOpacityFromServer(float opacity) override;
223 void SetPredefinedCursorFromServer(ui::mojom::CursorType cursor) override; 223 void SetPredefinedCursorFromServer(ui::mojom::CursorType cursor) override;
224 void SetPropertyFromServer( 224 void SetPropertyFromServer(
225 const std::string& property_name, 225 const std::string& property_name,
226 const std::vector<uint8_t>* property_data) override; 226 const std::vector<uint8_t>* property_data) override;
227 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override; 227 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override;
228 const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId( 228 const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
229 const gfx::Size& surface_size) override; 229 const gfx::Size& surface_size) override;
230 void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) override; 230 void SetPrimarySurfaceInfo(const cc::SurfaceInfo& surface_info) override;
231 void SetFallbackSurfaceInfo(const cc::SurfaceInfo& surface_info) override;
231 void DestroyFromServer() override; 232 void DestroyFromServer() override;
232 void AddTransientChildFromServer(WindowMus* child) override; 233 void AddTransientChildFromServer(WindowMus* child) override;
233 void RemoveTransientChildFromServer(WindowMus* child) override; 234 void RemoveTransientChildFromServer(WindowMus* child) override;
234 ChangeSource OnTransientChildAdded(WindowMus* child) override; 235 ChangeSource OnTransientChildAdded(WindowMus* child) override;
235 ChangeSource OnTransientChildRemoved(WindowMus* child) override; 236 ChangeSource OnTransientChildRemoved(WindowMus* child) override;
236 const cc::LocalSurfaceId& GetLocalSurfaceId() override; 237 const cc::LocalSurfaceId& GetLocalSurfaceId() override;
237 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( 238 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange(
238 const gfx::Rect& bounds) override; 239 const gfx::Rect& bounds) override;
239 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( 240 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange(
240 bool value) override; 241 bool value) override;
(...skipping 10 matching lines...) Expand all
251 void OnWillMoveChild(size_t current_index, size_t dest_index) override; 252 void OnWillMoveChild(size_t current_index, size_t dest_index) override;
252 void OnVisibilityChanged(bool visible) override; 253 void OnVisibilityChanged(bool visible) override;
253 void OnDidChangeBounds(const gfx::Rect& old_bounds, 254 void OnDidChangeBounds(const gfx::Rect& old_bounds,
254 const gfx::Rect& new_bounds) override; 255 const gfx::Rect& new_bounds) override;
255 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( 256 std::unique_ptr<ui::PropertyData> OnWillChangeProperty(
256 const void* key) override; 257 const void* key) override;
257 void OnPropertyChanged(const void* key, 258 void OnPropertyChanged(const void* key,
258 int64_t old_value, 259 int64_t old_value,
259 std::unique_ptr<ui::PropertyData> data) override; 260 std::unique_ptr<ui::PropertyData> data) override;
260 261
261 void UpdatePrimarySurfaceInfoInternal(); 262 void UpdatePrimarySurfaceInfo();
263 void UpdateClientSurfaceEmbedder();
262 264
263 WindowTreeClient* window_tree_client_; 265 WindowTreeClient* window_tree_client_;
264 266
265 Window* window_ = nullptr; 267 Window* window_ = nullptr;
266 268
267 // Used when this window is embedding a client. 269 // Used when this window is embedding a client.
268 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder_; 270 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder_;
269 271
270 ServerChangeIdType next_server_change_id_ = 0; 272 ServerChangeIdType next_server_change_id_ = 0;
271 ServerChanges server_changes_; 273 ServerChanges server_changes_;
272 274
273 cc::FrameSinkId frame_sink_id_; 275 cc::FrameSinkId frame_sink_id_;
274 base::Closure pending_compositor_frame_sink_request_; 276 base::Closure pending_compositor_frame_sink_request_;
275 277
276 cc::SurfaceInfo primary_surface_info_; 278 cc::SurfaceInfo primary_surface_info_;
277 279
278 cc::LocalSurfaceId local_surface_id_; 280 cc::LocalSurfaceId local_surface_id_;
279 cc::LocalSurfaceIdAllocator local_surface_id_allocator_; 281 cc::LocalSurfaceIdAllocator local_surface_id_allocator_;
280 gfx::Size last_surface_size_; 282 gfx::Size last_surface_size_;
281 283
282 ui::mojom::CursorType predefined_cursor_ = ui::mojom::CursorType::CURSOR_NULL; 284 ui::mojom::CursorType predefined_cursor_ = ui::mojom::CursorType::CURSOR_NULL;
283 285
284 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 286 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
285 }; 287 };
286 288
287 } // namespace aura 289 } // namespace aura
288 290
289 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 291 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698