2010-03-16 Zhenyao Mo <zmo@google.com>
authorkbr@google.com <kbr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Mar 2010 18:53:34 +0000 (18:53 +0000)
committerkbr@google.com <kbr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Mar 2010 18:53:34 +0000 (18:53 +0000)
commite751dabce35ddbc53c5f8b4b2748d91415cfdb92
treecbf187a7508fec5547ea878a8db15cb1911f520d
parent7a3c3b0c68c1f72f74573674cccdbbb9e4cd1119
2010-03-16  Zhenyao Mo  <zmo@google.com>

        Reviewed by Darin Fisher.

        Hook up WebGLContextAttributes to OpenGL context creation code
        https://bugs.webkit.org/show_bug.cgi?id=33416

        Test: fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html

        * src/GraphicsContext3D.cpp: Hook up WebGLContextAttributes to OpenGL context creation code for Windows.
2010-03-16  Zhenyao Mo  <zmo@google.com>

        Reviewed by Darin Fisher.

        Hook up WebGLContextAttributes to OpenGL context creation code
        https://bugs.webkit.org/show_bug.cgi?id=33416

        Test: fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html

        * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp: Fix an index bug.
        * platform/graphics/GraphicsContext3D.h: Add members/functions for multisampling/stencil buffer purpose.
        * platform/graphics/mac/Canvas3DLayer.h: Add GraphicsContext3D as a member of Canvas3DLayer.
        * platform/graphics/mac/Canvas3DLayer.mm: Add multisampling support.
        * platform/graphics/mac/GraphicsContext3DMac.cpp: Hook up WebGLContextAttributes to OpenGL context creation code for Mac.
        * platform/graphics/mac/GraphicsLayerCA.mm: Adjust to modified Canvas3DLayer init call.
2010-03-16  Zhenyao Mo  <zmo@google.com>

        Reviewed by Darin Fisher.

        Hook up WebGLContextAttributes to OpenGL context creation code
        https://bugs.webkit.org/show_bug.cgi?id=33416

        * fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias-expected.txt: Added.
        * fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html: Added.
        * fast/canvas/webgl/context-attributes-expected.txt: WebGL context attributes behavior changed with this fix.
        * fast/canvas/webgl/context-attributes.html: Ditto.
        * fast/canvas/webgl/gl-get-calls-expected.txt: Stencil buffer is enabled, thus Stencil Bits is no longer 0.
        * fast/canvas/webgl/gl-get-calls.html: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@56074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias-expected.txt [new file with mode: 0644]
LayoutTests/fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html [new file with mode: 0644]
LayoutTests/fast/canvas/webgl/context-attributes-expected.txt
LayoutTests/fast/canvas/webgl/context-attributes.html
LayoutTests/fast/canvas/webgl/gl-get-calls-expected.txt
LayoutTests/fast/canvas/webgl/gl-get-calls.html
WebCore/ChangeLog
WebCore/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
WebCore/platform/graphics/GraphicsContext3D.h
WebCore/platform/graphics/mac/Canvas3DLayer.h
WebCore/platform/graphics/mac/Canvas3DLayer.mm
WebCore/platform/graphics/mac/GraphicsContext3DMac.cpp
WebCore/platform/graphics/mac/GraphicsLayerCA.mm
WebKit/chromium/ChangeLog
WebKit/chromium/src/GraphicsContext3D.cpp