summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx')
-rw-r--r--ui/gfx/image/image.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/image/image.cc b/ui/gfx/image/image.cc
index 70324b1..dac2ccc 100644
--- a/ui/gfx/image/image.cc
+++ b/ui/gfx/image/image.cc
@@ -243,7 +243,7 @@ Image::Image(const SkBitmap* bitmap)
Image::Image(const SkBitmap& bitmap)
: storage_(new internal::ImageStorage(Image::kImageRepSkia)) {
internal::ImageRepSkia* rep =
- new internal::ImageRepSkia(new ImageSkia(bitmap));
+ new internal::ImageRepSkia(new ImageSkia(new SkBitmap(bitmap)));
AddRepresentation(rep);
}