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

Unified Diff: src/gpu/GrPathRendererChain.cpp

Issue 855513004: Tessellating GPU path renderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT; remove kSkipTiled flag from GM Created 5 years, 11 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/GrPathRendererChain.cpp
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp
index d11763bff13297eae4ef9b9325a849d2baf0a9d7..cc81693611e772325c3d31d2ec904d9d1fb5075d 100644
--- a/src/gpu/GrPathRendererChain.cpp
+++ b/src/gpu/GrPathRendererChain.cpp
@@ -12,6 +12,7 @@
#include "GrContext.h"
#include "GrDefaultPathRenderer.h"
#include "GrDrawTargetCaps.h"
+#include "GrTessellatingPathRenderer.h"
#include "GrGpu.h"
GrPathRendererChain::GrPathRendererChain(GrContext* context)
@@ -78,6 +79,7 @@ GrPathRenderer* GrPathRendererChain::getPathRenderer(const GrDrawTarget* target,
void GrPathRendererChain::init() {
SkASSERT(!fInit);
+ this->addPathRenderer(SkNEW(GrTessellatingPathRenderer))->unref();
jvanverth1 2015/01/26 21:49:45 Why not add this to GrPathRenderer::AddPathRendere
Stephen White 2015/01/27 15:26:29 Done.
GrGpu* gpu = fOwner->getGpu();
bool twoSided = gpu->caps()->twoSidedStencilSupport();
bool wrapOp = gpu->caps()->stencilWrapOpsSupport();

Powered by Google App Engine
This is Rietveld 408576698