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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h

Issue 2714413003: Remove GlyphBuffer (Closed)
Patch Set: format Created 3 years, 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698