Bug 1065536, part 1 - Remove superfluous MOZ_COUNT_CTOR/DTOR for CompositorChild. r=nical
authorAndrew McCreight <continuation@gmail.com>
Fri, 02 Jan 2015 13:09:06 -0800
changeset 247728 bf3174536261fcfac4d7015320bf7c1be3d42480
parent 247727 2a7cd513b5654d850e6540eefbd602ef45158119
child 247729 e1422a12e54b42743670af1e04fed0d86ad0104d
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1065536
milestone37.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 1065536, part 1 - Remove superfluous MOZ_COUNT_CTOR/DTOR for CompositorChild. r=nical This class is reference counted so they are not needed.
gfx/layers/ipc/CompositorChild.cpp
--- a/gfx/layers/ipc/CompositorChild.cpp
+++ b/gfx/layers/ipc/CompositorChild.cpp
@@ -32,22 +32,20 @@ namespace layers {
 
 /*static*/ CompositorChild* CompositorChild::sCompositor;
 
 Atomic<int32_t> CompositableForwarder::sSerialCounter(0);
 
 CompositorChild::CompositorChild(ClientLayerManager *aLayerManager)
   : mLayerManager(aLayerManager)
 {
-  MOZ_COUNT_CTOR(CompositorChild);
 }
 
 CompositorChild::~CompositorChild()
 {
-  MOZ_COUNT_DTOR(CompositorChild);
 }
 
 void
 CompositorChild::Destroy()
 {
   mLayerManager->Destroy();
   mLayerManager = nullptr;
   // start from the end of the array because Destroy() can cause the