Lines Matching refs:success

59     bool success = GetResourceAsBitmap("images/mandrill_128.png", &bitmap);
60 if (!success) {
65 success = bitmap.peekPixels(&src);
66 REPORTER_ASSERT(r, success);
67 if (!success) {
72 success = encode(format, &dst0, src);
73 REPORTER_ASSERT(r, success);
77 success = encoder1->encodeRows(1);
78 REPORTER_ASSERT(r, success);
83 success = encoder2->encodeRows(3);
84 REPORTER_ASSERT(r, success);
88 success = encoder3->encodeRows(200);
89 REPORTER_ASSERT(r, success);
182 bool success = GetResourceAsBitmap("images/mandrill_128.png", &bitmap);
183 if (!success) {
188 success = bitmap.peekPixels(&src);
189 REPORTER_ASSERT(r, success);
190 if (!success) {
196 success = SkJpegEncoder::Encode(&dst0, src, options);
197 REPORTER_ASSERT(r, success);
200 success = SkJpegEncoder::Encode(&dst1, src, options);
201 REPORTER_ASSERT(r, success);
204 success = SkJpegEncoder::Encode(&dst2, src, options);
205 REPORTER_ASSERT(r, success);
255 bool success = SkPngEncoder::Encode(&dst, src, options);
256 REPORTER_ASSERT(r, success);
294 bool success = GetResourceAsBitmap("images/mandrill_128.png", &bitmap);
295 if (!success) {
300 success = bitmap.peekPixels(&src);
301 REPORTER_ASSERT(r, success);
302 if (!success) {
308 success = SkPngEncoder::Encode(&dst0, src, options);
309 REPORTER_ASSERT(r, success);
312 success = SkPngEncoder::Encode(&dst1, src, options);
313 REPORTER_ASSERT(r, success);
316 success = SkPngEncoder::Encode(&dst2, src, options);
317 REPORTER_ASSERT(r, success);
385 bool success = GetResourceAsBitmap("images/google_chrome.ico", &bitmap);
386 if (!success) {
391 success = bitmap.peekPixels(&src);
392 REPORTER_ASSERT(r, success);
393 if (!success) {
401 success = SkWebpEncoder::Encode(&dst0, src, options);
402 REPORTER_ASSERT(r, success);
405 success = SkWebpEncoder::Encode(&dst1, src, options);
406 REPORTER_ASSERT(r, success);
410 success = SkWebpEncoder::Encode(&dst2, src, options);
411 REPORTER_ASSERT(r, success);
415 success = SkWebpEncoder::Encode(&dst3, src, options);
416 REPORTER_ASSERT(r, success);