Bug 1047614 - Give ReadbackManagerD3D11 a private destructor; r=jrmuizel
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 05 Aug 2014 17:57:24 -0400
changeset 198059 2af2a0050c300bbb82d06135b485b6b7d29ef789
parent 198058 eab45b9fa85134807ffadfd95c34956d68cd2344
child 198060 cbfe7963a7a5f3905f03edfccd08eb4df0e5e495
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjrmuizel
bugs1047614
milestone34.0a1
Bug 1047614 - Give ReadbackManagerD3D11 a private destructor; r=jrmuizel
gfx/layers/d3d11/ReadbackManagerD3D11.h
--- a/gfx/layers/d3d11/ReadbackManagerD3D11.h
+++ b/gfx/layers/d3d11/ReadbackManagerD3D11.h
@@ -18,29 +18,30 @@ namespace layers {
 class TextureReadbackSink;
 struct ReadbackTask;
 
 class ReadbackManagerD3D11 MOZ_FINAL
 {
   NS_INLINE_DECL_REFCOUNTING(ReadbackManagerD3D11)
 public:
   ReadbackManagerD3D11();
-  ~ReadbackManagerD3D11();
 
   /**
    * Tell the readback manager to post a readback task.
    *
    * @param aTexture D3D10_USAGE_STAGING texture that will contain the data that
    *                 was readback.
    * @param aSink    TextureReadbackSink that the resulting DataSourceSurface
    *                 should be dispatched to.
    */
   void PostTask(ID3D10Texture2D* aTexture, TextureReadbackSink* aSink);
 
 private:
+  ~ReadbackManagerD3D11();
+
   friend DWORD WINAPI StartTaskThread(void *aManager);
 
   void ProcessTasks();
 
   // The invariant maintained by |mTaskSemaphore| is that the readback thread
   // will awaken from WaitForMultipleObjects() at least once per readback
   // task enqueued by the main thread.  Since the readback thread processes
   // exactly one task per wakeup (with one exception), no tasks are lost.  The