LCOV - code coverage report
Current view: top level - gfx/layers/basic - TextureClientX11.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: 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_TEXTURECLIENT_X11_H
       7             : #define MOZILLA_GFX_TEXTURECLIENT_X11_H
       8             : 
       9             : #include "mozilla/layers/TextureClient.h"
      10             : #include "ISurfaceAllocator.h" // For IsSurfaceDescriptorValid
      11             : #include "mozilla/layers/ShadowLayerUtilsX11.h"
      12             : 
      13             : namespace mozilla {
      14             : namespace layers {
      15             : 
      16           0 : class X11TextureData : public TextureData
      17             : {
      18             : public:
      19             :   static X11TextureData* Create(gfx::IntSize aSize, gfx::SurfaceFormat aFormat,
      20             :                                 TextureFlags aFlags, LayersIPCChannel* aAllocator);
      21             : 
      22             :   virtual bool Serialize(SurfaceDescriptor& aOutDescriptor) override;
      23             : 
      24             :   virtual bool Lock(OpenMode aMode) override;
      25             : 
      26             :   virtual void Unlock() override;
      27             : 
      28             :   virtual void FillInfo(TextureData::Info& aInfo) const override;
      29             : 
      30             :   virtual already_AddRefed<gfx::DrawTarget> BorrowDrawTarget() override;
      31             : 
      32             :   virtual void Deallocate(LayersIPCChannel*) override;
      33             : 
      34             :   virtual TextureData*
      35             :   CreateSimilar(LayersIPCChannel* aAllocator,
      36             :                 LayersBackend aLayersBackend,
      37             :                 TextureFlags aFlags = TextureFlags::DEFAULT,
      38             :                 TextureAllocationFlags aAllocFlags = ALLOC_DEFAULT) const override;
      39             : 
      40             :   virtual bool UpdateFromSurface(gfx::SourceSurface* aSurface) override;
      41             : 
      42             : protected:
      43             :   X11TextureData(gfx::IntSize aSize, gfx::SurfaceFormat aFormat,
      44             :                  bool aClientDeallocation, bool aIsCrossProcess,
      45             :                  gfxXlibSurface* aSurface);
      46             : 
      47             :   gfx::IntSize mSize;
      48             :   gfx::SurfaceFormat mFormat;
      49             :   RefPtr<gfxXlibSurface> mSurface;
      50             :   bool mClientDeallocation;
      51             :   bool mIsCrossProcess;
      52             : };
      53             : 
      54             : } // namespace layers
      55             : } // namespace mozilla
      56             : 
      57             : #endif

Generated by: LCOV version 1.13