/external/chromium_org/ui/gfx/image/ |
D | image.cc | 176 explicit ImageRep(Image::RepresentationType rep) : type_(rep) {} in ImageRep() 183 CHECK_EQ(type_, Image::kImageRepPNG); in AsImageRepPNG() 188 CHECK_EQ(type_, Image::kImageRepSkia); in AsImageRepSkia() 194 CHECK_EQ(type_, Image::kImageRepCocoaTouch); in AsImageRepCocoaTouch() 199 CHECK_EQ(type_, Image::kImageRepCocoa); in AsImageRepCocoa() 204 Image::RepresentationType type() const { return type_; } in type() 211 Image::RepresentationType type_; 216 ImageRepPNG() : ImageRep(Image::kImageRepPNG) { in ImageRepPNG() 220 : ImageRep(Image::kImageRepPNG), in ImageRepPNG() 266 : ImageRep(Image::kImageRepSkia), in ImageRepSkia() [all …]
|
D | image.h | 52 class GFX_EXPORT Image { 64 Image(); 68 explicit Image(const std::vector<ImagePNGRep>& image_reps); 72 explicit Image(const ImageSkia& image); 76 explicit Image(UIImage* image); 81 explicit Image(NSImage* image); 85 Image(const Image& other); 88 Image& operator=(const Image& other); 92 ~Image(); 97 static Image CreateFrom1xBitmap(const SkBitmap& bitmap); [all …]
|
D | image_unittest.cc | 45 gfx::Image image; in TEST_F() 52 gfx::Image imageCopy(image); in TEST_F() 58 gfx::Image image2(gt::CreateImageSkia(25, 25)); in TEST_F() 75 gfx::Image image1(NULL); in TEST_F() 85 gfx::Image image2(image_skia); in TEST_F() 92 gfx::Image image3(image_png_reps); in TEST_F() 104 gfx::Image image1(image_png_reps1); in TEST_F() 111 gfx::Image image2(image_png_reps2); in TEST_F() 118 gfx::Image image; in TEST_F() 123 gfx::Image image2(gt::CreateImageSkia(10, 25)); in TEST_F() [all …]
|
D | image_unittest_util.h | 38 gfx::Image CreateImage(); 39 gfx::Image CreateImage(int width, int height); 43 bool IsEqual(const gfx::Image& image1, const gfx::Image& image2); 52 void CheckImageIndicatesPNGDecodeFailure(const gfx::Image& image); 67 bool IsEmpty(const gfx::Image& image); 71 gfx::Image::RepresentationType GetPlatformRepresentationType(); 73 PlatformImage ToPlatformType(const gfx::Image& image); 74 PlatformImage CopyPlatformType(const gfx::Image& image);
|
D | image_family.h | 45 std::iterator<std::bidirectional_iterator_tag, const gfx::Image> { 83 const gfx::Image& operator*() const { 87 const gfx::Image* operator->() const { 95 const std::map<MapKey, gfx::Image>::const_iterator& other); 97 std::map<MapKey, gfx::Image>::const_iterator map_iterator_; 116 void Add(const gfx::Image& image); 128 const gfx::Image* GetBest(int width, int height) const; 137 const gfx::Image* GetBest(const gfx::Size& size) const; 150 const gfx::Image* GetWithExactAspect(float aspect, int width) const; 153 std::map<MapKey, gfx::Image> map_;
|
D | image_family.cc | 21 const std::map<MapKey, gfx::Image>::const_iterator& other) in const_iterator() 29 void ImageFamily::Add(const gfx::Image& image) { in Add() 41 Add(gfx::Image(image_skia)); in Add() 44 const gfx::Image* ImageFamily::GetBest(int width, int height) const { in GetBest() 72 std::map<MapKey, gfx::Image>::const_iterator greater_or_equal = in GetClosestAspect() 84 std::map<MapKey, gfx::Image>::const_iterator less_than = in GetClosestAspect() 106 const gfx::Image* ImageFamily::GetBest(const gfx::Size& size) const { in GetBest() 110 const gfx::Image* ImageFamily::GetWithExactAspect(float aspect, in GetWithExactAspect() 113 std::map<MapKey, gfx::Image>::const_iterator greater_or_equal = in GetWithExactAspect() 122 std::map<MapKey, gfx::Image>::const_iterator less_than = greater_or_equal; in GetWithExactAspect()
|
D | image_unittest_util.cc | 73 gfx::Image CreateImage() { in CreateImage() 77 gfx::Image CreateImage(int width, int height) { in CreateImage() 78 return gfx::Image::CreateFrom1xBitmap(CreateBitmap(width, height)); in CreateImage() 81 bool IsEqual(const gfx::Image& img1, const gfx::Image& img2) { in IsEqual() 137 void CheckImageIndicatesPNGDecodeFailure(const gfx::Image& image) { in CheckImageIndicatesPNGDecodeFailure() 172 bool IsEmpty(const gfx::Image& image) { in IsEmpty() 198 gfx::Image::RepresentationType GetPlatformRepresentationType() { in GetPlatformRepresentationType() 200 return gfx::Image::kImageRepCocoaTouch; in GetPlatformRepresentationType() 202 return gfx::Image::kImageRepCocoa; in GetPlatformRepresentationType() 204 return gfx::Image::kImageRepSkia; in GetPlatformRepresentationType() [all …]
|
/external/pdfium/core/src/fxge/Microsoft SDK/include/ |
D | GdiPlusBitmap.h | 29 Image::Image( in Image() function 38 Image::Image( in Image() function 46 inline Image* 47 Image::FromFile( in FromFile() 51 return new Image(filename); in FromFile() 54 inline Image* 55 Image::FromStream( in FromStream() 59 return new Image(stream); in FromStream() 65 Image::Image( in Image() function 88 Image::Image( in Image() function [all …]
|
/external/chromium_org/chrome/browser/profiles/ |
D | profile_avatar_icon_util_unittest.cc | 19 void VerifyScaling(gfx::Image& image, gfx::Size& size) { in VerifyScaling() 37 const gfx::Image& profile_image( in TEST() 39 gfx::Image result = in TEST() 46 gfx::Image rect_picture(gfx::test::CreateImage()); in TEST() 49 gfx::Image result2 = profiles::GetSizedAvatarIcon( in TEST() 57 const gfx::Image& profile_image( in TEST() 59 gfx::Image result = profiles::GetAvatarIconForMenu(profile_image, false); in TEST() 64 gfx::Image rect_picture(gfx::test::CreateImage()); in TEST() 66 gfx::Image result2 = profiles::GetAvatarIconForMenu(rect_picture, true); in TEST() 73 const gfx::Image& profile_image( in TEST() [all …]
|
D | profile_avatar_icon_util.h | 17 class Image; variable 72 gfx::Image GetSizedAvatarIcon(const gfx::Image& image, 77 gfx::Image GetAvatarIconForMenu(const gfx::Image& image, 81 gfx::Image GetAvatarIconForWebUI(const gfx::Image& image, 86 gfx::Image GetAvatarIconForTitleBar(const gfx::Image& image,
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | Image.cpp | 49 Image::Image(ImageObserver* observer) in Image() function in blink::Image 54 Image::~Image() in ~Image() 58 Image* Image::nullImage() in nullImage() 61 DEFINE_STATIC_REF(Image, nullImage, (BitmapImage::create())); in nullImage() 65 PassRefPtr<Image> Image::loadPlatformResource(const char *name) in loadPlatformResource() 69 return Image::nullImage(); in loadPlatformResource() 71 RefPtr<Image> image = BitmapImage::create(); in loadPlatformResource() 76 bool Image::supportsType(const String& type) in supportsType() 81 bool Image::setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) in setData() 94 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color,… in fillWithSolidColor() [all …]
|
D | ImageObserver.h | 33 class Image; variable 42 virtual void decodedSizeChanged(const Image*, int delta) = 0; 43 virtual void didDraw(const Image*) = 0; 45 virtual bool shouldPauseAnimation(const Image*) = 0; 46 virtual void animationAdvanced(const Image*) = 0; 48 virtual void changedInRect(const Image*, const IntRect&) = 0;
|
D | CrossfadeGeneratedImage.h | 39 …static PassRefPtr<CrossfadeGeneratedImage> create(Image* fromImage, Image* toImage, float percenta… in create() 58 …CrossfadeGeneratedImage(Image* fromImage, Image* toImage, float percentage, IntSize crossfadeSize,… 63 Image* m_fromImage; 64 Image* m_toImage;
|
D | Image.h | 56 class PLATFORM_EXPORT Image : public RefCounted<Image> { 63 virtual ~Image(); 65 static PassRefPtr<Image> loadPlatformResource(const char* name); 76 static Image* nullImage(); 118 virtual PassRefPtr<Image> imageForDefaultFrame(); 129 Image(ImageObserver* = 0); 150 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##typeName())
|
/external/chromium_org/printing/ |
D | image.h | 26 class PRINTING_EXPORT Image { 31 explicit Image(const base::FilePath& path); 35 explicit Image(const Metafile& metafile); 38 explicit Image(const Image& image); 40 ~Image(); 53 double PercentageDifferent(const Image& rhs) const; 74 Image(const void* data, size_t size); 96 Image& operator=(const Image& image);
|
D | image.cc | 20 Image::Image(const base::FilePath& path) in Image() function in printing::Image 40 Image::Image(const Metafile& metafile) in Image() function in printing::Image 46 Image::Image(const Image& image) in Image() function in printing::Image 53 Image::~Image() {} in ~Image() 55 std::string Image::checksum() const { in checksum() 61 bool Image::SaveToPng(const base::FilePath& filepath) const { in SaveToPng() 83 double Image::PercentageDifferent(const Image& rhs) const { in PercentageDifferent() 140 bool Image::LoadPng(const std::string& compressed) { in LoadPng() 151 bool Image::LoadMetafile(const std::string& data) { in LoadMetafile()
|
/external/chromium_org/third_party/WebKit/Source/core/fetch/ |
D | ImageResource.h | 51 ImageResource(blink::Image*); 53 ImageResource(const ResourceRequest&, blink::Image*); 58 blink::Image* image(); // Returns the nullImage() if the image is not available yet. 59 …blink::Image* imageForRenderer(const RenderObject*); // Returns the nullImage() if the image is no… 63 …static std::pair<blink::Image*, float> brokenImage(float deviceScaleFactor); // Returns an image a… 105 virtual void decodedSizeChanged(const blink::Image*, int delta) OVERRIDE; 106 virtual void didDraw(const blink::Image*) OVERRIDE; 108 virtual bool shouldPauseAnimation(const blink::Image*) OVERRIDE; 109 virtual void animationAdvanced(const blink::Image*) OVERRIDE; 110 virtual void changedInRect(const blink::Image*, const IntRect&) OVERRIDE; [all …]
|
D | ImageResource.cpp | 46 : Resource(resourceRequest, Image) in ImageResource() 57 ImageResource::ImageResource(blink::Image* image) in ImageResource() 58 : Resource(ResourceRequest(""), Image) in ImageResource() 67 ImageResource::ImageResource(const ResourceRequest& resourceRequest, blink::Image* image) in ImageResource() 68 : Resource(resourceRequest, Image) in ImageResource() 161 pair<blink::Image*, float> ImageResource::brokenImage(float deviceScaleFactor) in brokenImage() 164 …DEFINE_STATIC_REF(blink::Image, brokenImageHiRes, (blink::Image::loadPlatformResource("missingImag… in brokenImage() 168 …DEFINE_STATIC_REF(blink::Image, brokenImageLoRes, (blink::Image::loadPlatformResource("missingImag… in brokenImage() 177 blink::Image* ImageResource::image() in image() 191 return blink::Image::nullImage(); in image() [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderMediaControls.cpp | 40 typedef WTF::HashMap<const char*, Image*> MediaControlImageMap; 43 static Image* platformResource(const char* name) in platformResource() 47 if (Image* image = gMediaControlImageMap->get(name)) in platformResource() 49 if (Image* image = Image::loadPlatformResource(name).leakRef()) { in platformResource() 63 static bool paintMediaButton(GraphicsContext* context, const IntRect& rect, Image* image) in paintMediaButton() 75 static Image* soundLevel3 = platformResource("mediaplayerSoundLevel3"); in paintMediaMuteButton() 76 static Image* soundLevel2 = platformResource("mediaplayerSoundLevel2"); in paintMediaMuteButton() 77 static Image* soundLevel1 = platformResource("mediaplayerSoundLevel1"); in paintMediaMuteButton() 78 static Image* soundLevel0 = platformResource("mediaplayerSoundLevel0"); in paintMediaMuteButton() 79 static Image* soundDisabled = platformResource("mediaplayerSoundDisabled"); in paintMediaMuteButton() [all …]
|
/external/chromium_org/components/enhanced_bookmarks/ |
D | image_store_unittest.cc | 18 gfx::Image CreateImage(int width, int height, int a, int r, int g, int b) { in CreateImage() 22 gfx::Image image(gfx::Image::CreateFrom1xBitmap(bitmap)); in CreateImage() 32 gfx::Image GenerateWhiteImage() { in GenerateWhiteImage() 36 gfx::Image GenerateBlackImage(int width, int height) { in GenerateBlackImage() 40 gfx::Image GenerateBlackImage() { in GenerateBlackImage() 45 bool CompareImages(const gfx::Image& image_1, const gfx::Image& image_2) { in CompareImages() 140 gfx::Image src_image = GenerateBlackImage(42, 24); in TYPED_TEST() 145 std::pair<gfx::Image, GURL> image_info = this->store_->Get(url); in TYPED_TEST() 155 gfx::Image src_image = GenerateBlackImage(); in TYPED_TEST() 183 gfx::Image src_image1 = GenerateWhiteImage(); in TYPED_TEST() [all …]
|
/external/chromium_org/ui/wm/core/ |
D | image_grid_unittest.cc | 18 gfx::Image* CreateImage(const gfx::Size& size) { in CreateImage() 21 return new gfx::Image(gfx::ImageSkia::CreateFrom1xBitmap(bitmap)); in CreateImage() 34 scoped_ptr<gfx::Image> image_1x1(CreateImage(gfx::Size(1, 1))); in TEST_F() 35 scoped_ptr<gfx::Image> image_1xB(CreateImage(gfx::Size(1, kBorder))); in TEST_F() 36 scoped_ptr<gfx::Image> image_Bx1(CreateImage(gfx::Size(kBorder, 1))); in TEST_F() 37 scoped_ptr<gfx::Image> image_BxB(CreateImage(gfx::Size(kBorder, kBorder))); in TEST_F() 126 scoped_ptr<gfx::Image> image_1x1(CreateImage(gfx::Size(1, 1))); in TEST_F() 127 scoped_ptr<gfx::Image> image_1xB(CreateImage(gfx::Size(1, kBorder))); in TEST_F() 128 scoped_ptr<gfx::Image> image_Bx1(CreateImage(gfx::Size(kBorder, 1))); in TEST_F() 129 scoped_ptr<gfx::Image> image_BxB(CreateImage(gfx::Size(kBorder, kBorder))); in TEST_F() [all …]
|
D | image_grid.h | 19 class Image; variable 112 void SetImages(const gfx::Image* top_left_image, 113 const gfx::Image* top_image, 114 const gfx::Image* top_right_image, 115 const gfx::Image* left_image, 116 const gfx::Image* center_image, 117 const gfx::Image* right_image, 118 const gfx::Image* bottom_left_image, 119 const gfx::Image* bottom_image, 120 const gfx::Image* bottom_right_image); [all …]
|
/external/chromium_org/ui/message_center/ |
D | notification.h | 31 gfx::Image icon; 46 gfx::Image image; 47 gfx::Image small_image; 61 const gfx::Image& icon, 128 const gfx::Image& icon() const { return icon_; } in icon() 129 void set_icon(const gfx::Image& icon) { icon_ = icon; } in set_icon() 131 const gfx::Image& image() const { return optional_fields_.image; } in image() 132 void set_image(const gfx::Image& image) { optional_fields_.image = image; } in set_image() 134 const gfx::Image& small_image() const { return optional_fields_.small_image; } in small_image() 135 void set_small_image(const gfx::Image& image) { in set_small_image() [all …]
|
/external/chromium_org/tools/imagediff/ |
D | image_diff.cc | 51 class Image { class 53 Image() : w_(0), h_(0) { in Image() function in Image 56 Image(const Image& image) in Image() function in Image 147 float PercentageDifferent(const Image& baseline, const Image& actual) { in PercentageDifferent() 181 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) { in HistogramPercentageDifferent() 256 Image actual_image; in CompareImages() 257 Image baseline_image; in CompareImages() 335 bool CreateImageDiff(const Image& image1, const Image& image2, Image* out) { in CreateImageDiff() 338 *out = Image(image1); in CreateImageDiff() 364 Image actual_image; in DiffImages() [all …]
|
/external/chromium_org/ui/snapshot/ |
D | snapshot_aura_unittest.cc | 59 size_t GetFailedPixelsCountWithScaleFactor(const gfx::Image& image, in GetFailedPixelsCountWithScaleFactor() 76 size_t GetFailedPixelsCount(const gfx::Image& image) { in GetFailedPixelsCount() 127 gfx::Image GrabSnapshotForTestWindow() { in GrabSnapshotForTestWindow() 153 return gfx::Image(); in GrabSnapshotForTestWindow() 163 image_ = gfx::Image::CreateFrom1xPNGBytes(&(png_data->data()[0]), in SnapshotCallback() 170 const gfx::Image& image() const { return image_; } in image() 177 gfx::Image image_; 193 gfx::Image snapshot = GrabSnapshotForTestWindow(); in TEST_F() 204 gfx::Image snapshot = GrabSnapshotForTestWindow(); in TEST_F() 216 gfx::Image snapshot = GrabSnapshotForTestWindow(); in TEST_F() [all …]
|