diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-14 15:14:51 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-05-14 15:14:51 +0000 |
commit | 7801faaab9bf7dd0ac67e859c4e284e74f7bd46f (patch) | |
tree | e2bdd76e9b8ed3f5837f449d106cf1b6f153f6ef /src/gpu/GrBitmapTextContext.h | |
parent | 21bbc2816f197d38baf8e82983aa63b439596a11 (diff) |
Add 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
R=robertphillips@google.com
Author: jvanverth@google.com
Review URL: https://codereview.chromium.org/269423007
git-svn-id: http://skia.googlecode.com/svn/trunk@14729 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrBitmapTextContext.h')
-rw-r--r-- | src/gpu/GrBitmapTextContext.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrBitmapTextContext.h b/src/gpu/GrBitmapTextContext.h index 18f5cc0eef..23248ebf65 100644 --- a/src/gpu/GrBitmapTextContext.h +++ b/src/gpu/GrBitmapTextContext.h @@ -11,6 +11,7 @@ #include "GrTextContext.h" class GrTextStrike; +class GrAtlasMgr; /* * This class implements GrTextContext using standard bitmap fonts |