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

Side by Side Diff: content/public/browser/favicon_status.cc

Issue 10832128: Convert FaviconStatus::bitmap from SkBitmap to gfx::Image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests? Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/browser/favicon_status.h" 5 #include "content/public/browser/favicon_status.h"
6 6
7 #include "content/public/browser/content_browser_client.h" 7 #include "content/public/browser/content_browser_client.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 FaviconStatus::FaviconStatus() : valid(false) { 12 FaviconStatus::FaviconStatus() : valid(false) {
13 bitmap = *GetContentClient()->browser()->GetDefaultFavicon()->bitmap(); 13 image = gfx::Image(*GetContentClient()->browser()->GetDefaultFavicon());
14 }
15
16 SkBitmap FaviconStatus::AsBitmap() const {
17 return image.IsEmpty() ? SkBitmap() : *image.ToSkBitmap();
14 } 18 }
15 19
16 } // namespace content 20 } // namespace content
OLDNEW
« content/public/browser/favicon_status.h ('K') | « content/public/browser/favicon_status.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698