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

Unified Diff: Source/core/platform/graphics/BitmapImage.cpp

Issue 22900016: x (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/core/platform/SharedBuffer.h ('k') | Source/core/platform/image-decoders/png/PNGImageDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/BitmapImage.cpp
diff --git a/Source/core/platform/graphics/BitmapImage.cpp b/Source/core/platform/graphics/BitmapImage.cpp
index 2e326873ac85fb2ac344cd949f0ebce313c8d698..9a36d05759daffd2d25e7cb8d2a4b34b04abfcfb 100644
--- a/Source/core/platform/graphics/BitmapImage.cpp
+++ b/Source/core/platform/graphics/BitmapImage.cpp
@@ -113,6 +113,7 @@ bool BitmapImage::hasSingleSecurityOrigin() const
void BitmapImage::destroyDecodedData()
{
+ TRACE_EVENT2("webkit", "destroyDecodedData", "debug", debug(data()), "currentFrame", (int)m_currentFrame);
for (size_t i = 0; i < m_frames.size(); ++i) {
// The underlying frame isn't actually changing (we're just trying to
// save the memory for the framebuffer data), so we don't need to clear
@@ -371,6 +372,7 @@ bool BitmapImage::ensureFrameIsCached(size_t index)
PassRefPtr<NativeImageSkia> BitmapImage::frameAtIndex(size_t index)
{
+ TRACE_EVENT2("webkit", "frameAtIndex", "debug", debug(data()), "index", (int)index);
if (!ensureFrameIsCached(index))
return 0;
return m_frames[index].m_frame;
« no previous file with comments | « Source/core/platform/SharedBuffer.h ('k') | Source/core/platform/image-decoders/png/PNGImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698