| Index: Source/platform/graphics/BitmapImage.cpp
|
| diff --git a/Source/platform/graphics/BitmapImage.cpp b/Source/platform/graphics/BitmapImage.cpp
|
| index 74a69778c19efa716f4ab7dd6d08ac4a117b6fc3..7d674be144ce55f8f30640e5829cd16dfc5706e2 100644
|
| --- a/Source/platform/graphics/BitmapImage.cpp
|
| +++ b/Source/platform/graphics/BitmapImage.cpp
|
| @@ -48,6 +48,15 @@ PassRefPtr<BitmapImage> BitmapImage::create(PassRefPtr<NativeImageSkia> nativeIm
|
| return adoptRef(new BitmapImage(nativeImage, observer));
|
| }
|
|
|
| +PassRefPtr<BitmapImage> BitmapImage::createWithOrientationForTesting(PassRefPtr<NativeImageSkia> nativeImage, ImageOrientation orientation)
|
| +{
|
| + RefPtr<BitmapImage> result = create(nativeImage);
|
| + result->m_frames[0].m_orientation = orientation;
|
| + if (orientation.usesWidthAsHeight())
|
| + result->m_sizeRespectingOrientation = IntSize(result->m_size.height(), result->m_size.width());
|
| + return result.release();
|
| +}
|
| +
|
| BitmapImage::BitmapImage(ImageObserver* observer)
|
| : Image(observer)
|
| , m_currentFrame(0)
|
|
|