Searched refs:kMagic (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/core/ |
D | SkPicture.cpp | 281 static const char kMagic[] = { 's', 'k', 'i', 'a', 'p', 'i', 'c', 't' }; variable 284 if (0 != memcmp(info.fMagic, kMagic, sizeof(kMagic))) { in IsValidPictInfo() 303 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in InternalOnly_StreamIsSKP() 305 if (!stream->read(&info.fMagic, sizeof(kMagic))) { in InternalOnly_StreamIsSKP() 330 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in InternalOnly_BufferIsSKP() 332 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in InternalOnly_BufferIsSKP() 382 SkASSERT(sizeof(kMagic) == 8); in createHeader() 383 SkASSERT(sizeof(kMagic) == sizeof(info->fMagic)); in createHeader() 384 memcpy(info->fMagic, kMagic, sizeof(kMagic)); in createHeader()
|
/external/skia/third_party/etc1/ |
D | etc1.cpp | 620 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable 642 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header() 655 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
|