/external/chromium_org/ui/gfx/image/ |
H A D | image_skia_rep.cc | 11 ImageSkiaRep::ImageSkiaRep() : scale_(0.0f) { function in class:gfx::ImageSkiaRep 14 ImageSkiaRep::~ImageSkiaRep() { 17 ImageSkiaRep::ImageSkiaRep(const gfx::Size& size, float scale) : scale_(scale) { function in class:gfx::ImageSkiaRep 23 ImageSkiaRep::ImageSkiaRep(const SkBitmap& src, float scale) function in class:gfx::ImageSkiaRep 28 int ImageSkiaRep::GetWidth() const { 32 int ImageSkiaRep [all...] |
H A D | image_skia_source.h | 14 class ImageSkiaRep; 20 // Returns the ImageSkiaRep for the given |scale|. ImageSkia caches the 21 // returned ImageSkiaRep and calls this method only if it doesn't have 22 // ImageSkiaRep for given |scale|. There is no need for the implementation to 24 virtual gfx::ImageSkiaRep GetImageForScale(float scale) = 0;
|
H A D | image_skia_rep.h | 14 // An ImageSkiaRep represents a bitmap and the scale factor it is intended for. 15 // 0.0f scale is used to indicate that this ImageSkiaRep is used for unscaled 17 class GFX_EXPORT ImageSkiaRep { class in namespace:gfx 20 ImageSkiaRep(); 21 ~ImageSkiaRep(); 29 ImageSkiaRep(const gfx::Size& size, float scale); 33 ImageSkiaRep(const SkBitmap& src, float scale);
|
H A D | image_skia_util_ios.h | 18 class ImageSkiaRep; 23 // Converts to an ImageSkiaRep of |scale_factor| from UIImage. 26 GFX_EXPORT gfx::ImageSkiaRep ImageSkiaRepOfScaleFromUIImage( 31 // of the ImageSkiaRep in |image_skia| which most closely matches the device's 35 // Converts to UIImage from ImageSkiaRep. Returns an autoreleased UIImage. 37 const gfx::ImageSkiaRep& image_skia_rep);
|
H A D | image_skia.h | 33 // Functions that mutate the image should operate on the gfx::ImageSkiaRep 39 typedef std::vector<ImageSkiaRep> ImageSkiaReps; 54 explicit ImageSkia(const gfx::ImageSkiaRep& image_rep); 86 // the ImageSkiaRep instances that this ImageSkia currently has. 99 void AddRepresentation(const gfx::ImageSkiaRep& image_rep); 110 const gfx::ImageSkiaRep& GetRepresentation(float scale) const; 146 std::vector<gfx::ImageSkiaRep> image_reps() const; 161 void Init(const gfx::ImageSkiaRep& image_rep);
|
H A D | canvas_image_source.h | 16 class ImageSkiaRep; 20 // with target scale factor and generates ImageSkiaRep when drawing is 33 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE;
|
H A D | image_skia_operations.cc | 39 ImageSkiaRep GetErrorImageRep(float scale, const gfx::Size& pixel_size) { 43 return gfx::ImageSkiaRep(bitmap, scale); 61 virtual ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 62 ImageSkiaRep first_rep = first_.GetRepresentation(scale); 63 ImageSkiaRep second_rep = second_.GetRepresentation(scale); 67 LOG(ERROR) << "ImageSkiaRep size mismatch in " << source_name_; 75 LOG(ERROR) << "ImageSkiaRep size mismatch in " << source_name_; 86 virtual ImageSkiaRep CreateImageSkiaRep( 87 const ImageSkiaRep& first_rep, 88 const ImageSkiaRep [all...] |
H A D | canvas_image_source.cc | 20 gfx::ImageSkiaRep CanvasImageSource::GetImageForScale(float scale) {
|
H A D | image_skia_unittest.cc | 31 FixedSource(const ImageSkiaRep& image) : image_(image) {} 36 virtual ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 41 ImageSkiaRep image_; 55 virtual ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 57 return gfx::ImageSkiaRep(size_, scale); 81 virtual ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 82 return gfx::ImageSkiaRep(); 150 ImageSkiaRep image(Size(100, 200), 1.0f); 154 const ImageSkiaRep& result_100p = image_skia.GetRepresentation(1.0f); 160 const ImageSkiaRep [all...] |
H A D | image_skia.cc | 27 gfx::ImageSkiaRep& NullImageRep() { 28 CR_DEFINE_STATIC_LOCAL(ImageSkiaRep, null_image_rep, ()); 50 bool operator()(const ImageSkiaRep& rep) const { 87 std::vector<gfx::ImageSkiaRep>& image_reps() { return image_reps_; } 118 void AddRepresentation(const ImageSkiaRep& image) { 145 std::vector<ImageSkiaRep>::iterator FindRepresentation( 176 ImageSkiaRep image; 193 std::vector<ImageSkiaRep>::iterator iter = FindRepresentation( 204 image = ImageSkiaRep(skia::ImageOperations::Resize( 226 // null ImageSkiaRep wit [all...] |
H A D | image_util.cc | 30 const gfx::ImageSkiaRep& image_skia_rep = 56 const ImageSkiaRep& rep = image.GetRepresentation(1.0);
|
H A D | image.cc | 63 return new ImageSkia(ImageSkiaRep(bitmap, 1.0f)); 71 virtual ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 73 return ImageSkiaRep(); 75 const ImageSkiaRep* rep = NULL; 78 // 1) The ImageSkiaRep with the highest scale if all available 80 // 2) The ImageSkiaRep with the smallest one that is larger than |scale|. 90 return rep ? *rep : ImageSkiaRep(); 98 const gfx::ImageSkiaRep rep = ToImageSkiaRep(png_rep); 107 static ImageSkiaRep ToImageSkiaRep(const ImagePNGRep& png_rep) { 114 return ImageSkiaRep(); [all...] |
/external/chromium_org/ui/gfx/ |
H A D | skia_util.h | 22 class ImageSkiaRep; 46 const gfx::ImageSkiaRep& image_rep, 52 const gfx::ImageSkiaRep& image_rep,
|
/external/chromium_org/extensions/browser/ |
H A D | extension_icon_image.cc | 85 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE; 110 gfx::ImageSkiaRep IconImage::Source::GetImageForScale(float scale) { 111 gfx::ImageSkiaRep representation; 157 gfx::ImageSkiaRep IconImage::LoadImageForScaleFactor( 161 return gfx::ImageSkiaRep(); 200 return gfx::ImageSkiaRep(); 211 gfx::ImageSkiaRep rep = image->GetRepresentation(scale);
|
H A D | image_loader_unittest.cc | 232 std::vector<gfx::ImageSkiaRep> image_reps = 236 const gfx::ImageSkiaRep* img_rep1 = &image_reps[0]; 237 const gfx::ImageSkiaRep* img_rep2 = &image_reps[1]; 297 std::vector<gfx::ImageSkiaRep> image_reps = 305 const gfx::ImageSkiaRep* img_rep1 = &image_reps[0]; 306 const gfx::ImageSkiaRep* img_rep2 = &image_reps[1];
|
H A D | extension_icon_image.h | 85 gfx::ImageSkiaRep LoadImageForScaleFactor(ui::ScaleFactor scale_factor);
|
H A D | extension_icon_image_unittest.cc | 60 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 183 return gfx::ImageSkia(gfx::ImageSkiaRep(gfx::Size(16, 16), 1.0f)); 243 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); 305 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(2.0f); 342 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); 375 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); 415 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); 456 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); 494 gfx::ImageSkiaRep representation = image.image_skia().GetRepresentation(1.0f); 536 gfx::ImageSkiaRep representatio [all...] |
/external/chromium_org/components/favicon_base/ |
H A D | select_favicon_frames.cc | 176 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE { 177 const gfx::ImageSkiaRep* rep = NULL; 180 // 1) The ImageSkiaRep with the highest scale if all available 182 // 2) The ImageSkiaRep with the smallest one that is larger than |scale|. 186 for (std::vector<gfx::ImageSkiaRep>::const_iterator iter = 197 return rep ? *rep : gfx::ImageSkiaRep(); 200 void AddImageSkiaRep(const gfx::ImageSkiaRep& rep) { 205 std::vector<gfx::ImageSkiaRep> image_skia_reps_; 241 return gfx::ImageSkia(gfx::ImageSkiaRep(bitmaps[index], 1.0f)); 249 gfx::ImageSkiaRep(GetResizedBitma [all...] |
/external/chromium_org/chrome/browser/ |
H A D | image_holder.cc | 87 image_.AddRepresentation(gfx::ImageSkiaRep(*bitmap, 1.0)); 91 image_.AddRepresentation(gfx::ImageSkiaRep(*bitmap, 2.0));
|
H A D | icon_loader_win.cc | 64 gfx::ImageSkia image_skia(gfx::ImageSkiaRep(
|
/external/chromium_org/ui/base/cursor/ |
H A D | cursor_util.cc | 69 const gfx::ImageSkiaRep& image_rep = image->GetRepresentation(scale); 86 const gfx::ImageSkiaRep& image_rep = image->GetRepresentation(scale);
|
/external/chromium_org/chrome/browser/chromeos/login/users/avatar/ |
H A D | user_image_manager_test_util.cc | 68 new gfx::ImageSkia(gfx::ImageSkiaRep(decoded_image, 1.0f)));
|
/external/chromium_org/chrome/browser/ui/app_list/search/common/ |
H A D | url_icon_source.h | 48 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE;
|
/external/chromium_org/ash/desktop_background/ |
H A D | wallpaper_resizer_unittest.cc | 105 gfx::ImageSkia small_image(gfx::ImageSkiaRep(gfx::Size(10, 20), 1.0f)); 112 gfx::ImageSkia large_image(gfx::ImageSkiaRep(gfx::Size(1000, 1000), 1.0f));
|
/external/chromium_org/ash/drag_drop/ |
H A D | drag_image_view.cc | 122 gfx::ImageSkiaRep image_rep = GetImage().GetRepresentation(device_scale); 128 gfx::ImageSkia image_skia(gfx::ImageSkiaRep(scaled, device_scale));
|