◆ TestType
Enumerator |
---|
kFailGetPixels_TestType | |
kSucceedGetPixels_TestType | |
kLast_TestType | |
Definition at line 31 of file CachedDecodingPixelRefTest.cpp.
31 {
35 };
@ kFailGetPixels_TestType
@ kSucceedGetPixels_TestType
◆ TestImageGenerator()
Definition at line 42 of file CachedDecodingPixelRefTest.cpp.
46 }
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
SkImageGenerator(const SkImageInfo &info, uint32_t uniqueId=kNeedNewImageUniqueID)
static SkImageInfo GetMyInfo(SkColorType colorType)
◆ ~TestImageGenerator()
TestImageGenerator::~TestImageGenerator |
( |
| ) |
|
|
inlineoverride |
◆ Color()
static SkColor TestImageGenerator::Color |
( |
| ) |
|
|
inlinestatic |
◆ GetMyInfo()
Definition at line 50 of file CachedDecodingPixelRefTest.cpp.
50 {
53 }
@ kOpaque_SkAlphaType
pixel is opaque
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
◆ Height()
static int TestImageGenerator::Height |
( |
| ) |
|
|
inlinestatic |
◆ onGetPixels()
bool TestImageGenerator::onGetPixels |
( |
const SkImageInfo & |
info, |
|
|
void * |
pixels, |
|
|
size_t |
rowBytes, |
|
|
const Options & |
options |
|
) |
| |
|
inlineoverrideprotectedvirtual |
Reimplemented from SkImageGenerator.
Definition at line 55 of file CachedDecodingPixelRefTest.cpp.
56 {
60 return false;
61 }
63 return false;
64 }
65 char* bytePtr = static_cast<char*>(pixels);
66 switch (
info.colorType()) {
67 case kN32_SkColorType:
68 for (
int y = 0;
y <
info.height(); ++
y) {
71 bytePtr += rowBytes;
72 }
73 break;
75 for (
int y = 0;
y <
info.height(); ++
y) {
78 bytePtr += rowBytes;
79 }
80 break;
81 default:
82 return false;
83 }
84 return true;
85 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static U16CPU SkPixel32ToPixel16(SkPMColor c)
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
#define REPORTER_ASSERT(r, cond,...)
const SkImageInfo & getInfo() const
static SkPMColor PMColor()
void(* memset16)(uint16_t[], uint16_t, int)
void(* memset32)(uint32_t[], uint32_t, int)
◆ PMColor()
static SkPMColor TestImageGenerator::PMColor |
( |
| ) |
|
|
inlinestatic |
◆ Width()
static int TestImageGenerator::Width |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: