-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=68087 Patch by David Reveman <reveman@chromium.org> on 2011-09-23 Reviewed by James Robinson. Source/WebCore: Render sharp corners more correctly by adding bounding box edges to anti-aliasing shaders. Test: platform/chromium/compositing/3d-corners.html * platform/graphics/chromium/ShaderChromium.cpp: (WebCore::FragmentShaderRGBATexAlphaAA::getShaderString): (WebCore::FragmentShaderRGBATexClampAlphaAA::getShaderString): (WebCore::FragmentShaderRGBATexClampSwizzleAlphaAA::getShaderString): (WebCore::FragmentShaderRGBATexAlphaMaskAA::getShaderString): * platform/graphics/chromium/cc/CCRenderSurface.cpp: (WebCore::CCRenderSurface::drawLayer): (WebCore::CCRenderSurface::drawSurface): * platform/graphics/chromium/cc/CCRenderSurface.h: * platform/graphics/chromium/cc/CCTiledLayerImpl.cpp: (WebCore::CCTiledLayerImpl::draw): (WebCore::CCTiledLayerImpl::drawTiles): * platform/graphics/chromium/cc/CCTiledLayerImpl.h: LayoutTests: Add a test to check sharp corner rendering of CSS 3D transformed elements. * platform/chromium-gpu-linux/compositing/flat-with-transformed-child-expected.checksum: Removed. * platform/chromium-gpu-linux/compositing/flat-with-transformed-child-expected.png: Added. * platform/chromium-gpu-linux/platform/chromium/compositing/3d-corners-expected.png: Added. * platform/chromium-gpu-linux/platform/chromium/compositing/backface-visibility-transformed-expected.png: * platform/chromium-gpu-linux/platform/chromium/compositing/perpendicular-layer-sorting-expected.png: * platform/chromium/compositing/3d-corners-expected.txt: Added. * platform/chromium/compositing/3d-corners.html: Added. * platform/chromium/test_expectations.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8aaef514