aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/DrawOpAtlasTest.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-27 16:43:18 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-27 22:05:55 +0000
commitacf17904d6286f2a63a5d895541804d0ea1be646 (patch)
treeefafdb48995fd150c37b1442bf58295d4d66cd89 /tests/DrawOpAtlasTest.cpp
parentc420525bd4cde4cdac471880d080d8c742307788 (diff)
Fission GrAtlasGlyphCache in two
This CL splits the old GrAtlasGlyphCache into a GrAtlasGlyphCache and an GrAtlasManager. The GrAtlasManager itself is split into a rather limited base class (GrRestrictedAtlasManager) and the all powerful GrAtlasManager. The GrRestrictedAtlasManager is available at op creation time and provides access to the proxies backing the atlases. The full GrAtlasManager is only available at flush time and allows instantiation of the proxies and uploading to them. In the DDL world all of the DDL Contexts will receive a GrRestrictedAtlasManager-version of the GrAtlasManager in the main thread. This future atlas manager will have had all of its GrDrawOpAtlases created (but not instantiated) so there should be no race conditions. Change-Id: I9967d3a4116af50128f390c5039a712b8cd4db08 Reviewed-on: https://skia-review.googlesource.com/108001 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'tests/DrawOpAtlasTest.cpp')
-rw-r--r--tests/DrawOpAtlasTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/DrawOpAtlasTest.cpp b/tests/DrawOpAtlasTest.cpp
index a34618e38f..7e35a07726 100644
--- a/tests/DrawOpAtlasTest.cpp
+++ b/tests/DrawOpAtlasTest.cpp
@@ -11,7 +11,7 @@
#include "GrContextPriv.h"
#include "Test.h"
-#include "text/GrAtlasGlyphCache.h"
+#include "text/GrGlyphCache.h"
static const int kNumPlots = 2;
static const int kPlotSize = 32;