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

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

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 | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index 079014803a850d21a83672d73d4ddc300ea79843..7254bd047003daef265ed6845da3d81f9efec931 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -115,18 +115,6 @@ class UI_EXPORT Image {
NSImage* ToNSImage() const;
#endif
- // Same as ToSkBitmap(), but returns a null SkBitmap if this image is empty.
- SkBitmap AsBitmap() const;
-
- // Same as ToImageSkia(), but returns an empty ImageSkia if this
- // image is empty.
- ImageSkia AsImageSkia() const;
-
-#if defined(OS_MACOSX)
- // Same as ToSkBitmap(), but returns nil if this image is empty.
- NSImage* AsNSImage() const;
-#endif
-
// Performs a conversion, like above, but returns a copy of the result rather
// than a weak pointer. The caller is responsible for deleting the result.
// Note that the result is only a copy in terms of memory management; the
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698