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

Unified Diff: include/core/SkBitmap.h

Issue 646213003: Add `SkIRect bounds()` convenience method to SkImageInfo and SkBitmap. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: sorted headers Created 6 years, 2 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
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index b36a1fd3fddc59b211c21be88efd367af01bfb53..10fdd5547a5bfd5479415856d89b1ce6d9ef2b3a 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -83,6 +83,9 @@ public:
SkColorType colorType() const { return fInfo.colorType(); }
SkAlphaType alphaType() const { return fInfo.alphaType(); }
+ SkIRect bounds() const { return fInfo.bounds(); }
reed1 2014/10/24 18:42:35 nit: lets move these next to the existing getBound
hal.canary 2014/10/24 19:04:10 Done.
+ SkISize dimensions() const { return fInfo.dimensions(); }
+
/**
* Return the number of bytes per pixel based on the colortype. If the colortype is
* kUnknown_SkColorType, then 0 is returned.
« no previous file with comments | « gm/texturedomaineffect.cpp ('k') | include/core/SkImageInfo.h » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698