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

Unified Diff: trunk/src/mojo/services/public/cpp/view_manager/lib/view.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/services/public/cpp/view_manager/lib/view.cc
===================================================================
--- trunk/src/mojo/services/public/cpp/view_manager/lib/view.cc (revision 274327)
+++ trunk/src/mojo/services/public/cpp/view_manager/lib/view.cc (working copy)
@@ -7,7 +7,6 @@
#include "mojo/services/public/cpp/view_manager/lib/view_manager_private.h"
#include "mojo/services/public/cpp/view_manager/lib/view_private.h"
#include "mojo/services/public/cpp/view_manager/view_observer.h"
-#include "ui/gfx/canvas.h"
namespace mojo {
namespace view_manager {
@@ -62,12 +61,6 @@
ViewManagerPrivate(manager_).synchronizer()->SetViewContents(id_, contents);
}
-void View::SetColor(SkColor color) {
- gfx::Canvas canvas(node_->bounds().size(), 1.0f, true);
- canvas.DrawColor(color);
- SetContents(skia::GetTopDevice(*canvas.sk_canvas())->accessBitmap(true));
-}
-
View::View(ViewManager* manager)
: id_(ViewManagerPrivate(manager).synchronizer()->CreateView()),
node_(NULL),

Powered by Google App Engine
This is Rietveld 408576698