1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "mojo/services/view_manager/view.h"
7 #include "mojo/services/view_manager/node.h"
10 namespace view_manager {
13 View::View(const ViewId& id) : id_(id), node_(NULL) {}
18 void View::SetBitmap(const SkBitmap& bitmap) {
21 node_->window()->SchedulePaintInRect(
22 gfx::Rect(node_->window()->bounds().size()));
26 } // namespace service
27 } // namespace view_manager