add (mac) test for ttcindex in SkFontStream



git-svn-id: http://skia.googlecode.com/svn/trunk@8073 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkFontStream.h b/src/core/SkFontStream.h
index 9cd51fc..0f7a052 100644
--- a/src/core/SkFontStream.h
+++ b/src/core/SkFontStream.h
@@ -15,8 +15,9 @@
 class SkFontStream {
 public:
     /**
-     *  Return the number of shared 'fonts' inside a TTC sfnt, or return 0
-     *  if the stream is a normal sfnt (not a TTC).
+     *  Return the number of shared directories inside a TTC sfnt, or return 1
+     *  if the stream is a normal sfnt (ttf). If there is an error or
+     *  no directory is found, return 0.
      *
      *  Note: the stream is rewound initially, but is returned at an arbitrary
      *  read offset.
@@ -39,6 +40,10 @@
      */
     static size_t GetTableData(SkStream*, int ttcIndex, SkFontTableTag tag,
                                size_t offset, size_t length, void* data);
+
+    static size_t GetTableSize(SkStream* stream, int ttcIndex, SkFontTableTag tag) {
+        return GetTableData(stream, ttcIndex, tag, 0, ~0U, NULL);
+    }
 };
 
 #endif