Home | History | Annotate | Download | only in image

Lines Matching defs:ImageSkia

32 // ImageSkia should be used whenever possible instead of SkBitmap.
34 // returned from ImageSkia::GetRepresentation, not on ImageSkia.
36 // ImageSkia is cheap to copy and intentionally supports copy semantics.
37 class GFX_EXPORT ImageSkia {
42 ImageSkia();
46 // ImageSkia owns |source|.
47 ImageSkia(ImageSkiaSource* source, const gfx::Size& size);
50 // at |scale| and uses its dimensions to calculate the size in DIP. ImageSkia
52 ImageSkia(ImageSkiaSource* source, float scale);
54 explicit ImageSkia(const gfx::ImageSkiaRep& image_rep);
57 ImageSkia(const ImageSkia& other);
60 ImageSkia& operator=(const ImageSkia& other);
62 ~ImageSkia();
79 static ImageSkia CreateFrom1xBitmap(const SkBitmap& bitmap);
81 // Returns true when ImageSkia looks up the resource pack with the closest
85 // Returns a deep copy of this ImageSkia which has its own storage with
86 // the ImageSkiaRep instances that this ImageSkia currently has.
92 scoped_ptr<ImageSkia> DeepCopy() const;
96 bool BackedBySameObjectAs(const gfx::ImageSkia& other) const;
112 // Make the ImageSkia instance read-only. Note that this only prevent
117 // thread. If this ImageSkia's storage will be accessed by multiple
122 // its source if any. All ImageSkia that shares the same storage will also
165 // Checks if the current thread can read/modify the ImageSkia.