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

Unified Diff: ui/gfx/image/image_skia.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 | « ui/gfx/image/image_skia.h ('k') | ui/gfx/image/image_skia_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia.cc
diff --git a/ui/gfx/image/image_skia.cc b/ui/gfx/image/image_skia.cc
index b2ede647ad0b52cb33016a3018f624cc88fb1a47..65f2d48741233911458e18986c57f6ea12c4d56c 100644
--- a/ui/gfx/image/image_skia.cc
+++ b/ui/gfx/image/image_skia.cc
@@ -237,10 +237,6 @@ std::vector<ImageSkiaRep> ImageSkia::GetRepresentations() const {
#endif // OS_MACOSX
-bool ImageSkia::empty() const {
- return isNull() || storage_->size().IsEmpty();
-}
-
int ImageSkia::width() const {
return isNull() ? 0 : storage_->size().width();
}
@@ -253,12 +249,6 @@ int ImageSkia::height() const {
return isNull() ? 0 : storage_->size().height();
}
-bool ImageSkia::extractSubset(ImageSkia* dst, const SkIRect& subset) const {
- gfx::Rect rect(subset.x(), subset.y(), subset.width(), subset.height());
- *dst = ImageSkiaOperations::ExtractSubset(*this, rect);
- return (!dst->isNull());
-}
-
std::vector<ImageSkiaRep> ImageSkia::image_reps() const {
if (isNull())
return std::vector<ImageSkiaRep>();
« no previous file with comments | « ui/gfx/image/image_skia.h ('k') | ui/gfx/image/image_skia_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698