Index: mojo/services/view_manager/view.cc |
diff --git a/mojo/services/view_manager/view.cc b/mojo/services/view_manager/view.cc |
index 0e9fc13abb3d54f014a17f7e9891bdd1efdc350a..18c98d102e60f892d6300e0da374bccaca605ce5 100644 |
--- a/mojo/services/view_manager/view.cc |
+++ b/mojo/services/view_manager/view.cc |
@@ -15,6 +15,14 @@ View::View(const ViewId& id) : id_(id), node_(NULL) {} |
View::~View() { |
} |
+void View::SetBitmap(const SkBitmap& bitmap) { |
+ bitmap_ = bitmap; |
+ if (node_) { |
+ node_->window()->SchedulePaintInRect( |
+ gfx::Rect(node_->window()->bounds().size())); |
+ } |
+} |
+ |
} // namespace view_manager |
} // namespace services |
} // namespace mojo |