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

Unified Diff: Source/core/loader/cache/CachedResource.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/CachedResource.cpp
diff --git a/Source/core/loader/cache/CachedResource.cpp b/Source/core/loader/cache/CachedResource.cpp
index e981ad4deae249553e3ac14940b419d9f6bb82f7..74e69b40bca7ce16eb19ca2618d8d9cdb2b457c4 100644
--- a/Source/core/loader/cache/CachedResource.cpp
+++ b/Source/core/loader/cache/CachedResource.cpp
@@ -105,7 +105,7 @@ static inline bool shouldUpdateHeaderAfterRevalidation(const AtomicString& heade
DEFINE_DEBUG_ONLY_GLOBAL(RefCountedLeakCounter, cachedResourceLeakCounter, ("CachedResource"));
-CachedResource::CachedResource(const ResourceRequest& request, Type type)
+CachedResource::CachedResource(const ResourceRequest& request, Type type, DecodeCachePriority decodeCachePriority)
Justin Novosad 2013/07/19 21:09:53 No need for extra construction arg. Just initializ
: m_resourceRequest(request)
, m_responseTimestamp(currentTime())
, m_decodedDataDeletionTimer(this, &CachedResource::decodedDataDeletionTimerFired)
@@ -119,6 +119,7 @@ CachedResource::CachedResource(const ResourceRequest& request, Type type)
, m_handleCount(0)
, m_preloadCount(0)
, m_preloadResult(PreloadNotReferenced)
+ , m_decodeCachePriority(decodeCachePriority)
, m_inLiveDecodedResourcesList(false)
, m_requestedFromNetworkingLayer(false)
, m_inCache(false)
@@ -881,3 +882,4 @@ void CachedResource::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
info.addRawBuffer(m_purgeableData.get(), m_purgeableData->size(), "PurgeableData", "purgeableData");
}
}
+

Powered by Google App Engine
This is Rietveld 408576698