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

Unified Diff: ui/gfx/image/image.cc

Issue 10837215: exhibit 1: explicit null checks Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.cc
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc
index 1427d47229a91c12684663d99b6e403cce46829a..8d28eae9ee754cd855197591e9f465f23755befb 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -516,20 +516,6 @@ std::vector<unsigned char>* Image::CopyImagePNG() const {
return new std::vector<unsigned char>(*ToImagePNG());
}
-SkBitmap Image::AsBitmap() const {
- return IsEmpty() ? SkBitmap() : *ToSkBitmap();
-}
-
-ImageSkia Image::AsImageSkia() const {
- return IsEmpty() ? ImageSkia() : *ToImageSkia();
-}
-
-#if defined(OS_MACOSX)
-NSImage* Image::AsNSImage() const {
- return IsEmpty() ? nil : ToNSImage();
-}
-#endif
-
ImageSkia* Image::CopyImageSkia() const {
return new ImageSkia(*ToImageSkia());
}
« no previous file with comments | « ui/gfx/image/image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698