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

Unified Diff: cc/surfaces/surface_info.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 | « cc/surfaces/surface_factory_unittest.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_info.h
diff --git a/cc/surfaces/surface_info.h b/cc/surfaces/surface_info.h
index 877d9b7c54be7ec4a59fb47cf9378db8ce38f6ee..cbe7a0a09dc6fb654dab153dea325876c64e6ece 100644
--- a/cc/surfaces/surface_info.h
+++ b/cc/surfaces/surface_info.h
@@ -9,6 +9,9 @@
#include "ui/gfx/geometry/size.h"
namespace cc {
+namespace mojom {
+class SurfaceInfoDataView;
+}
// This class contains information about the surface that is being embedded.
class SurfaceInfo {
@@ -34,6 +37,8 @@ class SurfaceInfo {
const gfx::Size& size_in_pixels() const { return size_in_pixels_; }
private:
+ friend struct mojo::StructTraits<mojom::SurfaceInfoDataView, SurfaceInfo>;
+
SurfaceId id_;
float device_scale_factor_ = 1.f;
gfx::Size size_in_pixels_;
« no previous file with comments | « cc/surfaces/surface_factory_unittest.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698