LCOV - code coverage report
Current view: top level - gfx/layers/ipc - LayerTransactionChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 8 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
       2             :  * vim: sw=2 ts=8 et :
       3             :  */
       4             : /* This Source Code Form is subject to the terms of the Mozilla Public
       5             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       6             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       7             : 
       8             : #include "LayerTransactionChild.h"
       9             : #include "mozilla/gfx/Logging.h"
      10             : #include "mozilla/layers/ShadowLayers.h"  // for ShadowLayerForwarder
      11             : #include "mozilla/mozalloc.h"           // for operator delete, etc
      12             : #include "nsDebug.h"                    // for NS_RUNTIMEABORT, etc
      13             : #include "nsTArray.h"                   // for nsTArray
      14             : #include "mozilla/layers/TextureClient.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace layers {
      18             : 
      19             : 
      20             : void
      21           0 : LayerTransactionChild::Destroy()
      22             : {
      23           0 :   if (!IPCOpen()) {
      24           0 :     return;
      25             :   }
      26             :   // mDestroyed is used to prevent calling Send__delete__() twice.
      27             :   // When this function is called from CompositorBridgeChild::Destroy(),
      28             :   // under Send__delete__() call, this function is called from
      29             :   // ShadowLayerForwarder's destructor.
      30             :   // When it happens, IPCOpen() is still true.
      31             :   // See bug 1004191.
      32           0 :   mDestroyed = true;
      33             : 
      34           0 :   SendShutdown();
      35             : }
      36             : 
      37             : void
      38           0 : LayerTransactionChild::ActorDestroy(ActorDestroyReason why)
      39             : {
      40           0 :   mDestroyed = true;
      41           0 : }
      42             : 
      43             : } // namespace layers
      44             : } // namespace mozilla

Generated by: LCOV version 1.13