Home | History | Annotate | Download | only in image

Lines Matching refs:image2

58   gfx::Image image2(gt::CreateImageSkia(25, 25));
59 EXPECT_FALSE(image2.IsEmpty());
60 EXPECT_EQ(25, image2.Width());
61 EXPECT_EQ(25, image2.Height());
63 image.SwapRepresentations(&image2);
67 EXPECT_TRUE(image2.IsEmpty());
68 EXPECT_EQ(0, image2.Width());
69 EXPECT_EQ(0, image2.Height());
85 gfx::Image image2(image_skia);
86 EXPECT_TRUE(image2.IsEmpty());
87 EXPECT_EQ(0, image2.Width());
88 EXPECT_EQ(0, image2.Height());
89 EXPECT_EQ(0U, image2.RepresentationCount());
111 gfx::Image image2(image_png_reps2);
112 EXPECT_TRUE(image2.IsEmpty());
113 EXPECT_EQ(0U, image2.RepresentationCount());
123 gfx::Image image2(gt::CreateImageSkia(10, 25));
124 EXPECT_EQ(10, image2.Width());
125 EXPECT_EQ(25, image2.Height());
126 EXPECT_EQ(gfx::Size(10, 25), image2.Size());
183 gfx::Image image2(image_png_reps);
184 EXPECT_FALSE(image2.IsEmpty());
185 EXPECT_EQ(0, image2.Width());
186 EXPECT_EQ(0, image2.Height());
187 scoped_refptr<base::RefCountedMemory> png_bytes2 = image2.As1xPNGBytes();
571 gfx::Image image2(gt::CreatePlatformImage());
572 const gfx::ImageSkia* image_skia2 = image2.ToImageSkia();
573 gt::PlatformImage platform_image = gt::ToPlatformType(image2);
574 EXPECT_EQ(kRepCount, image2.RepresentationCount());
576 image1.SwapRepresentations(&image2);
581 EXPECT_EQ(image_skia1, image2.ToImageSkia());
583 EXPECT_EQ(1U, image2.RepresentationCount());
592 gfx::Image image2(image1);
593 EXPECT_EQ(25, image2.Width());
594 EXPECT_EQ(25, image2.Height());
597 EXPECT_EQ(1U, image2.RepresentationCount());
598 EXPECT_EQ(image1.ToImageSkia(), image2.ToImageSkia());
600 EXPECT_TRUE(gt::IsPlatformImageValid(gt::ToPlatformType(image2)));
601 EXPECT_EQ(kRepCount, image2.RepresentationCount());
611 gfx::Image image2;
612 image2 = image1;
613 EXPECT_EQ(25, image2.Width());
614 EXPECT_EQ(25, image2.Height());
617 EXPECT_EQ(1U, image2.RepresentationCount());
618 EXPECT_EQ(image1.ToSkBitmap(), image2.ToSkBitmap());