LCOV - code coverage report
Current view: top level - gfx/layers/client - GPUVideoTextureClient.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 4 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 20; 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 MOZILLA_GFX_GPUVIDEOTEXTURECLIENT_H
       7             : #define MOZILLA_GFX_GPUVIDEOTEXTURECLIENT_H
       8             : 
       9             : #include "mozilla/layers/TextureClient.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace gfx {
      13             : class SourceSurface;
      14             : }
      15             : namespace dom {
      16             : class VideoDecoderManagerChild;
      17             : }
      18             : namespace layers {
      19             : 
      20             : class GPUVideoTextureData : public TextureData
      21             : {
      22             : public:
      23             :   GPUVideoTextureData(dom::VideoDecoderManagerChild* aManager,
      24             :                       const SurfaceDescriptorGPUVideo& aSD,
      25             :                       const gfx::IntSize& aSize);
      26             :   ~GPUVideoTextureData();
      27             : 
      28             :   virtual void FillInfo(TextureData::Info& aInfo) const override;
      29             : 
      30           0 :   virtual bool Lock(OpenMode) override { return true; };
      31             : 
      32           0 :   virtual void Unlock() override {};
      33             : 
      34             :   virtual bool Serialize(SurfaceDescriptor& aOutDescriptor) override;
      35             : 
      36             :   virtual void Deallocate(LayersIPCChannel* aAllocator) override;
      37             : 
      38             :   virtual void Forget(LayersIPCChannel* aAllocator) override;
      39             : 
      40             :   already_AddRefed<gfx::SourceSurface> GetAsSourceSurface();
      41             : 
      42           0 :   virtual GPUVideoTextureData* AsGPUVideoTextureData() override
      43             :   {
      44           0 :     return this;
      45             :   }
      46             : 
      47             : protected:
      48             :   RefPtr<dom::VideoDecoderManagerChild> mManager;
      49             :   SurfaceDescriptorGPUVideo mSD;
      50             :   gfx::IntSize mSize;
      51             : };
      52             : 
      53             : } // namespace layers
      54             : } // namespace mozilla
      55             : 
      56             : #endif // MOZILLA_GFX_GPUVIDEOTEXTURECLIENT_H

Generated by: LCOV version 1.13