Go to the source code of this file.
◆ find_simple()
Definition at line 38 of file SkCharToGlyphCache.cpp.
38 {
39 int index;
40 for (index = 0;; ++index) {
41 if (value <=
base[index]) {
42 if (value <
base[index]) {
43 index = ~index;
44 }
45 break;
46 }
47 }
48 return index;
49}
◆ find_with_slope()
Definition at line 51 of file SkCharToGlyphCache.cpp.
51 {
53
54 int index;
55 if (value <=
base[1]) {
56 index = 1;
57 if (value <
base[index]) {
58 index = ~index;
59 }
62 if (value >
base[index]) {
63 index = ~(index + 1);
64 }
65 } else {
66
67
70
71 if (value >=
base[index]) {
72 for (;; ++index) {
73 if (value <=
base[index]) {
74 if (value <
base[index]) {
75 index = ~index;
76 }
77 break;
78 }
79 }
80 } else {
81 for (--index;; --index) {
83 if (value >=
base[index]) {
84 if (value >
base[index]) {
85 index = ~(index + 1);
86 }
87 break;
88 }
89 }
90 }
91 }
92 return index;
93}
constexpr int kMinCountForSlope
Type::kYUV Type::kRGBA() int(0.7 *637)
◆ kMinCountForSlope
constexpr int kMinCountForSlope = 4 |
|
constexpr |
◆ kSmallCountLimit
constexpr int kSmallCountLimit = 16 |
|
constexpr |