Bug 912974 - Add two missing include guards. r=bjacob
authorBenoit Jacob <bjacob@mozilla.com>
Tue, 10 Sep 2013 21:10:47 -0400
changeset 159394 ea05a04019d8a3484c7f8e489c6ca38713b176f1
parent 159393 9b69c26b9dc24fd94efbe7ec3f897635a0fe3207
child 159395 5f5b6750d49d6b90dad066966f16d49221dcb812
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs912974
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 912974 - Add two missing include guards. r=bjacob
gfx/gl/GfxTexturesReporter.h
gfx/gl/TextureGarbageBin.h
--- a/gfx/gl/GfxTexturesReporter.h
+++ b/gfx/gl/GfxTexturesReporter.h
@@ -1,14 +1,17 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* vim: set ts=8 sts=4 et sw=4 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#ifndef GFXTEXTURESREPORTER_H_
+#define GFXTEXTURESREPORTER_H_
+
 #include "nsIMemoryReporter.h"
 #include "GLTypes.h"
 
 namespace mozilla {
 namespace gl {
 
 class GfxTexturesReporter MOZ_FINAL : public MemoryReporterBase
 {
@@ -40,9 +43,11 @@ public:
 
 private:
     int64_t Amount() MOZ_OVERRIDE { return sAmount; }
 
     static int64_t sAmount;
 };
 
 }
-}
\ No newline at end of file
+}
+
+#endif // GFXTEXTURESREPORTER_H_
--- a/gfx/gl/TextureGarbageBin.h
+++ b/gfx/gl/TextureGarbageBin.h
@@ -1,14 +1,17 @@
 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /* vim: set ts=8 sts=4 et sw=4 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#ifndef TEXTUREGARBAGEBIN_H_
+#define TEXTUREGARBAGEBIN_H_
+
 #include <stack>
 
 #include "mozilla/Mutex.h"
 #include "nsISupportsImpl.h"
 
 #include "GLContextTypes.h"
 
 namespace mozilla {
@@ -30,8 +33,10 @@ public:
 
     void GLContextTeardown();
     void Trash(GLuint tex);
     void EmptyGarbage();
 };
 
 }
 }
+
+#endif // TEXTUREGARBAGEBIN_H_