Changeset 262898 in webkit


Ignore:
Timestamp:
Jun 11, 2020 1:09:33 AM (4 years ago)
Author:
svillar@igalia.com
Message:

[WebXR] Pass an unsigned long to cancelAnimationCallback() as handle
https://bugs.webkit.org/show_bug.cgi?id=212529

Reviewed by Youenn Fablet.

The type of the handle returned by XRSession::requestAnimationFrame() was recently changed
to unsigned long from long as there was no point in using signed integers for that. However
we forgot to update the cancelAnimationFrame() in the specs as well as it receives the handle
returned by requestAnimationFrame().

We landed https://github.com/immersive-web/webxr/pull/1069 in the WebXR specs so we can now
safely also replace signed by unsigned integers in our implementation.

No new tests as there is no change in functionality.

Reland r262718.

  • Modules/webxr/WebXRSession.cpp:

(WebCore::WebXRSession::cancelAnimationFrame): Use unsigned ids.

  • Modules/webxr/WebXRSession.h: Ditto.
  • Modules/webxr/WebXRSession.idl: Ditto.
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r262897 r262898  
     12020-06-10  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [WebXR] Pass an unsigned long to cancelAnimationCallback() as handle
     4        https://bugs.webkit.org/show_bug.cgi?id=212529
     5
     6        Reviewed by Youenn Fablet.
     7
     8        The type of the handle returned by XRSession::requestAnimationFrame() was recently changed
     9        to unsigned long from long as there was no point in using signed integers for that. However
     10        we forgot to update the cancelAnimationFrame() in the specs as well as it receives the handle
     11        returned by requestAnimationFrame().
     12
     13        We landed https://github.com/immersive-web/webxr/pull/1069 in the WebXR specs so we can now
     14        safely also replace signed by unsigned integers in our implementation.
     15
     16        No new tests as there is no change in functionality.
     17
     18        Reland r262718.
     19
     20        * Modules/webxr/WebXRSession.cpp:
     21        (WebCore::WebXRSession::cancelAnimationFrame): Use unsigned ids.
     22        * Modules/webxr/WebXRSession.h: Ditto.
     23        * Modules/webxr/WebXRSession.idl: Ditto.
     24
    1252020-06-11  Antoine Quint  <graouts@webkit.org>
    226
  • trunk/Source/WebCore/Modules/webxr/WebXRSession.cpp

    r262857 r262898  
    215215
    216216// https://immersive-web.github.io/webxr/#dom-xrsession-cancelanimationframe
    217 void WebXRSession::cancelAnimationFrame(int callbackId)
     217void WebXRSession::cancelAnimationFrame(XRFrameRequestCallback::Id callbackId)
    218218{
    219219    // 1. Let session be the target XRSession object.
  • trunk/Source/WebCore/Modules/webxr/WebXRSession.h

    r262857 r262898  
    7575
    7676    XRFrameRequestCallback::Id requestAnimationFrame(Ref<XRFrameRequestCallback>&&);
    77     void cancelAnimationFrame(int handle);
     77    void cancelAnimationFrame(XRFrameRequestCallback::Id handle);
    7878
    7979    void end(EndPromise&&);
  • trunk/Source/WebCore/Modules/webxr/WebXRSession.idl

    r262857 r262898  
    4444
    4545    unsigned long requestAnimationFrame(XRFrameRequestCallback callback);
    46     void cancelAnimationFrame(long handle);
     46    void cancelAnimationFrame(unsigned long handle);
    4747
    4848    Promise<void> end();
Note: See TracChangeset for help on using the changeset viewer.