LCOV - code coverage report
Current view: top level - gfx/layers/mlgpu - ClearRegionHelper.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_layers_mlgpu_ClearRegionHelper_h
       7             : #define mozilla_gfx_layers_mlgpu_ClearRegionHelper_h
       8             : 
       9             : #include "SharedBufferMLGPU.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace layers {
      13             : 
      14             : // This is a helper class for issuing a clear operation based on either
      15             : // a shader or an API like ClearView. It also works when the depth
      16             : // buffer is enabled.
      17           0 : struct ClearRegionHelper
      18             : {
      19             :   // If using ClearView-based clears, we fill mRegions.
      20             :   nsTArray<gfx::IntRect> mRects;
      21             : 
      22             :   // If using shader-based clears, we fill these buffers.
      23             :   VertexBufferSection mInput;
      24             :   ConstantBufferSection mVSBuffer;
      25             : };
      26             : 
      27             : } // namespace layers
      28             : } // namespace mozilla
      29             : 
      30             : #endif // mozilla_gfx_layers_mlgpu_ClearRegionHelper_h

Generated by: LCOV version 1.13