Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3900)

Unified Diff: Source/platform/graphics/skia/NativeImageSkia.h

Issue 170463002: Replace NativeImageSkia usage with SkBitmap in ImageFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/image-decoders/ImageFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/NativeImageSkia.h
diff --git a/Source/platform/graphics/skia/NativeImageSkia.h b/Source/platform/graphics/skia/NativeImageSkia.h
index 9b3f8f543847a334de30c55aabfaf945020ad3a5..52bf729e54d703d0e804a46cbe14e520c8482ded 100644
--- a/Source/platform/graphics/skia/NativeImageSkia.h
+++ b/Source/platform/graphics/skia/NativeImageSkia.h
@@ -101,18 +101,11 @@ public:
// resized version if there is one.
int decodedSize() const;
- // Sets the immutable flag on the bitmap, indicating that the image data
- // will not be modified any further. This is called by the image decoder
- // when all data is complete, used by us to know whether we can cache
- // resized images, and used by Skia for various optimizations.
- void setDataComplete() { m_image.setImmutable(); }
-
// Returns true if the entire image has been decoded.
bool isDataComplete() const { return m_image.isImmutable(); }
// Get reference to the internal SkBitmap representing this image.
const SkBitmap& bitmap() const { return m_image; }
- SkBitmap& bitmap() { return m_image; }
// 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
« no previous file with comments | « no previous file | Source/platform/image-decoders/ImageFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698