Skip to content

Commit 6244c66

Browse files
MacDuenico
authored andcommitted
LibGfx: Tidy up SamplesPerPixel definitions
Remove a duplicate `SamplesPerPixel` definition and remove unnecessary "inline" specifiers.
1 parent 39a1d7b commit 6244c66

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Detail {
2222

2323
template<unsigned SampleCount>
2424
struct NoAA {
25-
static inline constexpr unsigned SamplesPerPixel = SampleCount;
25+
static constexpr unsigned SamplesPerPixel = SampleCount;
2626

2727
static u8 coverage_to_alpha(u8 coverage)
2828
{
@@ -32,7 +32,7 @@ struct NoAA {
3232

3333
template<unsigned SampleCount>
3434
struct AA {
35-
static inline constexpr unsigned SamplesPerPixel = SampleCount;
35+
static constexpr unsigned SamplesPerPixel = SampleCount;
3636

3737
static u8 coverage_to_alpha(u8 coverage)
3838
{
@@ -71,7 +71,6 @@ struct Sample8x : AAMode<8> {
7171

7272
template<template<unsigned SamplesPerPixel> class AAMode>
7373
struct Sample16x : AAMode<16> {
74-
static inline constexpr unsigned SamplesPerPixel = 8;
7574
using Type = u16;
7675
static constexpr Array nrooks_subpixel_offsets {
7776
(1.0f / 16.0f),
@@ -153,7 +152,7 @@ class EdgeFlagPathRasterizer {
153152

154153
private:
155154
using SampleType = typename SubpixelSample::Type;
156-
static inline constexpr unsigned SamplesPerPixel = SubpixelSample::SamplesPerPixel;
155+
static constexpr unsigned SamplesPerPixel = SubpixelSample::SamplesPerPixel;
157156

158157
struct EdgeExtent {
159158
int min_x;

0 commit comments

Comments
 (0)