OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "RenderApplet.h" | 46 #include "RenderApplet.h" |
47 #include "RenderIFrame.h" | 47 #include "RenderIFrame.h" |
48 #include "RenderImage.h" | 48 #include "RenderImage.h" |
49 #include "RenderLayerCompositor.h" | 49 #include "RenderLayerCompositor.h" |
50 #include "RenderEmbeddedObject.h" | 50 #include "RenderEmbeddedObject.h" |
51 #include "RenderVideo.h" | 51 #include "RenderVideo.h" |
52 #include "RenderView.h" | 52 #include "RenderView.h" |
53 #include "ScrollingCoordinator.h" | 53 #include "ScrollingCoordinator.h" |
54 #include "Settings.h" | 54 #include "Settings.h" |
55 #include "StyleResolver.h" | 55 #include "StyleResolver.h" |
56 #include "WebCoreMemoryInstrumentation.h" | |
57 #include <wtf/CurrentTime.h> | 56 #include <wtf/CurrentTime.h> |
58 #include <wtf/text/StringBuilder.h> | 57 #include <wtf/text/StringBuilder.h> |
59 | 58 |
60 #include "FilterEffectRenderer.h" | 59 #include "FilterEffectRenderer.h" |
61 #include "CustomFilterOperation.h" | 60 #include "CustomFilterOperation.h" |
62 | 61 |
63 #include "GraphicsContext3D.h" | 62 #include "GraphicsContext3D.h" |
64 | 63 |
65 using namespace std; | 64 using namespace std; |
66 | 65 |
(...skipping 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 | 1968 |
1970 if (m_layerForVerticalScrollbar) | 1969 if (m_layerForVerticalScrollbar) |
1971 backingMemory += m_layerForVerticalScrollbar->backingStoreMemoryEstimate
(); | 1970 backingMemory += m_layerForVerticalScrollbar->backingStoreMemoryEstimate
(); |
1972 | 1971 |
1973 if (m_layerForScrollCorner) | 1972 if (m_layerForScrollCorner) |
1974 backingMemory += m_layerForScrollCorner->backingStoreMemoryEstimate(); | 1973 backingMemory += m_layerForScrollCorner->backingStoreMemoryEstimate(); |
1975 | 1974 |
1976 return backingMemory; | 1975 return backingMemory; |
1977 } | 1976 } |
1978 | 1977 |
1979 void RenderLayerBacking::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) c
onst | |
1980 { | |
1981 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | |
1982 info.addWeakPointer(m_owningLayer); | |
1983 info.addMember(m_ancestorClippingLayer, "ancestorClippingLayer"); | |
1984 info.addMember(m_contentsContainmentLayer, "contentsContainmentLayer"); | |
1985 info.addMember(m_graphicsLayer, "graphicsLayer"); | |
1986 info.addMember(m_foregroundLayer, "foregroundLayer"); | |
1987 info.addMember(m_backgroundLayer, "backgroundLayer"); | |
1988 info.addMember(m_childContainmentLayer, "childContainmentLayer"); | |
1989 info.addMember(m_maskLayer, "maskLayer"); | |
1990 info.addMember(m_layerForHorizontalScrollbar, "layerForHorizontalScrollbar")
; | |
1991 info.addMember(m_layerForVerticalScrollbar, "layerForVerticalScrollbar"); | |
1992 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | |
1993 info.addMember(m_scrollingLayer, "scrollingLayer"); | |
1994 info.addMember(m_scrollingContentsLayer, "scrollingContentsLayer"); | |
1995 } | |
1996 | |
1997 } // namespace WebCore | 1978 } // namespace WebCore |
OLD | NEW |