Home
last modified time | relevance | path

Searched refs:image2 (Results 1 – 21 of 21) sorted by relevance

/external/chromium_org/ui/gfx/image/
Dimage_unittest.cc62 gfx::Image image2(gt::CreateImageSkia(25, 25)); in TEST_F() local
63 EXPECT_FALSE(image2.IsEmpty()); in TEST_F()
64 EXPECT_EQ(25, image2.Width()); in TEST_F()
65 EXPECT_EQ(25, image2.Height()); in TEST_F()
67 image.SwapRepresentations(&image2); in TEST_F()
71 EXPECT_TRUE(image2.IsEmpty()); in TEST_F()
72 EXPECT_EQ(0, image2.Width()); in TEST_F()
73 EXPECT_EQ(0, image2.Height()); in TEST_F()
89 gfx::Image image2(image_skia); in TEST_F() local
90 EXPECT_TRUE(image2.IsEmpty()); in TEST_F()
[all …]
Dimage_unittest_util.h45 bool IsEqual(const gfx::Image& image1, const gfx::Image& image2);
84 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2);
Dimage_unittest_util.cc274 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2) { in PlatformImagesEqual() argument
276 return image1 == image2; in PlatformImagesEqual()
278 return image1.BackedBySameObjectAs(image2); in PlatformImagesEqual()
/external/chromium_org/chrome/test/functional/ispy/common/
Dimage_tools.py30 def _GetDifferenceWithMask(image1, image2, mask=None, argument
61 if not _AreTheSameSize([image1, image2, image_mask]):
68 image2.getdata()):
159 def VisualizeImageDifferences(image1, image2, mask=None): argument
182 return _GetDifferenceWithMask(image1, image2, mask)
239 def TotalDifferentPixels(image1, image2, mask=None): argument
257 if _AreTheSameSize([image1, image2, image_mask]):
260 image2.getdata(),
273 def SameImage(image1, image2, mask=None): argument
293 different_pixels = TotalDifferentPixels(image1, image2, mask)
/external/chromium_org/chrome/browser/ui/cocoa/
Dtable_row_nsimage_cache_unittest.mm56 NSImage* image2 = cache.GetImageForRow(2);
60 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
78 EXPECT_NE(image2, cache.GetImageForRow(2));
79 image2 = cache.GetImageForRow(2);
85 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
100 NSImage* image2 = cache.GetImageForRow(2);
104 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
112 EXPECT_EQ(image2, cache.GetImageForRow(2));
153 NSImage* image2 = cache.GetImageForRow(2);
154 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
[all …]
/external/chromium/chrome/browser/ui/cocoa/
Dtable_row_nsimage_cache_unittest.mm55 NSImage* image2 = cache.GetImageForRow(2);
59 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
77 EXPECT_NE(image2, cache.GetImageForRow(2));
78 image2 = cache.GetImageForRow(2);
84 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
99 NSImage* image2 = cache.GetImageForRow(2);
103 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
111 EXPECT_EQ(image2, cache.GetImageForRow(2));
152 NSImage* image2 = cache.GetImageForRow(2);
153 COMPARE_SK_NS_IMG_SIZES(rows->at(2), image2);
[all …]
/external/chromium_org/chrome/browser/resources/local_ntp/
Dmost_visited_thumbnail.js68 var image2 = createAndAppendThumbnail(false);
71 image2.onerror = function() {
73 image2.style.visibility = 'hidden';
78 image2.src = data.thumbnailUrl2;
88 image2.style.visibility = 'visible';
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
DStyleImage.h76 static bool imagesEquivalent(const StyleImage* image1, const StyleImage* image2) in imagesEquivalent() argument
78 if (image1 != image2) { in imagesEquivalent()
79 if (!image1 || !image2) in imagesEquivalent()
81 return *image1 == *image2; in imagesEquivalent()
/external/skia/tests/
DSurfaceTest.cpp165 SkAutoTUnref<SkImage> image2(surface1->newImageSnapshot()); in Test_crbug263329() local
178 REPORTER_ASSERT(reporter, image4->getTexture() != image2->getTexture()); in Test_crbug263329()
180 REPORTER_ASSERT(reporter, image3->getTexture() != image2->getTexture()); in Test_crbug263329()
182 REPORTER_ASSERT(reporter, image2->getTexture() != image1->getTexture()); in Test_crbug263329()
225 SkImage* image2 = surface->newImageSnapshot(); in TestSurfaceNoCanvas()
226 SkAutoTUnref<SkImage> aur_image2(image2); in TestSurfaceNoCanvas()
227 SkDEBUGCODE(image2->validate();) in TestSurfaceNoCanvas()
229 REPORTER_ASSERT(reporter, image1 != image2); in TestSurfaceNoCanvas()
DDeferredCanvasTest.cpp125 SkAutoTUnref<SkImage> image2(canvas->newImageSnapshot()); in TestDeferredCanvasWritePixelsToSurface() local
731 SkImage* image2 = surface->newImageSnapshot(); in TestDeferredCanvasSurface() local
732 SkAutoTUnref<SkImage> aur_i2(image2); in TestDeferredCanvasSurface()
734 REPORTER_ASSERT(reporter, image1->uniqueID() == image2->uniqueID()); in TestDeferredCanvasSurface()
801 SkAutoTUnref<SkImage> image2(canvas->newImageSnapshot()); in TestDeferredCanvasSetSurface() local
802 REPORTER_ASSERT(reporter, image1->uniqueID() != image2->uniqueID()); in TestDeferredCanvasSetSurface()
/external/chromium_org/tools/imagediff/
Dimage_diff.cc335 bool CreateImageDiff(const Image& image1, const Image& image2, Image* out) { in CreateImageDiff() argument
336 int w = std::min(image1.w(), image2.w()); in CreateImageDiff()
337 int h = std::min(image1.h(), image2.h()); in CreateImageDiff()
339 bool same = (image1.w() == image2.w()) && (image1.h() == image2.h()); in CreateImageDiff()
346 if (base_pixel != image2.pixel_at(x, y)) { in CreateImageDiff()
/external/skia/gm/rebaseline_server/
Dimagediffdb.py243 def _generate_image_diff(image1, image2): argument
258 return ImageChops.difference(image1.convert('RGB'), image2.convert('RGB'))
261 repr(image1), repr(image2)))
/external/chromium_org/ui/views/controls/button/
Dimage_button_unittest.cc95 gfx::ImageSkia image2 = CreateTestImage(20, 21); in TEST_F() local
97 button.SetImage(Button::STATE_HOVERED, &image2); in TEST_F()
101 button.GetImage(Button::STATE_HOVERED).BackedBySameObjectAs(image2)); in TEST_F()
/external/chromium_org/ppapi/tests/
Dtest_graphics_2d.h47 const pp::ImageData& image2);
52 const pp::ImageData& image2,
Dtest_graphics_2d.cc133 const pp::ImageData& image2) { in CompareImages() argument
136 image2, pp::Rect(0, 0, image2.size().width(), image2.size().height())); in CompareImages()
141 const pp::ImageData& image2, in CompareImageRect() argument
149 *(image2.GetAddr32(pp::Point(rc2.x() + x, rc2.y() + y)))) in CompareImageRect()
/external/chromium/chrome/browser/ui/cocoa/tabs/
Dthrobber_view.mm93 - (id)initWithImage1:(NSImage*)image1 image2:(NSImage*)image2;
99 - (id)initWithImage1:(NSImage*)image1 image2:(NSImage*)image2 {
102 image2_.reset([image2 retain]);
104 image2Size_ = [image2 size];
303 image2:afterImage] autorelease];
/external/chromium_org/chrome/browser/ui/cocoa/tabs/
Dthrobber_view.mm94 - (id)initWithImage1:(NSImage*)image1 image2:(NSImage*)image2;
100 - (id)initWithImage1:(NSImage*)image1 image2:(NSImage*)image2 {
103 image2_.reset([image2 retain]);
105 image2Size_ = [image2 size];
304 image2:afterImage] autorelease];
/external/chromium_org/chrome/browser/ui/app_list/test/
Dfast_show_pickler_unittest.cc34 const gfx::ImageSkia& image2) { in CompareImages() argument
36 std::vector<gfx::ImageSkiaRep> reps2(image2.image_reps()); in CompareImages()
/external/opencv/cvaux/src/
Dcvcorrimages.cpp179 IplImage *image2,/* Image 2 */ in icvFindCorrForGivenPoints() argument
206 if( image1 == 0 || image2 == 0 || in icvFindCorrForGivenPoints()
223 if( image2->width != w || image2->height != h ) in icvFindCorrForGivenPoints()
309 cvCvtColor(image2,grayImage2,CV_BGR2GRAY); in icvFindCorrForGivenPoints()
/external/chromium_org/skia/ext/
Dvector_canvas_unittest.cc293 Image image2(test_file(filename)); in CompareImage() local
294 double diff = image1.PercentageDifferent(image2); in CompareImage()
413 Image image2(*pcanvas_); in ProcessImage() local
414 double diff = image1.PercentageDifferent(image2); in ProcessImage()
/external/opencv/cv/include/
Dcv.h562 CVAPI(void) cvMultiplyAcc( const CvArr* image1, const CvArr* image2, CvArr* acc, in LOAD_CHDL()