Flutter Engine
The Flutter Engine
|
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTypes.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrTypes.h"
#include "include/gpu/ganesh/SkSurfaceGanesh.h"
#include "include/private/base/SkTemplates.h"
#include "src/core/SkMemset.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "tests/CtsEnforcement.h"
#include "tests/Test.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <initializer_list>
Go to the source code of this file.
Functions | |
static float | linear_to_srgb (float linear) |
static float | srgb_to_linear (float srgb) |
bool | check_gamma (uint32_t src, uint32_t dst, bool toSRGB, float error, uint32_t *expected) |
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (ApplyGamma, reporter, ctxInfo, CtsEnforcement::kNever) | |
bool check_gamma | ( | uint32_t | src, |
uint32_t | dst, | ||
bool | toSRGB, | ||
float | error, | ||
uint32_t * | expected | ||
) |
Definition at line 62 of file ApplyGammaTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | ApplyGamma | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kNever | |||
) |
Definition at line 107 of file ApplyGammaTest.cpp.
|
static |
convert 0..1 linear value to 0..1 srgb
Definition at line 45 of file ApplyGammaTest.cpp.
|
static |
convert 0..1 srgb value to 0..1 linear
Definition at line 54 of file ApplyGammaTest.cpp.