Changeset 151353 in webkit


Ignore:
Timestamp:
Jun 8, 2013 11:36:47 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Coordinated Graphics] Pass the ownership of GraphicsSurface explicitly
https://bugs.webkit.org/show_bug.cgi?id=117379

Patch by Jae Hyun Park <jae.park@company100.net> on 2013-06-08
Reviewed by Noam Rosenthal.

When creating WebCoordinatedSurface with GraphicsSurface, it is clearer
to pass the ownership of the created GraphicsSurface explicitly.

  • Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:

(WebKit::WebCoordinatedSurface::create):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r151344 r151353  
     12013-06-08  Jae Hyun Park  <jae.park@company100.net>
     2
     3        [Coordinated Graphics] Pass the ownership of GraphicsSurface explicitly
     4        https://bugs.webkit.org/show_bug.cgi?id=117379
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        When creating WebCoordinatedSurface with GraphicsSurface, it is clearer
     9        to pass the ownership of the created GraphicsSurface explicitly.
     10
     11        * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
     12        (WebKit::WebCoordinatedSurface::create):
     13
    1142013-06-07  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp

    r151262 r151353  
    157157        RefPtr<GraphicsSurface> surface = GraphicsSurface::create(handle.m_size, surfaceFlags, handle.m_graphicsSurfaceToken);
    158158        if (surface)
    159             return adoptRef(new WebCoordinatedSurface(handle.m_size, handle.m_flags, PassRefPtr<GraphicsSurface>(surface)));
     159            return adoptRef(new WebCoordinatedSurface(handle.m_size, handle.m_flags, surface.release()));
    160160    }
    161161#endif
Note: See TracChangeset for help on using the changeset viewer.