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

Unified Diff: mojo/services/view_manager/server_view.h

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: mojo/services/view_manager/server_view.h
diff --git a/mojo/services/view_manager/server_view.h b/mojo/services/view_manager/server_view.h
index 1895ee9a595c58571860eab73f70fb89ce0d6a04..61fe71309b86448e24f4182b98d4ba2b205e24cd 100644
--- a/mojo/services/view_manager/server_view.h
+++ b/mojo/services/view_manager/server_view.h
@@ -8,10 +8,10 @@
#include <vector>
#include "base/logging.h"
+#include "cc/surfaces/surface_id.h"
#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
#include "mojo/services/view_manager/ids.h"
#include "mojo/services/view_manager/view_manager_export.h"
-#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/rect.h"
namespace mojo {
@@ -60,8 +60,8 @@ class MOJO_VIEW_MANAGER_EXPORT ServerView {
bool visible() const { return visible_; }
void SetVisible(bool value);
- void SetBitmap(const SkBitmap& contents);
- const SkBitmap& bitmap() const { return bitmap_; }
+ void SetSurfaceId(cc::SurfaceId surface_id);
+ const cc::SurfaceId surface_id() const { return surface_id_; }
private:
typedef std::vector<ServerView*> Views;
@@ -75,7 +75,7 @@ class MOJO_VIEW_MANAGER_EXPORT ServerView {
Views children_;
bool visible_;
gfx::Rect bounds_;
- SkBitmap bitmap_;
+ cc::SurfaceId surface_id_;
DISALLOW_COPY_AND_ASSIGN(ServerView);
};

Powered by Google App Engine
This is Rietveld 408576698