OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |