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

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: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… 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
« no previous file with comments | « mojo/services/view_manager/screen_impl.cc ('k') | mojo/services/view_manager/server_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b812afccb3597eac78d6412a6132f65d79e13dfc..af7b37dc47ad1a69c3335a723cfc22f88a1f3eaf 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 {
@@ -65,8 +65,8 @@ class MOJO_VIEW_MANAGER_EXPORT ServerView {
// visible.
bool IsDrawn(const ServerView* root) const;
- 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;
@@ -80,7 +80,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);
};
« no previous file with comments | « mojo/services/view_manager/screen_impl.cc ('k') | mojo/services/view_manager/server_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698