aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/atlastext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/atlastext.cpp')
-rw-r--r--gm/atlastext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/atlastext.cpp b/gm/atlastext.cpp
index 226b83fdd7..c30a6754db 100644
--- a/gm/atlastext.cpp
+++ b/gm/atlastext.cpp
@@ -8,6 +8,7 @@
#include "gm.h"
#if SK_SUPPORT_ATLAS_TEXT
+#include "GrContext.h"
#include "SkAtlasTextContext.h"
#include "SkAtlasTextFont.h"
@@ -72,6 +73,7 @@ protected:
if (!targetHandle) {
return;
}
+
fTarget = SkAtlasTextTarget::Make(fContext, kSize, kSize, targetHandle);
fTypefaces[0] = sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic());