diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/skia/NativeImageSkia.h')
-rw-r--r-- | Source/WebCore/platform/graphics/skia/NativeImageSkia.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/skia/NativeImageSkia.h b/Source/WebCore/platform/graphics/skia/NativeImageSkia.h index ccfd0aa0c..2a52e68ee 100644 --- a/Source/WebCore/platform/graphics/skia/NativeImageSkia.h +++ b/Source/WebCore/platform/graphics/skia/NativeImageSkia.h @@ -48,7 +48,7 @@ public: // This constructor does a shallow copy of the passed-in SkBitmap (ie., it // references the same pixel data and bumps the refcount). Use only when // you want sharing semantics. - explicit NativeImageSkia(const SkBitmap&); + NativeImageSkia(const SkBitmap&, float resolutionScale); // Returns the number of bytes of image data. This includes the cached // resized version if there is one. @@ -67,6 +67,8 @@ public: const SkBitmap& bitmap() const { return m_image; } SkBitmap& bitmap() { return m_image; } + float resolutionScale() const { return m_resolutionScale; } + // We can keep a resized version of the bitmap cached on this object. // This function will return true if there is a cached version of the // given image subset with the given dimensions and subsets. @@ -123,6 +125,7 @@ private: // The original image. SkBitmap m_image; + float m_resolutionScale; // The cached bitmap. This will be empty() if there is no cached image. mutable SkBitmap m_resizedImage; |