Home | History | Annotate | Download | only in image

Lines Matching refs:image2

53   gfx::Image image2(gt::CreateImageSkia(25, 25));
54 EXPECT_FALSE(image2.IsEmpty());
55 EXPECT_EQ(25, image2.Width());
56 EXPECT_EQ(25, image2.Height());
58 image.SwapRepresentations(&image2);
62 EXPECT_TRUE(image2.IsEmpty());
63 EXPECT_EQ(0, image2.Width());
64 EXPECT_EQ(0, image2.Height());
80 gfx::Image image2(image_skia);
81 EXPECT_TRUE(image2.IsEmpty());
82 EXPECT_EQ(0, image2.Width());
83 EXPECT_EQ(0, image2.Height());
84 EXPECT_EQ(0U, image2.RepresentationCount());
106 gfx::Image image2(image_png_reps2);
107 EXPECT_TRUE(image2.IsEmpty());
108 EXPECT_EQ(0U, image2.RepresentationCount());
118 gfx::Image image2(gt::CreateImageSkia(10, 25));
119 EXPECT_EQ(10, image2.Width());
120 EXPECT_EQ(25, image2.Height());
121 EXPECT_EQ(gfx::Size(10, 25), image2.Size());
178 gfx::Image image2(image_png_reps);
179 EXPECT_FALSE(image2.IsEmpty());
180 EXPECT_EQ(0, image2.Width());
181 EXPECT_EQ(0, image2.Height());
182 scoped_refptr<base::RefCountedMemory> png_bytes2 = image2.As1xPNGBytes();
580 gfx::Image image2(gt::CreatePlatformImage());
581 const gfx::ImageSkia* image_skia2 = image2.ToImageSkia();
582 gt::PlatformImage platform_image = gt::ToPlatformType(image2);
583 EXPECT_EQ(kRepCount, image2.RepresentationCount());
585 image1.SwapRepresentations(&image2);
590 EXPECT_EQ(image_skia1, image2.ToImageSkia());
592 EXPECT_EQ(1U, image2.RepresentationCount());
601 gfx::Image image2(image1);
602 EXPECT_EQ(25, image2.Width());
603 EXPECT_EQ(25, image2.Height());
606 EXPECT_EQ(1U, image2.RepresentationCount());
607 EXPECT_EQ(image1.ToImageSkia(), image2.ToImageSkia());
609 EXPECT_TRUE(gt::IsPlatformImageValid(gt::ToPlatformType(image2)));
610 EXPECT_EQ(kRepCount, image2.RepresentationCount());
620 gfx::Image image2;
621 image2 = image1;
622 EXPECT_EQ(25, image2.Width());
623 EXPECT_EQ(25, image2.Height());
626 EXPECT_EQ(1U, image2.RepresentationCount());
627 EXPECT_EQ(image1.ToSkBitmap(), image2.ToSkBitmap());