Searched refs:ImageSkiaRep (Results 1 - 25 of 69) sorted by relevance

123

/external/chromium_org/ui/gfx/image/
H A Dimage_skia_rep.cc11 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 Dimage_skia_source.h14 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 Dimage_skia_rep.h14 // 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 Dimage_skia_util_ios.h18 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 Dimage_skia.h33 // 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 Dcanvas_image_source.h16 class ImageSkiaRep;
20 // with target scale factor and generates ImageSkiaRep when drawing is
33 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE;
H A Dimage_skia_operations.cc39 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 Dcanvas_image_source.cc20 gfx::ImageSkiaRep CanvasImageSource::GetImageForScale(float scale) {
H A Dimage_skia_unittest.cc31 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 Dimage_skia.cc27 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 Dimage_util.cc30 const gfx::ImageSkiaRep& image_skia_rep =
56 const ImageSkiaRep& rep = image.GetRepresentation(1.0);
H A Dimage.cc63 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 Dskia_util.h22 class ImageSkiaRep;
46 const gfx::ImageSkiaRep& image_rep,
52 const gfx::ImageSkiaRep& image_rep,
/external/chromium_org/extensions/browser/
H A Dextension_icon_image.cc85 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 Dimage_loader_unittest.cc232 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 Dextension_icon_image.h85 gfx::ImageSkiaRep LoadImageForScaleFactor(ui::ScaleFactor scale_factor);
H A Dextension_icon_image_unittest.cc60 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 Dselect_favicon_frames.cc176 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 Dimage_holder.cc87 image_.AddRepresentation(gfx::ImageSkiaRep(*bitmap, 1.0));
91 image_.AddRepresentation(gfx::ImageSkiaRep(*bitmap, 2.0));
H A Dicon_loader_win.cc64 gfx::ImageSkia image_skia(gfx::ImageSkiaRep(
/external/chromium_org/ui/base/cursor/
H A Dcursor_util.cc69 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 Duser_image_manager_test_util.cc68 new gfx::ImageSkia(gfx::ImageSkiaRep(decoded_image, 1.0f)));
/external/chromium_org/chrome/browser/ui/app_list/search/common/
H A Durl_icon_source.h48 virtual gfx::ImageSkiaRep GetImageForScale(float scale) OVERRIDE;
/external/chromium_org/ash/desktop_background/
H A Dwallpaper_resizer_unittest.cc105 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 Ddrag_image_view.cc122 gfx::ImageSkiaRep image_rep = GetImage().GetRepresentation(device_scale);
128 gfx::ImageSkia image_skia(gfx::ImageSkiaRep(scaled, device_scale));

Completed in 2007 milliseconds

123