Lines Matching refs:data
35 sk_sp<SkData> data = GetResourceAsData(filename);
36 if (!data) {
40 return data; // May return nullptr.
93 bool SkIsJFIF(const SkData* data, SkJFIFInfo* info) {
97 if (data && SkGetJpegInfo(data->data(), data->size(), &jpegSize,
122 sk_sp<SkData> data(load_resource(r, "JpegIdentification", kTests[i].path));
123 if (!data) {
127 bool isJfif = SkIsJFIF(data.get(), &info);
172 auto data = SkData::MakeWithoutCopy(goodJpeg, goodJpegLength);
173 REPORTER_ASSERT(r, SkIsJFIF(data.get(), &info));
178 data = SkData::MakeWithoutCopy(goodJpeg, 1);
179 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
182 data = SkData::MakeWithoutCopy(goodJpeg, 3);
183 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
186 data = SkData::MakeWithoutCopy(goodJpeg, 5);
187 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
190 data = SkData::MakeWithoutCopy(goodJpeg, 7);
191 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
194 data = SkData::MakeWithoutCopy(goodJpeg, 89);
195 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
206 auto data = SkData::MakeWithoutCopy(jpeg, jpegLength);
207 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
218 auto data = SkData::MakeWithoutCopy(jpeg, jpegLength);
219 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
230 auto data = SkData::MakeWithoutCopy(jpeg, jpegLength);
231 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
242 auto data = SkData::MakeWithoutCopy(jpeg, jpegLength);
243 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));
254 auto data = SkData::MakeWithoutCopy(jpeg, jpegLength);
255 REPORTER_ASSERT(r, !SkIsJFIF(data.get(), &info));