Bug 67208 - Get rid of platform specific undefs for NO_ERROR and VERSION in GraphicsContext3D
Summary: Get rid of platform specific undefs for NO_ERROR and VERSION in GraphicsConte...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Marrin
URL:
Keywords:
Depends on:
Blocks: 66903
  Show dependency treegraph
 
Reported: 2011-08-30 10:39 PDT by Chris Marrin
Modified: 2011-09-01 07:37 PDT (History)
1 user (show)

See Also:


Attachments
Patch (10.79 KB, patch)
2011-08-30 10:41 PDT, Chris Marrin
darin: review-
webkit-ews: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Marrin 2011-08-30 10:39:08 PDT
Get rid of platform specific undefs for NO_ERROR and VERSION in GraphicsContext3D
Comment 1 Chris Marrin 2011-08-30 10:41:01 PDT
Created attachment 105649 [details]
Patch
Comment 2 Early Warning System Bot 2011-08-30 10:55:36 PDT
Comment on attachment 105649 [details]
Patch

Attachment 105649 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/9572270
Comment 3 Darin Adler 2011-08-30 11:11:27 PDT
Comment on attachment 105649 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=105649&action=review

This fails to compile. See the Qt EWS build failure. It’s because the IDL and C++ names need to match. To change the names we’d probably need a new feature in the bindings generation script.

> Source/WebCore/html/canvas/WebGLRenderingContext.idl:145
> -        const unsigned int NO_ERROR                       = 0;
> +        const unsigned int NO_ERROR                       = 0; // This is named GC3D_NO_ERROR in GraphicsContext3D to avoid clash with system defines on some platforms

I’m not sure this comment is helpful here. Don’t we have something in the IDL-generation process that requires that the C++ constant and the IDL constant have the same name and same value? I had thought we did, and I’m surprised you are not having problems compiling.

> Source/WebCore/html/canvas/WebGLRenderingContext.idl:288
> -        const unsigned int VERSION                        = 0x1F02;
> +        const unsigned int VERSION                        = 0x1F02;  // This is named GC3D_VERSION in GraphicsContext3D to avoid clash with system defines on some platforms

Ditto.