LCOV - code coverage report
Current view: top level - widget/gtk - WindowSurfaceX11Image.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
       2             :  *
       3             :  * This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_IMAGE_H
       8             : #define _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_IMAGE_H
       9             : 
      10             : #ifdef MOZ_X11
      11             : 
      12             : #include "WindowSurfaceX11.h"
      13             : #include "gfxXlibSurface.h"
      14             : #include "gfxImageSurface.h"
      15             : 
      16             : namespace mozilla {
      17             : namespace widget {
      18             : 
      19             : class WindowSurfaceX11Image : public WindowSurfaceX11 {
      20             : public:
      21             :   WindowSurfaceX11Image(Display* aDisplay, Window aWindow, Visual* aVisual,
      22             :                         unsigned int aDepth);
      23             :   ~WindowSurfaceX11Image();
      24             : 
      25             :   already_AddRefed<gfx::DrawTarget> Lock(const LayoutDeviceIntRegion& aRegion) override;
      26             :   void Commit(const LayoutDeviceIntRegion& aInvalidRegion) override;
      27           0 :   bool IsFallback() const override { return true; }
      28             : 
      29             : private:
      30             :   RefPtr<gfxXlibSurface> mWindowSurface;
      31             :   RefPtr<gfxImageSurface> mImageSurface;
      32             : };
      33             : 
      34             : }  // namespace widget
      35             : }  // namespace mozilla
      36             : 
      37             : #endif // MOZ_X11
      38             : #endif // _MOZILLA_WIDGET_GTK_WINDOW_SURFACE_X11_IMAGE_H

Generated by: LCOV version 1.13