Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: src/gpu/GrTextStrike.h

Issue 269423007: Add CPU backing store for GrAtlas to reduce texture uploads (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Turn on texture update for distance fields Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrTextStrike.h
diff --git a/src/gpu/GrTextStrike.h b/src/gpu/GrTextStrike.h
index 2f2b7202a2f13a10533e79818e1ef9e60a4e6b0e..cee47c5074878c10fc65aceca215b37816d8a512 100644
--- a/src/gpu/GrTextStrike.h
+++ b/src/gpu/GrTextStrike.h
@@ -90,6 +90,14 @@ public:
}
GrTextStrike* getHeadStrike() const { return fHead; }
+ void updateTextures() {
+ for (int i = 0; i < kAtlasCount; ++i) {
+ if (fAtlasMgr[i]) {
+ fAtlasMgr[i]->uploadPlotsToTexture();
+ }
+ }
+ }
+
#ifdef SK_DEBUG
void validate() const;
#else

Powered by Google App Engine
This is Rietveld 408576698