⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 126877 in webkit


Ignore:
Timestamp:
Aug 28, 2012, 8:03:30 AM (14 years ago)
Author:
zeno.albisser@nokia.com
Message:

LayerTreeCoordinatorProxy should use uint64_t for surface key.
https://bugs.webkit.org/show_bug.cgi?id=95175

GraphicsSurface tokens are of type uint64_t.
Therefore LayerTreeCoordinatorProxy must use the same type to
identify a GraphicsSurface/ShareableSurface.

Reviewed by Noam Rosenthal.

  • Shared/ShareableSurface.h:

(WebKit::ShareableSurface::Handle::graphicsSurfaceToken):

  • UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:

(WebKit::LayerTreeCoordinatorProxy::updateTileForLayer):

  • UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:

(LayerTreeCoordinatorProxy):

Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r126866 r126877  
     12012-08-28  Zeno Albisser  <zeno@webkit.org>
     2
     3        LayerTreeCoordinatorProxy should use uint64_t for surface key.
     4        https://bugs.webkit.org/show_bug.cgi?id=95175
     5
     6        GraphicsSurface tokens are of type uint64_t.
     7        Therefore LayerTreeCoordinatorProxy must use the same type to
     8        identify a GraphicsSurface/ShareableSurface.
     9
     10        Reviewed by Noam Rosenthal.
     11
     12        * Shared/ShareableSurface.h:
     13        (WebKit::ShareableSurface::Handle::graphicsSurfaceToken):
     14        * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
     15        (WebKit::LayerTreeCoordinatorProxy::updateTileForLayer):
     16        * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
     17        (LayerTreeCoordinatorProxy):
     18
    1192012-08-28  Ryuan Choi  <ryuan.choi@samsung.com>
    220
  • trunk/Source/WebKit2/Shared/ShareableSurface.h

    r125773 r126877  
    5656
    5757#if USE(GRAPHICS_SURFACE)
    58         uint32_t graphicsSurfaceToken() const { return m_graphicsSurfaceToken; }
     58        uint64_t graphicsSurfaceToken() const { return m_graphicsSurfaceToken; }
    5959#endif
    6060
  • trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp

    r126837 r126877  
    6767    RefPtr<ShareableSurface> surface;
    6868#if USE(GRAPHICS_SURFACE)
    69     int token = updateInfo.surfaceHandle.graphicsSurfaceToken();
     69    uint64_t token = updateInfo.surfaceHandle.graphicsSurfaceToken();
    7070    if (token) {
    71         HashMap<uint32_t, RefPtr<ShareableSurface> >::iterator it = m_surfaces.find(token);
     71        HashMap<uint64_t, RefPtr<ShareableSurface> >::iterator it = m_surfaces.find(token);
    7272        if (it == m_surfaces.end()) {
    7373            surface = ShareableSurface::create(updateInfo.surfaceHandle);
  • trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h

    r125773 r126877  
    8989    WebCore::FloatPoint m_lastSentTrajectoryVector;
    9090#if USE(GRAPHICS_SURFACE)
    91     HashMap<uint32_t, RefPtr<ShareableSurface> > m_surfaces;
     91    HashMap<uint64_t, RefPtr<ShareableSurface> > m_surfaces;
    9292#endif
    9393};
Note: See TracChangeset for help on using the changeset viewer.