| Index: third_party/WebKit/Source/platform/fonts/skia/SkiaTextMetrics.h
|
| diff --git a/third_party/WebKit/Source/platform/fonts/skia/SkiaTextMetrics.h b/third_party/WebKit/Source/platform/fonts/skia/SkiaTextMetrics.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ca85fa424f479c3f0133fdc73179fc031d36753c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/fonts/skia/SkiaTextMetrics.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef SkiaTextMetrics_h
|
| +#define SkiaTextMetrics_h
|
| +
|
| +#include "platform/fonts/Glyph.h"
|
| +
|
| +#include <SkPaint.h>
|
| +#include <hb.h>
|
| +
|
| +namespace blink {
|
| +
|
| +class SkiaTextMetrics final {
|
| +public:
|
| + SkiaTextMetrics(const SkPaint*);
|
| +
|
| + void getGlyphWidthAndExtentsForHarfBuzz(hb_codepoint_t, hb_position_t* width, hb_glyph_extents_t*);
|
| +
|
| + void getSkiaBoundsForGlyph(Glyph, SkRect* bounds);
|
| + float getSkiaWidthForGlyph(Glyph);
|
| +
|
| +private:
|
| + const SkPaint* m_paint;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|