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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view.cc

Issue 555953007: Fixes for surfaces bindings exposed by wm_flow app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: mojo/services/public/cpp/view_manager/lib/view.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view.cc b/mojo/services/public/cpp/view_manager/lib/view.cc
index 797e8d519e32795910a15f6c4232aa95adbdbe1f..0f3cce5ad82157d4f547e6835e69542062eaa95e 100644
--- a/mojo/services/public/cpp/view_manager/lib/view.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view.cc
@@ -305,9 +305,9 @@ void View::SetContents(const SkBitmap& contents) {
}
void View::SetColor(SkColor color) {
- gfx::Canvas canvas(bounds_.size(), 1.0f, true);
- canvas.DrawColor(color);
- SetContents(skia::GetTopDevice(*canvas.sk_canvas())->accessBitmap(true));
+ if (manager_) {
Ben Goodger (Google) 2014/09/13 01:22:21 nit: no braces
+ static_cast<ViewManagerClientImpl*>(manager_)->SetViewColor(id_, color);
+ }
}
void View::SetFocus() {

Powered by Google App Engine
This is Rietveld 408576698