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

Unified Diff: ui/aura/mus/window_port_mus.h

Issue 2780043002: Aura-Mus: Allocate a LocalSurfaceId on size change (Closed)
Patch Set: Cleanup Created 3 years, 9 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_port_mus.h
diff --git a/ui/aura/mus/window_port_mus.h b/ui/aura/mus/window_port_mus.h
index 6cbd00d5e43fd646bbdbb644155530ba11a92ca6..b6b3d872586a935060193a5f99b68228c81aef8e 100644
--- a/ui/aura/mus/window_port_mus.h
+++ b/ui/aura/mus/window_port_mus.h
@@ -211,7 +211,9 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
void ReorderFromServer(WindowMus* child,
WindowMus* relative,
ui::mojom::OrderDirection) override;
- void SetBoundsFromServer(const gfx::Rect& bounds) override;
+ void SetBoundsFromServer(
+ const gfx::Rect& bounds,
+ const base::Optional<cc::LocalSurfaceId>& local_surface_id) override;
void SetVisibleFromServer(bool visible) override;
void SetOpacityFromServer(float opacity) override;
void SetPredefinedCursorFromServer(ui::mojom::CursorType cursor) override;
@@ -219,12 +221,15 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
const std::string& property_name,
const std::vector<uint8_t>* property_data) override;
void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override;
+ const cc::LocalSurfaceId& GetOrAllocateLocalSurfaceId(
+ const gfx::Size& surface_size) override;
void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override;
void DestroyFromServer() override;
void AddTransientChildFromServer(WindowMus* child) override;
void RemoveTransientChildFromServer(WindowMus* child) override;
ChangeSource OnTransientChildAdded(WindowMus* child) override;
ChangeSource OnTransientChildRemoved(WindowMus* child) override;
+ const cc::LocalSurfaceId& GetLocalSurfaceId() override;
std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange(
const gfx::Rect& bounds) override;
std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange(
@@ -264,6 +269,10 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
cc::SurfaceInfo surface_info_;
+ cc::LocalSurfaceId local_surface_id_;
+ cc::LocalSurfaceIdAllocator local_surface_id_allocator_;
+ gfx::Size last_surface_size_;
+
ui::mojom::CursorType predefined_cursor_ = ui::mojom::CursorType::CURSOR_NULL;
DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
« 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