<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>180914</bug_id>
          
          <creation_ts>2017-12-17 08:29:43 -0800</creation_ts>
          <short_desc>fix build with -DENABLE_OPENGL=OFF: add missing ENABLE_WEBGL conditionals</short_desc>
          <delta_ts>2019-09-28 14:00:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>enometh</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>clopez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1382595</commentid>
    <comment_count>0</comment_count>
    <who name="">enometh</who>
    <bug_when>2017-12-17 08:29:43 -0800</bug_when>
    <thetext>Building webkitgtk-2.19.3 fails with cmake -DENABLE_OPENGL=OFF fails
on certain files.  Apparently because the code is not enclosed in #if
ENABLE(WEBGL) .. #endif blocks as expected.

* Source/WebCore/html/canvas/WebGLVertexArrayObjectBase.h
* Source/WebCore/html/canvas/WebGLContextGroup.h
Eg.
     In file included from ../Source/WebCore/html/canvas/WebGLContextGroup.cpp:27:0,
       from DerivedSources/WebCore/unified-sources/UnifiedSource252.cpp:2:
    ../Source/WebCore/html/canvas/WebGLContextGroup.h:37:21: error: &apos;WebGLRenderingContextBase&apos; has not been declared
         void addContext(WebGLRenderingContextBase&amp;);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~

* Source/WebCore/html/canvas/WebGLExtension.{h,cpp}:

    In file included from ../Source/WebCore/html/canvas/OESVertexArrayObject.h:29:0,
                     from ../Source/WebCore/html/canvas/OESVertexArrayObject.cpp:27,
                     from DerivedSources/WebCore/unified-sources/UnifiedSource250.cpp:8:
    ../Source/WebCore/html/canvas/WebGLExtension.h: In member function &apos;void WebCore::WebGLExtension::ref()&apos;:
    ../Source/WebCore/html/canvas/WebGLExtension.h:60:27: error: invalid use of incomplete type &apos;class WebCore::WebGLRenderingContextBase&apos;
         void ref() { m_context.ref(); }
                ^

The attached patch outlining those fixes is against webkitgtk-2.19.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433275</commentid>
    <comment_count>1</comment_count>
      <attachid>342798</attachid>
    <who name="">enometh</who>
    <bug_when>2018-06-15 03:01:47 -0700</bug_when>
    <thetext>Created attachment 342798
tentative patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433284</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-06-15 04:43:36 -0700</bug_when>
    <thetext>The attached patch looks good to me, but it is missing ChangeLog
entries. Could you please use “Tools/Scripts/prepare-ChangeLog”
from your WebKit checkout and re-submit the patch with them added?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433287</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-06-15 04:46:24 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #2)
&gt; The attached patch looks good to me, but it is missing ChangeLog
&gt; entries. Could you please use “Tools/Scripts/prepare-ChangeLog”
&gt; from your WebKit checkout and re-submit the patch with them added?

FWIW, I have also added a couple of reviewers in CC. If you want to
get that done automatically next time, the “--suggest-reviewers” flag
can be passed to “Tools/Scripts/webkit-patch upload”.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433340</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-06-15 08:00:20 -0700</bug_when>
    <thetext>Please add one blank line above and below the guards, that&apos;s more common style in WebKit.

Other than that, it looks good. Once you add a ChangeLog, be sure to use the r? flag (to request review) and cq? flag (to request commit).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575088</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-09-28 13:59:34 -0700</bug_when>
    <thetext>This was fixed in r47452 — closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1575089</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-09-28 14:00:34 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #5)
&gt; This was fixed in r47452 — closing.

Correcting myself: it was r247452</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>342798</attachid>
            <date>2018-06-15 03:01:47 -0700</date>
            <delta_ts>2018-06-15 03:01:47 -0700</delta_ts>
            <desc>tentative patch</desc>
            <filename>opengl.diff</filename>
            <type>text/plain</type>
            <size>1339</size>
            <attacher>enometh</attacher>
            
              <data encoding="base64">LS0tIGEvU291cmNlL1dlYkNvcmUvaHRtbC9jYW52YXMvT0VTVmVydGV4QXJyYXlPYmplY3QuaAor
KysgYi9Tb3VyY2UvV2ViQ29yZS9odG1sL2NhbnZhcy9PRVNWZXJ0ZXhBcnJheU9iamVjdC5oCkBA
IC0yOCw2ICsyOCw3IEBACiAjaW5jbHVkZSAiR3JhcGhpY3NUeXBlczNELmgiCiAjaW5jbHVkZSAi
V2ViR0xFeHRlbnNpb24uaCIKIAorI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