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

Side by Side Diff: chrome/browser/chromeos/login/user_image.cc

Issue 10454044: Added support for animated/nonanimated user image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #include "chrome/browser/chromeos/login/user_image.h"
6
7 namespace chromeos {
8
9 UserImage::UserImage(const SkBitmap& image)
10 : image_(image),
11 has_raw_image_(false) {
12 }
13
14 UserImage::UserImage(const SkBitmap& image,
15 const RawImage& raw_image)
16 : image_(image),
17 has_raw_image_(true),
18 raw_image_(raw_image) {
19 }
20
21 UserImage::~UserImage() {
22 }
23
24 const SkBitmap& UserImage::image() const {
25 return image_;
26 }
27
28 bool UserImage::has_raw_image() const {
29 return has_raw_image_;
30 }
31
32 const UserImage::RawImage& UserImage::raw_image() const {
33 return raw_image_;
34 }
35
36 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698