Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h |
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h |
index c299b93e3547f2045a95a05ccd3459d9de387347..406cb95444b153cd1ed0dcae1864107c83c8fa1c 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h |
@@ -6,6 +6,7 @@ |
#define ShapeResultTestInfo_h |
#include "platform/fonts/shaping/HarfBuzzShaper.h" |
+#include "platform/fonts/shaping/ShapeResultBloberizer.h" |
#include <hb.h> |
@@ -23,6 +24,37 @@ class PLATFORM_EXPORT ShapeResultTestInfo : public ShapeResult { |
SimpleFontData* fontDataForTesting(unsigned runIndex) const; |
}; |
+class PLATFORM_EXPORT ShapeResultBloberizerTestInfo { |
+ public: |
+ static const SimpleFontData* pendingRunFontData( |
+ const ShapeResultBloberizer& bloberizer) { |
+ return bloberizer.m_pendingFontData; |
+ } |
+ |
+ static const Vector<Glyph, 1024>& pendingRunGlyphs( |
+ const ShapeResultBloberizer& bloberizer) { |
+ return bloberizer.m_pendingGlyphs; |
+ } |
+ |
+ static const Vector<float, 1024>& pendingRunOffsets( |
+ const ShapeResultBloberizer& bloberizer) { |
+ return bloberizer.m_pendingOffsets; |
+ } |
+ |
+ static bool hasPendingRunVerticalOffsets( |
+ const ShapeResultBloberizer& bloberizer) { |
+ return bloberizer.hasPendingVerticalOffsets(); |
+ } |
+ |
+ static size_t pendingBlobRunCount(const ShapeResultBloberizer& bloberizer) { |
+ return bloberizer.m_builderRunCount; |
+ } |
+ |
+ static size_t committedBlobCount(const ShapeResultBloberizer& bloberizer) { |
+ return bloberizer.m_blobs.size(); |
+ } |
+}; |
+ |
} // namespace blink |
#endif // ShapeResultTestInfo_h |