Index: include/core/SkBitmap.h |
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h |
index 887169ccb522c2820c8c2f0ff3f78e454d0d00cf..4e539a270e2af8c08c1655571718c9ee0dd8cb04 100644 |
--- a/include/core/SkBitmap.h |
+++ b/include/core/SkBitmap.h |
@@ -220,6 +220,10 @@ public: |
static Sk64 ComputeSize64(Config, int width, int height); |
static size_t ComputeSize(Config, int width, int height); |
+ /** Returns true if config's Value is in the Config enum. |
+ */ |
+ static bool IsValidConfig(Config config); |
reed1
2013/09/03 20:25:21
can we put this in some helper file for validation
sugoi1
2013/09/04 18:01:10
Done.
|
+ |
/** |
* This will brute-force return true if all of the pixels in the bitmap |
* are opaque. If it fails to read the pixels, or encounters an error, |