DescriptionAdd CPU backing store for GrAtlas to reduce texture uploads.
This change creates a temporary copy of each GrPlot on the CPU
side. As we add glyphs to a plot, a dirty rectangle is tracked,
and just before we render text we upload all of the dirty areas
to the atlas texture. Once a plot is nearly full, we assume that
we may only be adding one or two glyphs before rendering, so we
delete the CPU backing memory to save space, and upload directly.
BUG=366225
Committed: http://code.google.com/p/skia/source/detail?r=14729
Patch Set 1 #Patch Set 2 : Allocate backing memory for atlas transfers on a per-plot basis. #Patch Set 3 : Rebase to master #Patch Set 4 : Turn on texture update for distance fields #
Total comments: 10
Patch Set 5 : Fix issues #Patch Set 6 : Add flag to enable upload batching #Patch Set 7 : Initialize fBatchUploads in GrPlot. #
Total comments: 2
Patch Set 8 : Rebase to ToT #Patch Set 9 : Add assert to GrPlot::uploadTexture() #
Messages
Total messages: 9 (0 generated)
|