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

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

Issue 2780043002: Aura-Mus: Allocate a LocalSurfaceId on size change (Closed)
Patch Set: 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
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 WindowMus* relative, 212 WindowMus* relative,
213 ui::mojom::OrderDirection) override; 213 ui::mojom::OrderDirection) override;
214 void SetBoundsFromServer(const gfx::Rect& bounds) override; 214 void SetBoundsFromServer(const gfx::Rect& bounds) override;
215 void SetVisibleFromServer(bool visible) override; 215 void SetVisibleFromServer(bool visible) override;
216 void SetOpacityFromServer(float opacity) override; 216 void SetOpacityFromServer(float opacity) override;
217 void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) override; 217 void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) override;
218 void SetPropertyFromServer( 218 void SetPropertyFromServer(
219 const std::string& property_name, 219 const std::string& property_name,
220 const std::vector<uint8_t>* property_data) override; 220 const std::vector<uint8_t>* property_data) override;
221 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override; 221 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override;
222 const cc::LocalSurfaceId& GetLocalSurfaceId() override;
223 const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
224 const gfx::Size& surface_size) override;
222 void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override; 225 void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override;
223 void DestroyFromServer() override; 226 void DestroyFromServer() override;
224 void AddTransientChildFromServer(WindowMus* child) override; 227 void AddTransientChildFromServer(WindowMus* child) override;
225 void RemoveTransientChildFromServer(WindowMus* child) override; 228 void RemoveTransientChildFromServer(WindowMus* child) override;
226 ChangeSource OnTransientChildAdded(WindowMus* child) override; 229 ChangeSource OnTransientChildAdded(WindowMus* child) override;
227 ChangeSource OnTransientChildRemoved(WindowMus* child) override; 230 ChangeSource OnTransientChildRemoved(WindowMus* child) override;
228 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( 231 std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange(
229 const gfx::Rect& bounds) override; 232 const gfx::Rect& bounds) override;
230 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( 233 std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange(
231 bool value) override; 234 bool value) override;
(...skipping 25 matching lines...) Expand all
257 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder; 260 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder;
258 261
259 ServerChangeIdType next_server_change_id_ = 0; 262 ServerChangeIdType next_server_change_id_ = 0;
260 ServerChanges server_changes_; 263 ServerChanges server_changes_;
261 264
262 cc::FrameSinkId frame_sink_id_; 265 cc::FrameSinkId frame_sink_id_;
263 base::Closure pending_compositor_frame_sink_request_; 266 base::Closure pending_compositor_frame_sink_request_;
264 267
265 cc::SurfaceInfo surface_info_; 268 cc::SurfaceInfo surface_info_;
266 269
270 cc::LocalSurfaceId local_surface_id_;
271 cc::LocalSurfaceIdAllocator local_surface_id_allocator_;
272 gfx::Size last_surface_size_;
273
267 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 274 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL;
268 275
269 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 276 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
270 }; 277 };
271 278
272 } // namespace aura 279 } // namespace aura
273 280
274 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 281 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698