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

Unified Diff: services/ui/public/cpp/window.h

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 12 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 | « services/ui/public/cpp/surface_id_handler.h ('k') | services/ui/public/cpp/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window.h
diff --git a/services/ui/public/cpp/window.h b/services/ui/public/cpp/window.h
index 015540cb9c0248383dc1f1a450b65986ea02efa1..a5e809256926b3945eb31670d15f8fc4a5613367 100644
--- a/services/ui/public/cpp/window.h
+++ b/services/ui/public/cpp/window.h
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/observer_list.h"
+#include "cc/surfaces/surface_info.h"
#include "mojo/public/cpp/bindings/array.h"
#include "services/service_manager/public/interfaces/interface_provider.mojom.h"
#include "services/ui/common/types.h"
@@ -319,7 +320,7 @@ class Window {
void LocalSetPredefinedCursor(mojom::Cursor cursor_id);
void LocalSetSharedProperty(const std::string& name,
const std::vector<uint8_t>* data);
- void LocalSetSurfaceId(std::unique_ptr<SurfaceInfo> surface_info);
+ void LocalSetSurfaceInfo(const cc::SurfaceInfo& surface_info);
// Notifies this winodw that its stacking position has changed.
void NotifyWindowStackingChanged();
@@ -405,7 +406,7 @@ class Window {
std::map<const void*, Value> prop_map_;
- std::unique_ptr<SurfaceInfo> surface_info_;
+ cc::SurfaceInfo surface_info_;
DISALLOW_COPY_AND_ASSIGN(Window);
};
« no previous file with comments | « services/ui/public/cpp/surface_id_handler.h ('k') | services/ui/public/cpp/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698