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

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

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/view.h ('k') | mojo/services/view_manager/view_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « mojo/services/view_manager/view.h ('k') | mojo/services/view_manager/view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698