Bug 184533

Summary: [GStreamer] Convert GStreamerUtilities in GStreamerCommon and include the GStreamer smart pointer traits
Product: WebKit Reporter: Xabier Rodríguez Calvar <calvaris>
Component: New BugsAssignee: Xabier Rodríguez Calvar <calvaris>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cgarcia, commit-queue, eric.carlson, mcatanzaro, pnormand, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Xabier Rodríguez Calvar
Reported 2018-04-12 05:12:43 PDT
[GStreamer] Convert GStreamerUtilities in GStreamerCommon and include the GStreamer smart pointer traits
Attachments
Patch (58.78 KB, patch)
2018-04-12 05:19 PDT, Xabier Rodríguez Calvar
no flags
Patch (58.76 KB, patch)
2018-04-13 01:03 PDT, Xabier Rodríguez Calvar
no flags
Xabier Rodríguez Calvar
Comment 1 2018-04-12 05:19:38 PDT
Carlos Garcia Campos
Comment 2 2018-04-12 05:26:47 PDT
Comment on attachment 337789 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=337789&action=review > Source/WebCore/ChangeLog:13 > + Why the rename? I'm not sure I get the new name Common, common to what? > Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:24 > +#include "GStreamerCommon.h" The header is already guarded, so it can be moved right after config.h as suggested by the style guidelines.
Xabier Rodríguez Calvar
Comment 3 2018-04-13 00:01:49 PDT
(In reply to Carlos Garcia Campos from comment #2) > Why the rename? I'm not sure I get the new name Common, common to what? Because I want to include the smart pointer headers there and that way is no longer a utility file, but something highly recommendable. > > Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:24 > > +#include "GStreamerCommon.h" > > The header is already guarded, so it can be moved right after config.h as > suggested by the style guidelines. The style checker didn't mention it :/ Could I fix this during landing if you find the rest ok?
Carlos Garcia Campos
Comment 4 2018-04-13 00:21:05 PDT
(In reply to Xabier Rodríguez Calvar from comment #3) > (In reply to Carlos Garcia Campos from comment #2) > > Why the rename? I'm not sure I get the new name Common, common to what? > > Because I want to include the smart pointer headers there and that way is no > longer a utility file, but something highly recommendable. And smart pointers are not utilities? I find the rename confusing and unnecessary, but I won't oppose if it makes sense for others. > > > Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.cpp:24 > > > +#include "GStreamerCommon.h" > > > > The header is already guarded, so it can be moved right after config.h as > > suggested by the style guidelines. > > The style checker didn't mention it :/ Could I fix this during landing if > you find the rest ok? Sure, it's just a nit, I didn't mean to r- this patch at all.
Xabier Rodríguez Calvar
Comment 5 2018-04-13 00:44:03 PDT
(In reply to Carlos Garcia Campos from comment #4) > And smart pointers are not utilities? I find the rename confusing and > unnecessary, but I won't oppose if it makes sense for others. Smart pointers are utilities but if you use a smart pointer without the proper deleter/ref/unref declared, you get trouble. For that you need to declare the proper deleter/ref/unref that happens to be in the G*PtrGStreamer.h files. I want to give the impression that is file is not just about utilities that you can use or not, it is something that you should include. That's why went thru the pain of changing the name.
Xabier Rodríguez Calvar
Comment 6 2018-04-13 01:03:32 PDT
Created attachment 337872 [details] Patch Style fix
WebKit Commit Bot
Comment 7 2018-04-13 01:50:50 PDT
Comment on attachment 337872 [details] Patch Clearing flags on attachment: 337872 Committed r230625: <https://trac.webkit.org/changeset/230625>
WebKit Commit Bot
Comment 8 2018-04-13 01:50:51 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2018-04-13 01:51:21 PDT
Note You need to log in before you can comment on or make changes to this bug.