Home | History | Annotate | Download | only in image

Lines Matching defs:ImageSkia

60 // A helper class such that ImageSkia can be cheaply copied. ImageSkia holds a
61 // refptr instance of ImageSkiaStorage, which in turn holds all of ImageSkia's
78 ImageSkia::ImageSkiaReps::iterator it = FindRepresentation(scale, true);
120 for (ImageSkia::ImageSkiaReps::iterator it = image_reps_.begin();
149 ImageSkia::ImageSkiaReps::iterator closest_iter =
151 ImageSkia::ImageSkiaReps::iterator exact_iter =
154 for (ImageSkia::ImageSkiaReps::iterator it =
174 "An ImageSkia with the source must be accessed by the same thread.";
178 if (ImageSkia::IsDSFScalingInImageSkiaEnabled() && g_supported_scales) {
191 if (ImageSkia::IsDSFScalingInImageSkiaEnabled() &&
241 // Don't blow up even if someone else deleted the ImageSkia.
260 ImageSkia::ImageSkia() : storage_(NULL) {
263 ImageSkia::ImageSkia(ImageSkiaSource* source, const gfx::Size& size)
270 ImageSkia::ImageSkia(ImageSkiaSource* source, float scale)
279 ImageSkia::ImageSkia(const ImageSkiaRep& image_rep) {
285 ImageSkia::ImageSkia(const ImageSkia& other) : storage_(other.storage_) {
288 ImageSkia& ImageSkia::operator=(const ImageSkia& other) {
293 ImageSkia::~ImageSkia() {
297 void ImageSkia::SetSupportedScales(const std::vector<float>& supported_scales) {
305 const std::vector<float>& ImageSkia::GetSupportedScales() {
311 float ImageSkia::GetMaxSupportedScale() {
316 ImageSkia ImageSkia::CreateFrom1xBitmap(const SkBitmap& bitmap) {
317 return ImageSkia(ImageSkiaRep(bitmap, 0.0f));
320 bool ImageSkia::IsDSFScalingInImageSkiaEnabled() {
326 scoped_ptr<ImageSkia> ImageSkia::DeepCopy() const {
327 ImageSkia* copy = new ImageSkia;
329 return scoped_ptr<ImageSkia>(copy);
342 return scoped_ptr<ImageSkia>(copy);
345 bool ImageSkia::BackedBySameObjectAs(const gfx::ImageSkia& other) const {
349 void ImageSkia::AddRepresentation(const ImageSkiaRep& image_rep) {
354 // same scale so that we can guarantee that a ImageSkia instance contains only
361 // If someone is adding ImageSkia explicitly, check if we should
367 void ImageSkia::RemoveRepresentation(float scale) {
379 bool ImageSkia::HasRepresentation(float scale) const {
388 const ImageSkiaRep& ImageSkia::GetRepresentation(float scale) const {
401 void ImageSkia::SetReadOnly() {
407 void ImageSkia::MakeThreadSafe() {
417 bool ImageSkia::IsThreadSafe() const {
421 int ImageSkia::width() const {
425 gfx::Size ImageSkia::size() const {
429 int ImageSkia::height() const {
433 std::vector<ImageSkiaRep> ImageSkia::image_reps() const {
452 void ImageSkia::EnsureRepsForSupportedScales() const {
455 // even for read only ImageSkia. Concurrent access will be protected
464 void ImageSkia::Init(const ImageSkiaRep& image_rep) {
475 SkBitmap& ImageSkia::GetBitmap() const {
494 bool ImageSkia::CanRead() const {
498 bool ImageSkia::CanModify() const {
502 void ImageSkia::DetachStorageFromThread() {