Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/RegionBuilder.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
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 RegionBuilder_h__
8
#define RegionBuilder_h__
9
10
#include <nsTArray.h>
11
12
template <typename RegionType>
13
class RegionBuilder
14
{
15
public:
16
  typedef typename RegionType::RectType RectType;
17
18
  RegionBuilder()
19
0
  {}
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::gfx::UnknownUnits> >::RegionBuilder()
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::LayerPixel> >::RegionBuilder()
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::LayoutDevicePixel> >::RegionBuilder()
Unexecuted instantiation: RegionBuilder<nsRegion>::RegionBuilder()
20
21
0
  void OrWith(const RectType& aRect) {
22
0
    pixman_box32_t box = { aRect.X(), aRect.Y(), aRect.XMost(), aRect.YMost() };
23
0
    mRects.AppendElement(box);
24
0
  }
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::gfx::UnknownUnits> >::OrWith(mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&)
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::LayerPixel> >::OrWith(mozilla::gfx::IntRectTyped<mozilla::LayerPixel> const&)
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::LayoutDevicePixel> >::OrWith(mozilla::gfx::IntRectTyped<mozilla::LayoutDevicePixel> const&)
Unexecuted instantiation: RegionBuilder<nsRegion>::OrWith(nsRect const&)
25
26
0
  RegionType ToRegion() const {
27
0
    return RegionType(mRects);
28
0
  }
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::gfx::UnknownUnits> >::ToRegion() const
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::LayerPixel> >::ToRegion() const
Unexecuted instantiation: RegionBuilder<mozilla::gfx::IntRegionTyped<mozilla::LayoutDevicePixel> >::ToRegion() const
Unexecuted instantiation: RegionBuilder<nsRegion>::ToRegion() const
29
30
private:
31
  nsTArray<pixman_box32_t> mRects;
32
};
33
34
#endif // RegionBuilder_h__