Home | History | Annotate | Download | only in tests

Lines Matching refs:swapped

589   pp::ImageData swapped(instance_, PP_IMAGEDATAFORMAT_BGRA_PREMUL,
591 ASSERT_FALSE(swapped.is_null());
592 FillRectInImage(&swapped, pp::Rect(0, 0, w, h), swapped_color);
593 dc.ReplaceContents(&swapped);
598 // Test the C++ wrapper. The size of the swapped image should be reset.
599 ASSERT_TRUE(!swapped.pp_resource() && !swapped.size().width() &&
600 !swapped.size().height() && !swapped.data());
602 // Painting with the swapped image should fail.
603 dc.PaintImageData(swapped, pp::Point(0, 0));
608 // The background should be green from the swapped image.