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

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

Issue 306403003: Revert 274322 "Implement a demo that shows one app embedding ren..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
Index: trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc
===================================================================
--- trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc (revision 274327)
+++ trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc (working copy)
@@ -36,7 +36,10 @@
view_manager_->tree()->AddChild(node1);
node1->AddChild(node11);
- view11->SetColor(SK_ColorRED);
+ gfx::Canvas canvas(gfx::Size(800, 600), 1.0f, true);
+ canvas.DrawColor(SK_ColorRED);
+ view11->SetContents(
+ skia::GetTopDevice(*canvas.sk_canvas())->accessBitmap(true));
}
private:
« no previous file with comments | « trunk/src/mojo/examples/embedded_app/embedded_app.cc ('k') | trunk/src/mojo/examples/window_manager/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698