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); |
}; |