Bug 184533 - [GStreamer] Convert GStreamerUtilities in GStreamerCommon and include the GStreamer smart pointer traits
Summary: [GStreamer] Convert GStreamerUtilities in GStreamerCommon and include the GSt...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Xabier Rodríguez Calvar
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-04-12 05:12 PDT by Xabier Rodríguez Calvar
Modified: 2018-04-13 01:51 PDT (History)
7 users (show)

See Also:


Attachments
Patch (58.78 KB, patch)
2018-04-12 05:19 PDT, Xabier Rodríguez Calvar
no flags Details | Formatted Diff | Diff
Patch (58.76 KB, patch)
2018-04-13 01:03 PDT, Xabier Rodríguez Calvar
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xabier Rodríguez Calvar 2018-04-12 05:12:43 PDT
[GStreamer] Convert GStreamerUtilities in GStreamerCommon and include the GStreamer smart pointer traits
Comment 1 Xabier Rodríguez Calvar 2018-04-12 05:19:38 PDT
Created attachment 337789 [details]
Patch
Comment 2 Carlos Garcia Campos 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.
Comment 3 Xabier Rodríguez Calvar 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?
Comment 4 Carlos Garcia Campos 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.
Comment 5 Xabier Rodríguez Calvar 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.
Comment 6 Xabier Rodríguez Calvar 2018-04-13 01:03:32 PDT
Created attachment 337872 [details]
Patch

Style fix
Comment 7 WebKit Commit Bot 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>
Comment 8 WebKit Commit Bot 2018-04-13 01:50:51 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-04-13 01:51:21 PDT
<rdar://problem/39407508>