Chromium Code Reviews| 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() { |