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

Unified Diff: include/images/SkForceLinking.h

Issue 670453002: Remove image decoder and encoder autoregistration (Closed) Base URL: https://skia.googlesource.com/skia.git@separate-image-decoder-01-skpicture
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « include/core/SkImageEncoder.h ('k') | samplecode/SampleUnpremul.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/images/SkForceLinking.h
diff --git a/include/images/SkForceLinking.h b/include/images/SkForceLinking.h
deleted file mode 100644
index 39901f612ed2db90dc0c684a28c9b440662d2022..0000000000000000000000000000000000000000
--- a/include/images/SkForceLinking.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/**
- * This function's sole purpose is to trick the linker into not discarding
- * SkImageDecoder subclasses just because we do not directly call them.
- * This is necessary in applications that will create image decoders from
- * a stream.
- * Call this function with an expression that evaluates to false to ensure
- * that the linker includes the subclasses.
- * Passing true will result in leaked objects.
- */
-int SkForceLinking(bool doNotPassTrue);
-
-#define __SK_FORCE_IMAGE_DECODER_LINKING \
-static int linking_forced = SkForceLinking(false)
« no previous file with comments | « include/core/SkImageEncoder.h ('k') | samplecode/SampleUnpremul.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698