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

Side by Side Diff: Source/WebCore/platform/graphics/BitmapImage.cpp

Issue 13529026: Removing a bunch of unused platform code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix whitespace and compiler error on Mac. Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 Image::reportMemoryUsage(memoryObjectInfo); 581 Image::reportMemoryUsage(memoryObjectInfo);
582 info.addMember(m_source, "source"); 582 info.addMember(m_source, "source");
583 info.addMember(m_frameTimer, "frameTimer"); 583 info.addMember(m_frameTimer, "frameTimer");
584 info.addMember(m_frames, "frames"); 584 info.addMember(m_frames, "frames");
585 } 585 }
586 586
587 void FrameData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 587 void FrameData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
588 { 588 {
589 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Image); 589 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Image);
590 memoryObjectInfo->setClassName("FrameData"); 590 memoryObjectInfo->setClassName("FrameData");
591 #if OS(WINCE) && !PLATFORM(QT) 591 #if USE(SKIA)
592 info.addRawBuffer(m_frame.get(), m_frameBytes, "NativeImage", "frame");
593 #elif USE(SKIA)
594 info.addMember(m_frame, "frame", WTF::RetainingPointer); 592 info.addMember(m_frame, "frame", WTF::RetainingPointer);
595 #else 593 #else
596 info.addRawBuffer(m_frame, m_frameBytes, "NativeImage", "frame"); 594 info.addRawBuffer(m_frame, m_frameBytes, "NativeImage", "frame");
597 #endif 595 #endif
598 } 596 }
599 597
600 } 598 }
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/BitmapImage.h ('k') | Source/WebCore/platform/graphics/Color.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698