Title: [151353] trunk/Source/WebKit2
- Revision
- 151353
- Author
- [email protected]
- Date
- 2013-06-08 23:36:47 -0700 (Sat, 08 Jun 2013)
Log Message
[Coordinated Graphics] Pass the ownership of GraphicsSurface explicitly
https://bugs.webkit.org/show_bug.cgi?id=117379
Patch by Jae Hyun Park <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (151352 => 151353)
--- trunk/Source/WebKit2/ChangeLog 2013-06-09 05:38:48 UTC (rev 151352)
+++ trunk/Source/WebKit2/ChangeLog 2013-06-09 06:36:47 UTC (rev 151353)
@@ -1,3 +1,16 @@
+2013-06-08 Jae Hyun Park <[email protected]>
+
+ [Coordinated Graphics] Pass the ownership of GraphicsSurface explicitly
+ https://bugs.webkit.org/show_bug.cgi?id=117379
+
+ 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):
+
2013-06-07 Anders Carlsson <[email protected]>
Coalesce multiple calls to WebPageProxy::windowAndViewFramesChanged
Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp (151352 => 151353)
--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp 2013-06-09 05:38:48 UTC (rev 151352)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp 2013-06-09 06:36:47 UTC (rev 151353)
@@ -156,7 +156,7 @@
surfaceFlags |= GraphicsSurface::SupportsAlpha;
RefPtr<GraphicsSurface> surface = GraphicsSurface::create(handle.m_size, surfaceFlags, handle.m_graphicsSurfaceToken);
if (surface)
- return adoptRef(new WebCoordinatedSurface(handle.m_size, handle.m_flags, PassRefPtr<GraphicsSurface>(surface)));
+ return adoptRef(new WebCoordinatedSurface(handle.m_size, handle.m_flags, surface.release()));
}
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes