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

Unified Diff: chrome/browser/chromeos/login/user_image.cc

Issue 10824359: Remove ImageSkia::empty and ImageSkia::extractSubset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/power/tray_power.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_image.cc
diff --git a/chrome/browser/chromeos/login/user_image.cc b/chrome/browser/chromeos/login/user_image.cc
index 67f3d9fdc2c321091dd4e911dbc3a1ae3cd00239..fe77a4de7a1d20d20d6a61d8dc883c194f3cb1a1 100644
--- a/chrome/browser/chromeos/login/user_image.cc
+++ b/chrome/browser/chromeos/login/user_image.cc
@@ -24,7 +24,7 @@ bool IsAnimatedImage(const UserImage::RawImage& data) {
bool EncodeBGRAImageSkia(const gfx::ImageSkia& image,
bool discard_transparency,
std::vector<unsigned char>* output) {
- if (image.empty() || !image.bitmap())
+ if (image.isNull() || !image.bitmap())
return false;
return gfx::PNGCodec::EncodeBGRASkBitmap(*image.bitmap(),
discard_transparency, output);
« no previous file with comments | « ash/system/power/tray_power.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698