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

Unified Diff: Source/core/loader/cache/CachedImage.cpp

Issue 19393004: Allow eviction of ImageBitmaps that are created from ImageElements. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
Index: Source/core/loader/cache/CachedImage.cpp
diff --git a/Source/core/loader/cache/CachedImage.cpp b/Source/core/loader/cache/CachedImage.cpp
index 05855719bd5ceee4c9cd4997782045db1aa6a210..dc9316070d8341704fc77cf7aa6c30844e5634e5 100644
--- a/Source/core/loader/cache/CachedImage.cpp
+++ b/Source/core/loader/cache/CachedImage.cpp
@@ -402,7 +402,9 @@ void CachedImage::decodedSizeChanged(const Image* image, int delta)
void CachedImage::didDraw(const Image* image)
{
- if (!image || image != m_image)
+ // FIXME: not sure if this change is valid. Since taking a subset
+ // produces a different image, m_image != image for ImageBitmaps
Justin Novosad 2013/07/19 21:09:53 We need a better condition. Something like !m_imag
+ if (!image)
return;
double timeStamp = FrameView::currentPaintTimeStamp();

Powered by Google App Engine
This is Rietveld 408576698