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

Unified Diff: mojo/examples/sample_view_manager_app/sample_view_manager_app.cc

Issue 303163005: Embedding demo in View manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/examples/embedded_app/embedded_app.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/sample_view_manager_app/sample_view_manager_app.cc
diff --git a/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc b/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc
index 1ae5b90727b28a3862a2ea31be2de251a21497a4..15113bb2bf2b7cbcf0cd36ea927805091b194e93 100644
--- a/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc
+++ b/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc
@@ -36,10 +36,7 @@ class SampleApp : public Application {
view_manager_->tree()->AddChild(node1);
node1->AddChild(node11);
- gfx::Canvas canvas(gfx::Size(800, 600), 1.0f, true);
- canvas.DrawColor(SK_ColorRED);
- view11->SetContents(
- skia::GetTopDevice(*canvas.sk_canvas())->accessBitmap(true));
+ view11->SetColor(SK_ColorRED);
}
private:
« no previous file with comments | « mojo/examples/embedded_app/embedded_app.cc ('k') | mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698