RESOLVED FIXED Bug 188344
[Nicosia] Add the TextureMapper-specific ContentLayer::Impl derivative
https://bugs.webkit.org/show_bug.cgi?id=188344
Summary [Nicosia] Add the TextureMapper-specific ContentLayer::Impl derivative
Zan Dobersek
Reported 2018-08-06 04:05:45 PDT
[Nicosia] Add the TextureMapper-specific ContentLayer::Impl derivative
Attachments
Patch (9.01 KB, patch)
2018-08-06 04:23 PDT, Zan Dobersek
no flags
Patch (9.05 KB, patch)
2018-08-07 02:03 PDT, Zan Dobersek
no flags
Zan Dobersek
Comment 1 2018-08-06 04:23:22 PDT
Carlos Garcia Campos
Comment 2 2018-08-07 00:00:36 PDT
Comment on attachment 346623 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=346623&action=review > Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp:47 > + : m_proxy(adoptRef(*new WebCore::TextureMapperPlatformLayerProxy)) I would add a create() to TextureMapperPlatformLayerProxy > Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:53 > + ContentLayerTextureMapperImpl(Client&); explicit. This should only be called by the factory, right? Can we make it private? or does it have to be public because of make_unique? > Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:59 > + const Ref<WebCore::TextureMapperPlatformLayerProxy>& proxy() const { return m_proxy; } Why returning a const Ref<>&? why not just const WebCore::TextureMapperPlatformLayerProxy& instead? > Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:66 > + Client* object { nullptr }; I would call this client instead of object, even if redundant it's less confusing, I think.
Zan Dobersek
Comment 3 2018-08-07 01:58:59 PDT
Comment on attachment 346623 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=346623&action=review >> Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.cpp:47 >> + : m_proxy(adoptRef(*new WebCore::TextureMapperPlatformLayerProxy)) > > I would add a create() to TextureMapperPlatformLayerProxy I'll add it separately. >> Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:53 >> + ContentLayerTextureMapperImpl(Client&); > > explicit. This should only be called by the factory, right? Can we make it private? or does it have to be public because of make_unique? Can't be private because of std::make_unique<>(). >> Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:59 >> + const Ref<WebCore::TextureMapperPlatformLayerProxy>& proxy() const { return m_proxy; } > > Why returning a const Ref<>&? why not just const WebCore::TextureMapperPlatformLayerProxy& instead? Has to be a non-const reference. But here this works because the implicit conversion operator on the Ref<> class drops the const reference through indirection. >> Source/WebCore/platform/graphics/nicosia/texmap/NicosiaContentLayerTextureMapperImpl.h:66 >> + Client* object { nullptr }; > > I would call this client instead of object, even if redundant it's less confusing, I think. OK, makes sense.
Zan Dobersek
Comment 4 2018-08-07 02:03:01 PDT
Zan Dobersek
Comment 5 2018-08-07 02:03:59 PDT
Comment on attachment 346698 [details] Patch Clearing flags on attachment: 346698 Committed r234643: <https://trac.webkit.org/changeset/234643>
Zan Dobersek
Comment 6 2018-08-07 02:04:03 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2018-08-07 02:05:20 PDT
Note You need to log in before you can comment on or make changes to this bug.