Rename flush -> issueDrawMaybeInlineUpload
Change-Id: Ida1cc45fa7b7f72fe60c750636c5693564531ff0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268156 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Herb Derby <herb@google.com> Auto-Submit: Herb Derby <herb@google.com>
This commit is contained in:
parent
c848965e65
commit
4513cdde49
@ -431,7 +431,7 @@ void GrAtlasTextOp::onPrepareDraws(Target* target) {
|
||||
if (totalGlyphsRegened != subRunEnd) {
|
||||
// Flush if not all glyphs drawn because either the quad buffer is full or the
|
||||
// atlas is out of space.
|
||||
this->flush(target, &flushInfo);
|
||||
this->createDrawForGeneratedGlyphs(target, &flushInfo);
|
||||
if (totalGlyphsRegened == quadBufferEnd) {
|
||||
// Quad buffer is full. Get more buffer.
|
||||
quadBufferBegin = totalGlyphsRegened;
|
||||
@ -452,7 +452,7 @@ void GrAtlasTextOp::onPrepareDraws(Target* target) {
|
||||
}
|
||||
}
|
||||
} // for all geometries
|
||||
this->flush(target, &flushInfo);
|
||||
this->createDrawForGeneratedGlyphs(target, &flushInfo);
|
||||
}
|
||||
|
||||
void GrAtlasTextOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) {
|
||||
@ -463,7 +463,8 @@ void GrAtlasTextOp::onExecute(GrOpFlushState* flushState, const SkRect& chainBou
|
||||
flushState->executeDrawsAndUploadsForMeshDrawOp(this, chainBounds, pipeline);
|
||||
}
|
||||
|
||||
void GrAtlasTextOp::flush(GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const {
|
||||
void GrAtlasTextOp::createDrawForGeneratedGlyphs(
|
||||
GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const {
|
||||
if (!flushInfo->fGlyphsToFlush) {
|
||||
return;
|
||||
}
|
||||
|
@ -143,7 +143,8 @@ private:
|
||||
kLCDBGRDistanceField_MaskType == fMaskType;
|
||||
}
|
||||
|
||||
inline void flush(GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const;
|
||||
inline void createDrawForGeneratedGlyphs(
|
||||
GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const;
|
||||
|
||||
const SkPMColor4f& color() const { SkASSERT(fGeoCount > 0); return fGeoData[0].fColor; }
|
||||
bool usesLocalCoords() const { return fUsesLocalCoords; }
|
||||
|
Loading…
Reference in New Issue
Block a user