aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkGlobalInitialization_default.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ports/SkGlobalInitialization_default.cpp')
-rw-r--r--src/ports/SkGlobalInitialization_default.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/ports/SkGlobalInitialization_default.cpp b/src/ports/SkGlobalInitialization_default.cpp
new file mode 100644
index 0000000000..6be776a0fd
--- /dev/null
+++ b/src/ports/SkGlobalInitialization_default.cpp
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "SkTypes.h"
+
+#if !SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
+
+#include "SkBitmapProcShader.h"
+#include "SkEffects.h"
+#include "SkFlipPixelRef.h"
+#include "SkImageRef_ashmem.h"
+#include "SkImageRef_GlobalPool.h"
+#include "SkMallocPixelRef.h"
+#include "SkPathEffect.h"
+#include "SkPixelRef.h"
+#include "SkShape.h"
+#include "SkXfermode.h"
+
+void SkFlattenable::InitializeFlattenables() {
+ SkBitmapProcShader::Init();
+ SkEffects::Init();
+ SkPathEffect::Init();
+ SkShape::Init();
+ SkXfermode::Init();
+}
+
+void SkPixelRef::InitializeFlattenables() {
+ SkFlipPixelRef::Init();
+ SkImageRef_GlobalPool::Init();
+ SkMallocPixelRef::Init();
+}
+
+#endif