diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkGraphics.h | 7 | ||||
-rw-r--r-- | include/core/SkTypes.h | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h index dd5808a225..25c926f4fc 100644 --- a/include/core/SkGraphics.h +++ b/include/core/SkGraphics.h @@ -33,7 +33,12 @@ public: Returns true if some amount was purged from the font cache. */ static bool SetFontCacheUsed(size_t usageInBytes); - + + /** Return the version numbers for the library. If the parameter is not + null, it is set to the version number. + */ + static void GetVersion(int32_t* major, int32_t* minor, int32_t* patch); + private: /** This is automatically called by SkGraphics::Init(), and must be implemented by the host OS. This allows the host OS to register a callback diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index fa21adcb41..1f8ecaaf63 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -30,6 +30,12 @@ /** \file SkTypes.h */ +/** See SkGraphics::GetVersion() to retrieve these at runtime + */ +#define SKIA_VERSION_MAJOR 1 +#define SKIA_VERSION_MINOR 0 +#define SKIA_VERSION_PATCH 0 + /* memory wrappers to be implemented by the porting layer (platform) */ |