Bug 867420: Annotate AsyncPanZoomController as MOZ_FINAL to calm GCC Wdelete-non-virtual-dtor build warning. blanket-r=ehsan
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 30 Apr 2013 15:32:03 -0700
changeset 130421 3d939baa396b3275931cf17f7149db4b0ebdad49
parent 130420 40437cd7395bf12bab86634513e6e245c6030911
child 130422 c5715eab88057b3df1d4dcc2c9c181e6bdfbbd28
push id24618
push userryanvm@gmail.com
push dateWed, 01 May 2013 14:49:43 +0000
treeherdermozilla-central@4ff1e574e509 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs867420
milestone23.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 867420: Annotate AsyncPanZoomController as MOZ_FINAL to calm GCC Wdelete-non-virtual-dtor build warning. blanket-r=ehsan
gfx/layers/composite/AsyncCompositionManager.h
--- a/gfx/layers/composite/AsyncCompositionManager.h
+++ b/gfx/layers/composite/AsyncCompositionManager.h
@@ -7,16 +7,17 @@
 #define GFX_ASYNCCOMPOSITIONMANAGER_H
 
 #include "gfxPoint.h"
 #include "gfx3DMatrix.h"
 #include "nsAutoPtr.h"
 #include "nsRect.h"
 #include "mozilla/dom/ScreenOrientation.h"
 #include "mozilla/gfx/Rect.h"
+#include "mozilla/Attributes.h"
 #include "mozilla/RefPtr.h"
 #include "mozilla/TimeStamp.h"
 #include "mozilla/layers/LayerTransaction.h" // for TargetConfig
 
 namespace mozilla {
 namespace layers {
 
 class AsyncPanZoomController;
@@ -46,17 +47,17 @@ struct ViewTransform {
 /**
  * Manage async composition effects. This class is only used with OMTC and only
  * lives on the compositor thread. It is a layer on top of the layer manager
  * (LayerManagerComposite) which deals with elements of composition which are
  * usually dealt with by dom or layout when main thread rendering, but which can
  * short circuit that stuff to directly affect layers as they are composited,
  * for example, off-main thread animation, async video, async pan/zoom.
  */
-class AsyncCompositionManager : public RefCounted<AsyncCompositionManager>
+class AsyncCompositionManager MOZ_FINAL : public RefCounted<AsyncCompositionManager>
 {
   friend class AutoResolveRefLayers;
 public:
   AsyncCompositionManager(LayerManagerComposite* aManager)
     : mXScale(1.0)
     , mYScale(1.0)
     , mLayerManager(aManager)
     , mIsFirstPaint(false)