Use SkCanvas::drawImageRect() instead of SkImage::draw()
[chromium-blink-merge.git] / athena / system / background_controller.h
blob0ddda7ce9905db7e162aa63faaf642c283f9626d
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 #ifndef ATHENA_SYSTEM_BACKGROUND_CONTROLLER_H_
6 #define ATHENA_SYSTEM_BACKGROUND_CONTROLLER_H_
8 #include "base/macros.h"
10 namespace aura {
11 class Window;
14 namespace gfx {
15 class ImageSkia;
18 namespace athena {
19 class BackgroundView;
21 // Controls background image switching.
22 class BackgroundController {
23 public:
24 explicit BackgroundController(aura::Window* background_container);
25 ~BackgroundController();
27 void SetImage(const gfx::ImageSkia& image);
29 private:
30 BackgroundView* background_view_;
32 DISALLOW_COPY_AND_ASSIGN(BackgroundController);
35 } // namespace athena
37 #endif // ATHENA_SYSTEM_BACKGROUND_CONTROLLER_H_