aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/DecodeFile.h
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-02-10 09:06:38 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-13 15:52:59 +0000
commit03a7f5fe2de9b0c886be4063533c91720ced0bf9 (patch)
tree94f4cbc08020a1e8c4a32fe9618691efa2e631f9 /samplecode/DecodeFile.h
parent9119de64aa950647c7a10c5515ae7e8e4175efac (diff)
Make header files idempotent; script to check
Change-Id: I960ded854e6bc7cdee029a7393cac2a686c41754 Reviewed-on: https://skia-review.googlesource.com/8308 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'samplecode/DecodeFile.h')
-rw-r--r--samplecode/DecodeFile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/samplecode/DecodeFile.h b/samplecode/DecodeFile.h
index 95f3e39983..450c1fb3d7 100644
--- a/samplecode/DecodeFile.h
+++ b/samplecode/DecodeFile.h
@@ -5,6 +5,9 @@
* found in the LICENSE file.
*/
+#ifndef DecodeFile_DEFINED
+#define DecodeFile_DEFINED
+
#include "SkBitmap.h"
#include "SkCodec.h"
#include "SkData.h"
@@ -36,3 +39,4 @@ static inline sk_sp<SkImage> decode_file(const char filename[]) {
sk_sp<SkData> data(SkData::MakeFromFileName(filename));
return data ? SkImage::MakeFromEncoded(data) : nullptr;
}
+#endif // DecodeFile_DEFINED