diff --git a/gfx/layers/opengl/CompositorOGL.h b/gfx/layers/opengl/CompositorOGL.h index 97b6c14bdca..964a5c39974 100644 --- a/gfx/layers/opengl/CompositorOGL.h +++ b/gfx/layers/opengl/CompositorOGL.h @@ -154,7 +154,9 @@ protected: nsTArray mUnusedTextures; }; -class CompositorOGL : public Compositor +// If you want to make this class not MOZ_FINAL, first remove calls to virtual +// methods (Destroy) that are made in the destructor. +class CompositorOGL MOZ_FINAL : public Compositor { typedef mozilla::gl::GLContext GLContext;