LCOV - code coverage report
Current view: top level - gfx/vr/ipc - VRLayerChild.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 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: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
       2             :  * This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #ifndef GFX_VR_LAYERCHILD_H
       7             : #define GFX_VR_LAYERCHILD_H
       8             : 
       9             : #include "VRManagerChild.h"
      10             : 
      11             : #include "mozilla/RefPtr.h"
      12             : #include "mozilla/gfx/PVRLayerChild.h"
      13             : #include "GLContext.h"
      14             : #include "gfxVR.h"
      15             : 
      16             : class nsICanvasRenderingContextInternal;
      17             : 
      18             : namespace mozilla {
      19             : class WebGLContext;
      20             : namespace dom {
      21             : class HTMLCanvasElement;
      22             : }
      23             : namespace layers {
      24             : class SharedSurfaceTextureClient;
      25             : }
      26             : namespace gl {
      27             : class SurfaceFactory;
      28             : }
      29             : namespace gfx {
      30             : 
      31             : class VRLayerChild : public PVRLayerChild {
      32           0 :   NS_INLINE_DECL_THREADSAFE_REFCOUNTING(VRLayerChild)
      33             : 
      34             : public:
      35             :   VRLayerChild(uint32_t aVRDisplayID, VRManagerChild* aVRManagerChild);
      36             :   void Initialize(dom::HTMLCanvasElement* aCanvasElement);
      37             :   void SubmitFrame();
      38             :   bool IsIPCOpen();
      39             : 
      40             : protected:
      41             :   virtual ~VRLayerChild();
      42             :   void ClearSurfaces();
      43             :   virtual void ActorDestroy(ActorDestroyReason aWhy) override;
      44             : 
      45             :   uint32_t mVRDisplayID;
      46             : 
      47             :   RefPtr<dom::HTMLCanvasElement> mCanvasElement;
      48             :   RefPtr<layers::SharedSurfaceTextureClient> mShSurfClient;
      49             :   RefPtr<layers::TextureClient> mFront;
      50             :   bool mIPCOpen;
      51             : };
      52             : 
      53             : } // namespace gfx
      54             : } // namespace mozilla
      55             : 
      56             : #endif

Generated by: LCOV version 1.13