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

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

Issue 2520833002: Make HarfBuzzShaperTest.ResolveCandidateRunsUnicodeVariants more robust (Closed)
Patch Set: Mac still needs to be excepted Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ShapeResultTestInfo_h 5 #ifndef ShapeResultTestInfo_h
6 #define ShapeResultTestInfo_h 6 #define ShapeResultTestInfo_h
7 7
8 #include "platform/fonts/shaping/HarfBuzzShaper.h" 8 #include "platform/fonts/shaping/HarfBuzzShaper.h"
9 9
10 #include <hb.h> 10 #include <hb.h>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class PLATFORM_EXPORT ShapeResultTestInfo : public ShapeResult { 14 class PLATFORM_EXPORT ShapeResultTestInfo : public ShapeResult {
15 public: 15 public:
16 unsigned numberOfRunsForTesting() const; 16 unsigned numberOfRunsForTesting() const;
17 bool runInfoForTesting(unsigned runIndex, 17 bool runInfoForTesting(unsigned runIndex,
18 unsigned& startIndex, 18 unsigned& startIndex,
19 unsigned& numGlyphs, 19 unsigned& numGlyphs,
20 hb_script_t&) const; 20 hb_script_t&) const;
21 uint16_t glyphForTesting(unsigned runIndex, size_t glyphIndex) const; 21 uint16_t glyphForTesting(unsigned runIndex, size_t glyphIndex) const;
22 float advanceForTesting(unsigned runIndex, size_t glyphIndex) const; 22 float advanceForTesting(unsigned runIndex, size_t glyphIndex) const;
23 SimpleFontData* fontDataForTesting(unsigned runIndex) const;
23 }; 24 };
24 25
25 } // namespace blink 26 } // namespace blink
26 27
27 #endif // ShapeResultTestInfo_h 28 #endif // ShapeResultTestInfo_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698