Coverage Report

Created: 2025-09-27 07:50

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/poppler/splash/SplashPattern.cc
Line
Count
Source
1
//========================================================================
2
//
3
// SplashPattern.cc
4
//
5
//========================================================================
6
7
//========================================================================
8
//
9
// Modified under the Poppler project - http://poppler.freedesktop.org
10
//
11
// All changes made under the Poppler project to this file are licensed
12
// under GPL version 2 or later
13
//
14
// Copyright (C) 2010, 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
15
// Copyright (C) 2020, 2021 Albert Astals Cid <aacid@kde.org>
16
//
17
// To see a description of the changes please see the Changelog file that
18
// came with your tarball or type make ChangeLog if you are building from git
19
//
20
//========================================================================
21
22
#include <config.h>
23
24
#include "SplashMath.h"
25
#include "SplashScreen.h"
26
#include "SplashPattern.h"
27
28
//------------------------------------------------------------------------
29
// SplashPattern
30
//------------------------------------------------------------------------
31
32
44.4M
SplashPattern::SplashPattern() = default;
33
34
44.4M
SplashPattern::~SplashPattern() = default;
35
36
//------------------------------------------------------------------------
37
// SplashSolidColor
38
//------------------------------------------------------------------------
39
40
SplashSolidColor::SplashSolidColor(SplashColorConstPtr colorA)
41
44.4M
{
42
44.4M
    splashColorCopy(color, colorA);
43
44.4M
}
44
45
SplashSolidColor::~SplashSolidColor() = default;
46
47
bool SplashSolidColor::getColor(int x, int y, SplashColorPtr c)
48
61.6M
{
49
61.6M
    splashColorCopy(c, color);
50
61.6M
    return true;
51
61.6M
}
52
53
//------------------------------------------------------------------------
54
// SplashGouraudColor
55
//------------------------------------------------------------------------
56
57
SplashGouraudColor::~SplashGouraudColor() = default;