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

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

Issue 2718043003: Refactor InspectorCSSAgent to avoid an intermediate GlyphBuffer (Closed)
Patch Set: cleanup Created 3 years, 10 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/ShapeResultBuffer.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
index 573e548f692bec3f06d0cc4f076fa6d35a648e63..fb94c450e0869fded8651dae3e2118f746462672 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
@@ -10,6 +10,7 @@
#include "wtf/Allocator.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
+#include <tuple>
namespace blink {
@@ -57,6 +58,13 @@ class PLATFORM_EXPORT ShapeResultBuffer {
unsigned from,
unsigned to);
+ struct RunFontData {
+ SimpleFontData* m_fontData;
+ size_t m_glyphCount;
+ };
+
+ Vector<RunFontData> runFontData() const;
+
private:
static CharacterRange getCharacterRangeInternal(
const Vector<RefPtr<const ShapeResult>, 64>&,

Powered by Google App Engine
This is Rietveld 408576698