Searched refs:ns_image (Results 1 – 6 of 6) sorted by relevance
18 // Returns true if the structure of |ns_image| matches the structure21 // - |ns_image| is not nil.22 // - |ns_image| has NSImageReps of |scales|.23 // - Each of the NSImageReps has a pixel size of [|ns_image| size] *26 NSImage* ns_image,30 if (!ns_image ||31 [ns_image size].width != width ||32 [ns_image size].height != height ||33 [ns_image representations].count != scales.size()) {40 for (size_t j = 0; j < [ns_image representations].count; ++j) {[all …]
474 NSImage* ns_image; in TEST_F() local478 ns_image = image.CopyNSImage(); in TEST_F()481 EXPECT_TRUE(ns_image); in TEST_F()482 base::mac::NSObjectRelease(ns_image); in TEST_F()
68 NSImage* ns_image = gfx::SkBitmapToNSImage(*image.bitmap());69 if (ns_image)70 [item() setImage:ns_image];76 NSImage* ns_image = gfx::SkBitmapToNSImage(*image.bitmap());77 if (ns_image)78 [item() setAlternateImage:ns_image];
44 NSImage* ns_image = [GetButton(browser_, index) image];45 // gfx::Image takes ownership of the |ns_image| reference. We have to increase46 // the ref count so |ns_image| stays around when the image object is48 base::mac::NSObjectRetain(ns_image);49 return gfx::Image(ns_image);
120 base::scoped_nsobject<NSImage> ns_image;129 if (!ns_image.get()) {130 ns_image.reset([[NSImage alloc] initWithData:ns_data]);134 [ns_image addRepresentation:image_rep];138 if (!ns_image.get()) {144 image = gfx::Image(ns_image.release());
28 NSImage* ns_image = image.ToNSImage();29 [ns_image lockFocus];31 [ns_image unlockFocus];