aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkGlobalInitialization_none.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-02-09 12:24:07 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-09 19:30:25 +0000
commita04bb45b23e201f317e6bddd41b3241df9f3ac2c (patch)
treef5bc7192e064749288b831ddda0baf1143dababc /src/ports/SkGlobalInitialization_none.cpp
parent67d64605d3421404a94c0717fdff194730579873 (diff)
Make src/effects explicitly optional.
This adds a GN argument to disable src/effects, which can cut about 1M off libskia. It's not the first place you'd go to trim code size, but after turning off easy big things like Ganesh, it starts looking big. I tested that fiddle builds and links. It uses Skia but not effects. Most of our test apps use effects and can't build in this new mode. Change-Id: I9b5d6e9289a87bc08eedf6d202d0eabe754da41a Reviewed-on: https://skia-review.googlesource.com/8263 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/ports/SkGlobalInitialization_none.cpp')
-rw-r--r--src/ports/SkGlobalInitialization_none.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ports/SkGlobalInitialization_none.cpp b/src/ports/SkGlobalInitialization_none.cpp
new file mode 100644
index 0000000000..07d1825c6f
--- /dev/null
+++ b/src/ports/SkGlobalInitialization_none.cpp
@@ -0,0 +1,10 @@
+/*
+ * Copyright 2017 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkFlattenable.h"
+
+void SkFlattenable::PrivateInitializer::InitEffects() {}