Re-enable nvpr text rendering in DM.
authorbsalomon <bsalomon@google.com>
Tue, 8 Sep 2015 17:26:51 +0000 (10:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 8 Sep 2015 17:26:51 +0000 (10:26 -0700)
Review URL: https://codereview.chromium.org/1306733007

dm/DM.cpp
src/gpu/GrStencilAndCoverTextContext.cpp

index becea6ca6cf00c2c6eae2c548ec4692cd850628b..55651d9cdabc440083edc13c61e4c13fd4314eb5 100644 (file)
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -439,8 +439,8 @@ static Sink* create_sink(const char* tag) {
         SINK("gpudft",        GPUSink, Gr::kNative_GLContextType,        api,  0,  true, FLAGS_gpu_threading);
         SINK("msaa4",         GPUSink, Gr::kNative_GLContextType,        api,  4, false, FLAGS_gpu_threading);
         SINK("msaa16",        GPUSink, Gr::kNative_GLContextType,        api, 16, false, FLAGS_gpu_threading);
-        SINK("nvprmsaa4",     GPUSink, Gr::kNVPR_GLContextType,          api,  4, false, FLAGS_gpu_threading);
-        SINK("nvprmsaa16",    GPUSink, Gr::kNVPR_GLContextType,          api, 16, false, FLAGS_gpu_threading);
+        SINK("nvprmsaa4",     GPUSink, Gr::kNVPR_GLContextType,          api,  4,  true, FLAGS_gpu_threading);
+        SINK("nvprmsaa16",    GPUSink, Gr::kNVPR_GLContextType,          api, 16,  true, FLAGS_gpu_threading);
     #if SK_ANGLE
         SINK("angle",         GPUSink, Gr::kANGLE_GLContextType,         api,  0, false, FLAGS_gpu_threading);
     #endif
index 047cd07978df6934edff09cbfde04def57faa400..479213b21c1b46c58d137a80968ae31a3b305f6f 100644 (file)
@@ -443,7 +443,6 @@ void GrStencilAndCoverTextContext::flush(GrDrawContext* dc) {
 
         *pipelineBuilder.stencil() = kStencilPass;
 
-        SkASSERT(0 == fQueuedGlyphCount);
         SkASSERT(kGlyphBufferSize == fFallbackGlyphsIdx);
 
         dc->drawPaths(&pipelineBuilder, pp, fGlyphs,