Changeset 84546 in webkit
- Timestamp:
- Apr 21, 2011 2:22:27 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84545 r84546 1 2011-04-21 Nat Duca <nduca@chromium.org> 2 3 Reviewed by James Robinson. 4 5 [chromium] Fix artefacts in compositor HUD when resizing 6 https://bugs.webkit.org/show_bug.cgi?id=58969 7 8 HUD was using the tiler program and not setting the texture 9 transform. The HUD would thus draw with a texture transform based 10 on the last tile drawn, leading sometimes to distortion. 11 12 * platform/graphics/chromium/LayerRendererChromium.cpp: 13 (WebCore::LayerRendererChromium::initializeSharedObjects): 14 (WebCore::LayerRendererChromium::cleanupSharedObjects): 15 * platform/graphics/chromium/LayerRendererChromium.h: 16 (WebCore::LayerRendererChromium::headsUpDisplayProgram): 17 * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp: 18 (WebCore::CCHeadsUpDisplay::draw): 19 * platform/graphics/chromium/cc/CCHeadsUpDisplay.h: 20 1 21 2011-04-21 Mike Reed <reed@google.com> 2 22 -
trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
r84101 r84546 986 986 m_sharedGeometry = adoptPtr(new GeometryBinding(m_context.get())); 987 987 m_borderProgram = adoptPtr(new LayerChromium::BorderProgram(m_context.get())); 988 m_headsUpDisplayProgram = adoptPtr(new CCHeadsUpDisplay::Program(m_context.get())); 988 989 m_canvasLayerProgram = adoptPtr(new CCCanvasLayerImpl::Program(m_context.get())); 989 990 m_videoLayerRGBAProgram = adoptPtr(new CCVideoLayerImpl::RGBAProgram(m_context.get())); … … 996 997 if (!m_sharedGeometry->initialized() || !m_borderProgram->initialized() 997 998 || !m_canvasLayerProgram->initialized() 999 || !m_headsUpDisplayProgram->initialized() 998 1000 || !m_videoLayerRGBAProgram->initialized() || !m_videoLayerYUVProgram->initialized() 999 1001 || !m_pluginLayerProgram->initialized() || !m_renderSurfaceProgram->initialized() … … 1015 1017 m_borderProgram.clear(); 1016 1018 m_canvasLayerProgram.clear(); 1019 m_headsUpDisplayProgram.clear(); 1017 1020 m_videoLayerRGBAProgram.clear(); 1018 1021 m_videoLayerYUVProgram.clear(); -
trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.h
r84101 r84546 111 111 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get(); } 112 112 const LayerChromium::BorderProgram* borderProgram() const { return m_borderProgram.get(); } 113 const CCHeadsUpDisplay::Program* headsUpDisplayProgram() const { return m_headsUpDisplayProgram.get(); } 113 114 const RenderSurfaceChromium::Program* renderSurfaceProgram() const { return m_renderSurfaceProgram.get(); } 114 115 const RenderSurfaceChromium::MaskProgram* renderSurfaceMaskProgram() const { return m_renderSurfaceMaskProgram.get(); } … … 206 207 OwnPtr<GeometryBinding> m_sharedGeometry; 207 208 OwnPtr<LayerChromium::BorderProgram> m_borderProgram; 209 OwnPtr<CCHeadsUpDisplay::Program> m_headsUpDisplayProgram; 208 210 OwnPtr<RenderSurfaceChromium::Program> m_renderSurfaceProgram; 209 211 OwnPtr<RenderSurfaceChromium::MaskProgram> m_renderSurfaceMaskProgram; -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp
r83944 r84546 33 33 #include "GraphicsContext3D.h" 34 34 #include "LayerChromium.h" 35 #include "LayerRendererChromium.h" 35 36 #include "LayerTexture.h" 36 37 #include "TextRun.h" … … 110 111 111 112 // Draw the HUD onto the default render surface. 112 const LayerTilerChromium::Program* program = m_layerRenderer->tilerProgram();113 const Program* program = m_layerRenderer->headsUpDisplayProgram(); 113 114 ASSERT(program && program->initialized()); 114 115 GLC(context, context->activeTexture(GraphicsContext3D::TEXTURE0)); -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCHeadsUpDisplay.h
r83944 r84546 29 29 30 30 #include "Font.h" 31 #include " LayerRendererChromium.h"32 31 #include "ProgramBinding.h" 32 #include "ShaderChromium.h" 33 33 34 34 namespace WebCore { … … 36 36 class GeometryBinding; 37 37 class GraphicsContext3D; 38 class LayerRendererChromium; 39 class LayerTexture; 38 40 39 41 // Class that handles drawing of composited render layers using GL. … … 58 60 bool enabled() const { return m_showPlatformLayerTree || m_showFPSCounter; } 59 61 void draw(); 62 63 typedef ProgramBinding<VertexShaderPosTex, FragmentShaderBGRATexAlpha> Program; 60 64 61 65 private:
Note: See TracChangeset
for help on using the changeset viewer.