Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index 7a1e5959c869b18cbcd03744e0c7f13b18aed15b..94df8864f8be41cc99e99d6289668b19dad9252e 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -831,6 +831,10 @@ static Sink* create_sink(const SkCommandLineConfig* config) { |
contextOptions = static_cast<GrContextFactory::ContextOptions>( |
contextOptions | GrContextFactory::kEnableNVPR_ContextOptions); |
} |
+ if (gpuConfig->getUseInstanced()) { |
+ contextOptions = static_cast<GrContextFactory::ContextOptions>( |
+ contextOptions | GrContextFactory::kUseInstanced_ContextOptions); |
+ } |
if (SkColorAndColorSpaceAreGammaCorrect(gpuConfig->getColorType(), |
gpuConfig->getColorSpace())) { |
contextOptions = static_cast<GrContextFactory::ContextOptions>( |