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

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

Issue 267293004: Wires up view manager to an actual display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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/root_view_manager.cc ('k') | mojo/services/view_manager/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/view_manager/view.h
diff --git a/mojo/services/view_manager/view.h b/mojo/services/view_manager/view.h
index 83251c0214f0dff4053cea8c9d83b1de34596da3..32b7e034ef9c7ed97a7162e3ed2135821269f505 100644
--- a/mojo/services/view_manager/view.h
+++ b/mojo/services/view_manager/view.h
@@ -10,6 +10,7 @@
#include "base/logging.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"
namespace mojo {
namespace services {
@@ -27,6 +28,9 @@ class MOJO_VIEW_MANAGER_EXPORT View {
Node* node() { return node_; }
+ void SetBitmap(const SkBitmap& contents);
+ const SkBitmap& bitmap() const { return bitmap_; }
+
private:
// Node is responsible for maintaining |node_|.
friend class Node;
@@ -35,6 +39,7 @@ class MOJO_VIEW_MANAGER_EXPORT View {
const ViewId id_;
Node* node_;
+ SkBitmap bitmap_;
DISALLOW_COPY_AND_ASSIGN(View);
};
« no previous file with comments | « mojo/services/view_manager/root_view_manager.cc ('k') | mojo/services/view_manager/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698