Changeset 109781 in webkit
- Timestamp:
- Mar 5, 2012 12:05:43 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109779 r109781 1 2012-03-05 Dana Jansens <danakj@chromium.org> 2 3 [chromium] Remove old cleanupResources() code 4 https://bugs.webkit.org/show_bug.cgi?id=80290 5 6 Reviewed by Adrienne Walker. 7 8 cleanupResources() is only called by destructors, and adds no 9 value, any more, beyond the destructors themselves, but complicates 10 the code path. 11 12 Covered by existing tests. 13 14 * platform/graphics/chromium/cc/CCLayerImpl.cpp: 15 * platform/graphics/chromium/cc/CCLayerImpl.h: 16 (CCLayerImpl): 17 * platform/graphics/chromium/cc/CCPluginLayerImpl.cpp: 18 (WebCore::CCPluginLayerImpl::~CCPluginLayerImpl): 19 * platform/graphics/chromium/cc/CCPluginLayerImpl.h: 20 * platform/graphics/chromium/cc/CCRenderSurface.cpp: 21 (WebCore::CCRenderSurface::~CCRenderSurface): 22 * platform/graphics/chromium/cc/CCRenderSurface.h: 23 (CCRenderSurface): 24 * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp: 25 (WebCore::CCVideoLayerImpl::~CCVideoLayerImpl): 26 1 27 2012-03-05 Sami Kyostila <skyostil@chromium.org> 2 28 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerImpl.cpp
r109466 r109781 195 195 } 196 196 197 void CCLayerImpl::cleanupResources()198 {199 if (renderSurface())200 renderSurface()->cleanupResources();201 }202 203 197 const IntRect CCLayerImpl::getDrawRect() const 204 198 { -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerImpl.h
r109466 r109781 98 98 bool descendantDrawsContent(); 99 99 100 void cleanupResources();101 102 100 void setAnchorPoint(const FloatPoint&); 103 101 const FloatPoint& anchorPoint() const { return m_anchorPoint; } -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCPluginLayerImpl.cpp
r106607 r109781 54 54 CCPluginLayerImpl::~CCPluginLayerImpl() 55 55 { 56 cleanupResources(); 56 // FIXME: it seems there is no layer renderer / GraphicsContext3D available here. Ideally we 57 // would like to delete m_ioSurfaceTextureId. 58 m_ioSurfaceTextureId = 0; 57 59 } 58 60 … … 112 114 } 113 115 114 void CCPluginLayerImpl::cleanupResources()115 {116 // FIXME: it seems there is no layer renderer / GraphicsContext3D available here. Ideally we117 // would like to delete m_ioSurfaceTextureId.118 m_ioSurfaceTextureId = 0;119 }120 121 116 } // namespace WebCore 122 117 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCPluginLayerImpl.h
r108886 r109781 62 62 virtual const char* layerTypeAsString() const { return "PluginLayer"; } 63 63 64 void cleanupResources();65 66 64 unsigned m_textureId; 67 65 bool m_flipped; -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurface.cpp
r109466 r109781 59 59 CCRenderSurface::~CCRenderSurface() 60 60 { 61 cleanupResources();62 }63 64 void CCRenderSurface::cleanupResources()65 {66 if (!m_contentsTexture)67 return;68 69 m_contentsTexture.clear();70 61 } 71 62 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurface.h
r108886 r109781 56 56 bool prepareContentsTexture(LayerRendererChromium*); 57 57 void releaseContentsTexture(); 58 void cleanupResources(); 58 59 59 void draw(LayerRendererChromium*, const FloatRect& surfaceDamageRect); 60 60 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp
r108675 r109781 90 90 for (unsigned i = 0; i < MaxPlanes; ++i) 91 91 m_textures[i].m_texture.clear(); 92 cleanupResources();93 92 } 94 93
Note: See TracChangeset
for help on using the changeset viewer.