Home
last modified time | relevance | path

Searched refs:Cluster (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/flutter/skia/modules/skparagraph/src/
DTextWrapper.h18 ClusterPos(Cluster* cluster, size_t pos) : fCluster(cluster), fPos(pos) {} in ClusterPos()
19 inline Cluster* cluster() const { return fCluster; } in cluster()
32 Cluster* fCluster;
38 TextStretch(Cluster* s, Cluster* e, bool forceStrut) in TextStretch()
49 inline Cluster* startCluster() const { return fStart.cluster(); } in startCluster()
50 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster()
51 inline Cluster* breakCluster() const { return fBreak.cluster(); } in breakCluster()
69 void extend(Cluster* cluster) { in extend()
78 void extend(Cluster* cluster, size_t pos) { in extend()
85 void startFrom(Cluster* cluster, size_t pos) { in startFrom()
[all …]
DRun.cpp82 auto less = [](const Cluster& c1, const Cluster& c2) { in findLimitingClusters()
90 Cluster(text), in findLimitingClusters()
99 Cluster(TextRange(text.start, text.start + 1)), in findLimitingClusters()
103 Cluster(TextRange(text.end - 1, text.end)), in findLimitingClusters()
159 SkScalar Run::addSpacesAtTheEnd(SkScalar space, Cluster* cluster) { in addSpacesAtTheEnd()
174 SkScalar Run::addSpacesEvenly(SkScalar space, Cluster* cluster) { in addSpacesEvenly()
194 void Run::shift(const Cluster* cluster, SkScalar offset) { in shift()
209 void Cluster::setIsWhiteSpaces() { in setIsWhiteSpaces()
224 SkScalar Cluster::sizeToChar(TextIndex ch) const { in sizeToChar()
234 SkScalar Cluster::sizeFromChar(TextIndex ch) const { in sizeFromChar()
[all …]
DRun.h18 class Cluster; variable
113 SkScalar addSpacesAtTheEnd(SkScalar space, Cluster* cluster);
114 SkScalar addSpacesEvenly(SkScalar space, Cluster* cluster);
115 void shift(const Cluster* cluster, SkScalar offset);
188 class Cluster {
200 Cluster() in Cluster() function
213 Cluster(ParagraphImpl* master,
221 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() function
223 ~Cluster() = default;
DParagraphImpl.h83 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); } in clusters()
131 SkSpan<Cluster> clusters(ClusterRange clusterRange);
132 Cluster& cluster(ClusterIndex clusterIndex);
178 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r…
DTextWrapper.cpp10 void TextWrapper::lookAhead(SkScalar maxWidth, Cluster* endOfClusters) { in lookAhead()
119 std::tuple<Cluster*, size_t, SkScalar> TextWrapper::trimStartSpaces(Cluster* endOfClusters) { in trimStartSpaces()
165 Cluster* startLine; in breakTextIntoLines()
DTextLine.h68 …using ClustersVisitor = std::function<bool(const Cluster* cluster, ClusterIndex index, bool leftTo…
105 bool contains(const Cluster* cluster) const { in contains()
DParagraphImpl.cpp257 Cluster* current = fClusters.begin(); in markLineBreaks()
265 ? Cluster::BreakType::HardLineBreak in markLineBreaks()
266 : Cluster::BreakType::SoftLineBreak); in markLineBreaks()
825 SkSpan<Cluster> ParagraphImpl::clusters(ClusterRange clusterRange) { in clusters()
827 return SkSpan<Cluster>(&fClusters[clusterRange.start], clusterRange.width()); in clusters()
830 Cluster& ParagraphImpl::cluster(ClusterIndex clusterIndex) { in cluster()
/third_party/skia/modules/skparagraph/src/
DTextWrapper.h18 ClusterPos(Cluster* cluster, size_t pos) : fCluster(cluster), fPos(pos) {} in ClusterPos()
19 inline Cluster* cluster() const { return fCluster; } in cluster()
32 Cluster* fCluster;
38 TextStretch(Cluster* s, Cluster* e, bool forceStrut) in TextStretch()
53 inline Cluster* startCluster() const { return fStart.cluster(); } in startCluster()
54 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster()
55 inline Cluster* breakCluster() const { return fBreak.cluster(); } in breakCluster()
77 void extend(Cluster* cluster) { in extend()
91 void extend(Cluster* cluster, size_t pos) { in extend()
98 void startFrom(Cluster* cluster, size_t pos) { in startFrom()
[all …]
DRun.cpp147 SkScalar Run::addSpacesAtTheEnd(SkScalar space, Cluster* cluster) { in addSpacesAtTheEnd()
162 SkScalar Run::addSpacesEvenly(SkScalar space, Cluster* cluster) { in addSpacesEvenly()
183 void Run::shift(const Cluster* cluster, SkScalar offset) { in shift()
254 SkScalar Cluster::sizeToChar(TextIndex ch) const { in sizeToChar()
264 SkScalar Cluster::sizeFromChar(TextIndex ch) const { in sizeFromChar()
274 size_t Cluster::roundPos(SkScalar s) const { in roundPos()
279 SkScalar Cluster::trimmedWidth(size_t pos) const { in trimmedWidth()
299 Run* Cluster::runOrNull() const { in runOrNull()
306 Run& Cluster::run() const { in run()
311 SkFont Cluster::font() const { in font()
[all …]
DRun.h28 class Cluster; variable
123 SkScalar addSpacesAtTheEnd(SkScalar space, Cluster* cluster);
124 SkScalar addSpacesEvenly(SkScalar space, Cluster* cluster);
125 void shift(const Cluster* cluster, SkScalar offset);
141 using ClusterVisitor = std::function<void(Cluster* cluster)>;
254 class Cluster {
263 Cluster() in Cluster() function
275 Cluster(ParagraphImpl* owner,
283 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() function
285 Cluster(const Cluster&) = default;
[all …]
DParagraphImpl.h144 SkSpan<Cluster> clusters() { return SkSpan<Cluster>(fClusters.begin(), fClusters.size()); }
166 SkSpan<Cluster> clusters(ClusterRange clusterRange);
167 Cluster& cluster(ClusterIndex clusterIndex);
253 …SkTArray<Cluster, true> fClusters; // kClusterized (cached: text, word spacing, letter spacing, r…
DTextWrapper.cpp40 void TextWrapper::lookAhead(SkScalar maxWidth, Cluster* endOfClusters) { in lookAhead()
49 Cluster* nextNonBreakingSpace = nullptr; in lookAhead()
228 std::tuple<Cluster*, size_t, SkScalar> TextWrapper::trimStartSpaces(Cluster* endOfClusters) { in trimStartSpaces()
302 Cluster* startLine; in breakTextIntoLines()
DTextLine.h86 using ClustersVisitor = std::function<bool(const Cluster* cluster, bool ghost)>;
134 void shiftCluster(const Cluster* cluster, SkScalar shift, SkScalar prevShift);
DTextLine.cpp430 [&whitespacePatches, &textLen, &whitespacePatch](const Cluster* cluster, bool ghost) { in justify()
454 this->iterateThroughClustersInGlyphsOrder(false, true, [&](const Cluster* cluster, bool ghost) { in justify()
484 void TextLine::shiftCluster(const Cluster* cluster, SkScalar shift, SkScalar prevShift) { in shiftCluster()
511 auto attachEllipsis = [&](const Cluster* cluster){ in createEllipsis()
531 true, false, [&](const Cluster* cluster, bool ghost) { in createEllipsis()
619 Cluster* start = nullptr; in measureTextInsideOneRun()
620 Cluster* end = nullptr; in measureTextInsideOneRun()
739 directional_for_each(trailed, reversed != run.leftToRight(), [&](Cluster& cluster) { in iterateThroughClustersInGlyphsOrder()
/third_party/flutter/skia/src/pdf/
DSkClusterator.cpp42 SkClusterator::Cluster SkClusterator::next() { in next()
44 return Cluster{nullptr, 0, 0, 0}; in next()
47 return Cluster{nullptr, 0, fCurrentGlyphIndex++, 1}; in next()
63 return Cluster{fUtf8Text + cluster, clusterLen, clusterGlyphIndex, clusterGlyphCount}; in next()
DSkClusterator.h22 struct Cluster { struct
28 bool operator==(const SkClusterator::Cluster& o) { argument
35 Cluster next();
/third_party/skia/src/pdf/
DSkClusterator.cpp42 SkClusterator::Cluster SkClusterator::next() { in next()
44 return Cluster{nullptr, 0, 0, 0}; in next()
47 return Cluster{nullptr, 0, fCurrentGlyphIndex++, 1}; in next()
63 return Cluster{fUtf8Text + cluster, clusterLen, clusterGlyphIndex, clusterGlyphCount}; in next()
DSkClusterator.h22 struct Cluster { struct
28 bool operator==(const SkClusterator::Cluster& o) { argument
35 Cluster next();
/third_party/grpc/src/proto/grpc/testing/xds/v3/
Dcluster.proto45 // Cluster specific configuration which depends on the cluster being instantiated.
50 // [#protodoc-title: Cluster configuration]
54 message Cluster { message
119 …// <envoy_api_field_config.cluster.v3.Cluster.load_balancing_policy>` field to determine the LB po…
128 // Configuration for the source of EDS updates for this Cluster.
140 // <envoy_api_field_config.cluster.v3.Cluster.alt_stat_name>` is not provided.
153 // Configuration to use for EDS updates for the Cluster.
/third_party/grpc/test/cpp/end2end/
Dxds_end2end_test.cc96 using ::envoy::api::v2::Cluster;
430 default_cluster_.set_type(envoy::api::v2::Cluster::EDS); in AdsServiceImpl()
434 default_cluster_.set_lb_policy(envoy::api::v2::Cluster::ROUND_ROBIN); in AdsServiceImpl()
636 Cluster default_cluster() const { return default_cluster_; } in default_cluster()
700 void SetCdsResource(const Cluster& cluster) { in SetCdsResource()
957 Cluster default_cluster_;
1909 Cluster new_cluster = balancers_[0]->ads_service()->default_cluster(); in TEST_P()
1979 Cluster new_cluster = balancers_[0]->ads_service()->default_cluster(); in TEST_P()
2041 Cluster new_cluster = balancers_[0]->ads_service()->default_cluster(); in TEST_P()
2774 Cluster new_cluster1 = balancers_[0]->ads_service()->default_cluster(); in TEST_P()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Dgraph_kernel_optimization.h35 PassManagerPtr Cluster() const;
Dgraph_kernel_cluster.cc134 struct Cluster { struct in mindspore::opt::Graph
142Cluster(size_t node_id, const AnfNodePtr &node, const std::unordered_map<AnfNodePtr, size_t> &node… in Cluster() argument
160 ~Cluster() = default;
162 void Merge(Cluster *other_cluster) { in Merge() argument
265 std::vector<Cluster> clusters_;
Dgraph_kernel_optimization.cc81 PassManagerPtr GraphKernelOptimizer::Cluster() const { in Cluster() function in mindspore::opt::GraphKernelOptimizer
207 optimizer->AddPassManager(Cluster()); in Run()
/third_party/grpc/src/proto/grpc/testing/xds/
Dcds_for_test.proto84 message Cluster { message
125 // Configuration for the source of EDS updates for this Cluster.
180 // Configuration to use for EDS updates for the Cluster.
/third_party/flutter/skia/site/dev/testing/
Dindex.md13 Cluster Telemetry is a powerful framework that helps us capture and benchmark

12345