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

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

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
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "platform/fonts/shaping/ShapeResultTestInfo.h" 5 #include "platform/fonts/shaping/ShapeResultTestInfo.h"
6 6
7 #include "platform/fonts/Font.h" 7 #include "platform/fonts/Font.h"
8 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h" 8 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 18 matching lines...) Expand all
29 uint16_t ShapeResultTestInfo::glyphForTesting(unsigned runIndex, 29 uint16_t ShapeResultTestInfo::glyphForTesting(unsigned runIndex,
30 size_t glyphIndex) const { 30 size_t glyphIndex) const {
31 return m_runs[runIndex]->m_glyphData[glyphIndex].glyph; 31 return m_runs[runIndex]->m_glyphData[glyphIndex].glyph;
32 } 32 }
33 33
34 float ShapeResultTestInfo::advanceForTesting(unsigned runIndex, 34 float ShapeResultTestInfo::advanceForTesting(unsigned runIndex,
35 size_t glyphIndex) const { 35 size_t glyphIndex) const {
36 return m_runs[runIndex]->m_glyphData[glyphIndex].advance; 36 return m_runs[runIndex]->m_glyphData[glyphIndex].advance;
37 } 37 }
38 38
39 SimpleFontData* ShapeResultTestInfo::fontDataForTesting(
40 unsigned runIndex) const {
41 return m_runs[runIndex]->m_fontData.get();
42 }
43
39 } // namespace blink 44 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698