aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-01 12:19:34 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-01 12:19:34 +0000
commit7c2578d392adf76476cbae4aa3847504f8df1487 (patch)
tree514743c82ee8a0892f91154f1b46d6b109855bff
parent02b1ea24fd1152cb5a93e05b4d78700740140db6 (diff)
Second half of refactoring to move SW path rendering to GrPathRenderer
-rw-r--r--gyp/gpu.gyp2
-rw-r--r--src/gpu/GrAddPathRenderers_default.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 5e05c9accb..31662abb9a 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -264,6 +264,8 @@
'../src/gpu/GrTDArray.h',
'../src/gpu/GrTesselatedPathRenderer.cpp',
'../src/gpu/GrTesselatedPathRenderer.h',
+ '../src/gpu/GrSoftwarePathRenderer.cpp',
+ '../src/gpu/GrSoftwarePathRenderer.h',
'../src/gpu/GrTextStrike.cpp',
'../src/gpu/GrTextStrike.h',
'../src/gpu/GrTextStrike_impl.h',
diff --git a/src/gpu/GrAddPathRenderers_default.cpp b/src/gpu/GrAddPathRenderers_default.cpp
index 8f6eb1e77c..47c08b993b 100644
--- a/src/gpu/GrAddPathRenderers_default.cpp
+++ b/src/gpu/GrAddPathRenderers_default.cpp
@@ -9,6 +9,7 @@
#include "GrAAHairLinePathRenderer.h"
#include "GrAAConvexPathRenderer.h"
+#include "GrSoftwarePathRenderer.h"
void GrPathRenderer::AddPathRenderers(GrContext* ctx,
GrPathRendererChain::UsageFlags flags,
@@ -19,5 +20,6 @@ void GrPathRenderer::AddPathRenderers(GrContext* ctx,
chain->addPathRenderer(pr)->unref();
}
chain->addPathRenderer(new GrAAConvexPathRenderer())->unref();
+ chain->addPathRenderer(new GrSoftwarePathRenderer(ctx))->unref();
}
}