Remove nvpr from CanvasKit
Saves about 20k uncompressed, 7k compressed.
Bug: skia:
Change-Id: I060c58380f3e3266bca9028ba5ba6aa17ce178dc
Reviewed-on: https://skia-review.googlesource.com/c/161942
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index fb394aa..6d141ca 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -35,6 +35,7 @@
skia_android_serial = ""
skia_enable_ccpr = true
+ skia_enable_nvpr = true
skia_enable_discrete_gpu = true
skia_enable_effects = true
skia_enable_effects_imagefilters = true
@@ -592,6 +593,10 @@
sources -= skia_ccpr_sources
sources += [ "src/gpu/ccpr/GrCoverageCountingPathRenderer_none.cpp" ]
}
+ if (!skia_enable_nvpr) {
+ sources -= skia_nvpr_sources
+ sources += [ "src/gpu/GrPathRendering_none.cpp" ]
+ }
# These paths need to be absolute to match the ones produced by shared_sources.gni.
sources -= get_path_info([ "src/gpu/gl/GrGLMakeNativeInterface_none.cpp" ],