|
|
Chromium Code Reviews|
Created:
3 years, 10 months ago by Julien Isorce Modified:
3 years, 8 months ago CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionRename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move to ui/gfx
Also rename ClientNativePixmapGbm to ClientNativePixmapOpaque.
Also move client_native_pixmap_dmabuf.{cc,h} from ui/ozone to ui/gfx/linux.
All the touched code is not ozone specific.
This is a pre-step to enable glCreateImageCHROMIUM with linux dma buf on linux.
BUG=584248
R=reveman@chromium.org
Review-Url: https://codereview.chromium.org/2711933002
Cr-Commit-Position: refs/heads/master@{#459592}
Committed: https://chromium.googlesource.com/chromium/src/+/7a2645913c2a61f7c53d47f16879925ccae10509
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 1
Patch Set 3 : Rebase #
Total comments: 3
Patch Set 4 : Rebased and addressed spang's remarks #
Total comments: 2
Patch Set 5 : rebase and remove left over spotted by spang #
Total comments: 5
Patch Set 6 : Rebase #Patch Set 7 : Rebase #Patch Set 8 : Rebase #
Total comments: 2
Patch Set 9 : Addressed sadrul's remark #Depends on Patchset: Messages
Total messages: 61 (36 generated)
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Hi David,
This CL is also to allow calling
ui::ClientNativePixmapFactory::GetInstance()->ImportFromHandle from
GpuMemoryBufferImpl[-Ozone]NativePixmap::CreateFromHandle.
Please take a look. Thx.
The renaming CLs will be to rename
GpuMemoryBuffer{Factory,Impl}OzoneNativePixmap to
GpuMemoryBuffer{Factory,Impl}NativePixmap
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...)
lgtm as a next step. Long term I'd really like to see client pixmap classes go away in favor of just using the GMB interface directly as the only abstraction layer. GpuMemoryBufferImplLinuxDmabuf + GLImageLinuxDmabuf https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... ui/gfx/linux/client_native_pixmap_dmabuf.h:28: // Overridden from ClientNativePixmap. nit: s/from ClientNativePixmap./from ClientNativePixmap:/
On 2017/03/09 12:22:15, reveman wrote: > lgtm as a next step. > > Long term I'd really like to see client pixmap classes go away in favor of just > using the GMB interface directly as the only abstraction layer. > GpuMemoryBufferImplLinuxDmabuf + GLImageLinuxDmabuf > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > ui/gfx/linux/client_native_pixmap_dmabuf.h:28: // Overridden from > ClientNativePixmap. > nit: s/from ClientNativePixmap./from ClientNativePixmap:/ Hi David, thx for the review. Make sense what you suggested. Lets discuss about it in details once this bug is done (i.e. listed CLs landed). In the meantime and if you have time of course, please file a new bug with some details about your suggestion. Thx again!
On 2017/03/09 12:22:15, reveman wrote: > lgtm as a next step. > > Long term I'd really like to see client pixmap classes go away in favor of just > using the GMB interface directly as the only abstraction layer. > GpuMemoryBufferImplLinuxDmabuf + GLImageLinuxDmabuf This interface exists because GMBImpl abstraction is in a place that doesn't make sense for ozone.. are you planning to move it somewhere we can use it directly? Otherwise I think you'll find that moving it creates either circular dependencies or (more) abstraction leaks, neither of which are better than the duplication which we have now. > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > ui/gfx/linux/client_native_pixmap_dmabuf.h:28: // Overridden from > ClientNativePixmap. > nit: s/from ClientNativePixmap./from ClientNativePixmap:/
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
On 2017/03/09 at 17:06:12, spang wrote: > On 2017/03/09 12:22:15, reveman wrote: > > lgtm as a next step. > > > > Long term I'd really like to see client pixmap classes go away in favor of just > > using the GMB interface directly as the only abstraction layer. > > GpuMemoryBufferImplLinuxDmabuf + GLImageLinuxDmabuf > > This interface exists because GMBImpl abstraction is in a place that doesn't make sense for ozone.. are you planning to move it somewhere we can use it directly? > > Otherwise I think you'll find that moving it creates either circular dependencies or (more) abstraction leaks, neither of which are better than the duplication which we have now. I agree that circular dependencies are worse. I'm failing to see where that would happen. I was hoping that we could just have some simply linux interface for allocating dmabufs that would be implemented differently on linux and ozone and then everything else GMB related lives in non-ozone specific code. > > > > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > > File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): > > > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > > ui/gfx/linux/client_native_pixmap_dmabuf.h:28: // Overridden from > > ClientNativePixmap. > > nit: s/from ClientNativePixmap./from ClientNativePixmap:/
On 2017/03/15 15:00:09, reveman wrote: > On 2017/03/09 at 17:06:12, spang wrote: > > On 2017/03/09 12:22:15, reveman wrote: > > > lgtm as a next step. > > > > > > Long term I'd really like to see client pixmap classes go away in favor of > just > > > using the GMB interface directly as the only abstraction layer. > > > GpuMemoryBufferImplLinuxDmabuf + GLImageLinuxDmabuf > > > > This interface exists because GMBImpl abstraction is in a place that doesn't > make sense for ozone.. are you planning to move it somewhere we can use it > directly? > > > > Otherwise I think you'll find that moving it creates either circular > dependencies or (more) abstraction leaks, neither of which are better than the > duplication which we have now. > > I agree that circular dependencies are worse. I'm failing to see where that > would happen. I was hoping that we could just have some simply linux interface > for allocating dmabufs that would be implemented differently on linux and ozone > and then everything else GMB related lives in non-ozone specific code. If you restrict ozone to dmabuf I think you are likely right, but we historically weren't willing to do that. If we don't make that restriction, then there needs to be a way to choose the import, mapping, and unmapping primitives; that's what's provided by the ClientNativePixmap interface. For some examples, if you make a build of ozone for the Android NDK you'd need to use gralloc in place of dmabuf. Or the chromecast guys might someday want to do zero copy using code provided by their SoC vendor.. which probably does not use dmabuf. Ozone was designed for the long tail of devices, and we're not too fussed about what kernel APIs you use to get zero copy, on principle. > > > > > > > > > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > > > File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): > > > > > > > https://codereview.chromium.org/2711933002/diff/20001/ui/gfx/linux/client_nat... > > > ui/gfx/linux/client_native_pixmap_dmabuf.h:28: // Overridden from > > > ClientNativePixmap. > > > nit: s/from ClientNativePixmap./from ClientNativePixmap:/
spang@chromium.org changed reviewers: + spang@chromium.org
https://codereview.chromium.org/2711933002/diff/40001/ui/gfx/BUILD.gn File ui/gfx/BUILD.gn (right): https://codereview.chromium.org/2711933002/diff/40001/ui/gfx/BUILD.gn#newcode17 ui/gfx/BUILD.gn:17: packages = [ "libdrm" ] +phajdan Is linking this unconditionally into the linux desktop build OK? Or do we need to use dlopen? https://codereview.chromium.org/2711933002/diff/40001/ui/gfx/BUILD.gn#newcode575 ui/gfx/BUILD.gn:575: deps += [ "//third_party/libdrm" ] I think this conditional should be removed and just always depend on //third_party/libdrm; there's already a conditional and pkg_config() there which we shouldn't duplicate here.
https://codereview.chromium.org/2711933002/diff/40001/ui/gfx/BUILD.gn File ui/gfx/BUILD.gn (right): https://codereview.chromium.org/2711933002/diff/40001/ui/gfx/BUILD.gn#newcode575 ui/gfx/BUILD.gn:575: deps += [ "//third_party/libdrm" ] On 2017/03/15 15:40:32, spang wrote: > I think this conditional should be removed and just always depend on > //third_party/libdrm; there's already a conditional and pkg_config() there which > we shouldn't duplicate here. Done, thx.
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
spang@chromium.org changed reviewers: + phajdan.jr@chromium.org
https://codereview.chromium.org/2711933002/diff/60001/ui/gfx/BUILD.gn File ui/gfx/BUILD.gn (right): https://codereview.chromium.org/2711933002/diff/60001/ui/gfx/BUILD.gn#newcode5 ui/gfx/BUILD.gn:5: import("//build/config/linux/pkg_config.gni") remove.
Thx for the review. https://codereview.chromium.org/2711933002/diff/60001/ui/gfx/BUILD.gn File ui/gfx/BUILD.gn (right): https://codereview.chromium.org/2711933002/diff/60001/ui/gfx/BUILD.gn#newcode5 ui/gfx/BUILD.gn:5: import("//build/config/linux/pkg_config.gni") On 2017/03/22 01:48:18, spang wrote: > remove. Done.
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from
==========
Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move
to ui/gfx
Also rename ClientNativePixmapGbm to ClientNativePixmapOpaque.
Also move client_native_pixmap_dmabuf.{cc,h} from ui/ozone to ui/gfx/linux.
All the touched code is not ozone specific.
This is a pre-step to enable glCreateImageCHROMIUM with linux dma buf on linux.
BUG=584248
R=reveman@chromium.org
==========
to
==========
Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move
to ui/gfx
Also rename ClientNativePixmapGbm to ClientNativePixmapOpaque.
Also move client_native_pixmap_dmabuf.{cc,h} from ui/ozone to ui/gfx/linux.
All the touched code is not ozone specific.
This is a pre-step to enable glCreateImageCHROMIUM with linux dma buf on linux.
BUG=584248
R=reveman@chromium.org
==========
julien.isorce@chromium.org changed reviewers: + sadrul@chromium.org
Hi sadrul@, please take a look, Thx.
https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { I missed this in earlier reviews. Can you please change the namespace of this (and in earlier cls) to gfx?
https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { On 2017/03/22 16:55:37, sadrul wrote: > I missed this in earlier reviews. Can you please change the namespace of this > (and in earlier cls) to gfx? Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. Thx
https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { On 2017/03/22 17:21:18, Julien Isorce wrote: > On 2017/03/22 16:55:37, sadrul wrote: > > I missed this in earlier reviews. Can you please change the namespace of this > > (and in earlier cls) to gfx? > > Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. Thx The followning is causing me issues since it requires both --namespace to be ui for OzonePlatform and and gfx for ClientNativePixmapFactory: args = [ "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), "--namespace=gfx", "--typename=OzonePlatform", "--typename=ClientNativePixmapFactory", "--include=\"ui/gfx/client_native_pixmap_factory.h\"", "--include=\"ui/ozone/public/ozone_platform.h\"", ] I do not know how to solve this at the moment.
https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { On 2017/03/22 18:24:10, Julien Isorce wrote: > On 2017/03/22 17:21:18, Julien Isorce wrote: > > On 2017/03/22 16:55:37, sadrul wrote: > > > I missed this in earlier reviews. Can you please change the namespace of > this > > > (and in earlier cls) to gfx? > > > > Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. Thx > > The followning is causing me issues since it requires both --namespace to be ui > for OzonePlatform and and gfx for ClientNativePixmapFactory: > > args = [ > "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), > "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), > "--namespace=gfx", > "--typename=OzonePlatform", > "--typename=ClientNativePixmapFactory", > "--include=\"ui/gfx/client_native_pixmap_factory.h\"", > "--include=\"ui/ozone/public/ozone_platform.h\"", > ] > > I do not know how to solve this at the moment. > Try: --namespace=ui --typename=gfx::ClientNativePixmapFactory
On 2017/03/22 22:49:36, spang wrote: > https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... > File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): > > https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... > ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { > On 2017/03/22 18:24:10, Julien Isorce wrote: > > On 2017/03/22 17:21:18, Julien Isorce wrote: > > > On 2017/03/22 16:55:37, sadrul wrote: > > > > I missed this in earlier reviews. Can you please change the namespace of > > this > > > > (and in earlier cls) to gfx? > > > > > > Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. Thx > > > > The followning is causing me issues since it requires both --namespace to be > ui > > for OzonePlatform and and gfx for ClientNativePixmapFactory: > > > > args = [ > > "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), > > "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), > > "--namespace=gfx", > > "--typename=OzonePlatform", > > "--typename=ClientNativePixmapFactory", > > "--include=\"ui/gfx/client_native_pixmap_factory.h\"", > > "--include=\"ui/ozone/public/ozone_platform.h\"", > > ] > > > > I do not know how to solve this at the moment. > > > > Try: > > --namespace=ui > --typename=gfx::ClientNativePixmapFactory Actually, maybe that won't help. You might be stuck without changing the python to strip out the namespace.
https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { On 2017/03/22 22:49:35, spang wrote: > On 2017/03/22 18:24:10, Julien Isorce wrote: > > On 2017/03/22 17:21:18, Julien Isorce wrote: > > > On 2017/03/22 16:55:37, sadrul wrote: > > > > I missed this in earlier reviews. Can you please change the namespace of > > this > > > > (and in earlier cls) to gfx? > > > > > > Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. Thx > > > > The followning is causing me issues since it requires both --namespace to be > ui > > for OzonePlatform and and gfx for ClientNativePixmapFactory: > > > > args = [ > > "--platform_list=" + rebase_path(platform_list_txt_file, root_build_dir), > > "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), > > "--namespace=gfx", > > "--typename=OzonePlatform", > > "--typename=ClientNativePixmapFactory", > > "--include=\"ui/gfx/client_native_pixmap_factory.h\"", > > "--include=\"ui/ozone/public/ozone_platform.h\"", > > ] > > > > I do not know how to solve this at the moment. > > > > Try: > > --namespace=ui > --typename=gfx::ClientNativePixmapFactory Thx, well I tried earlier but I got some errors, can't remember the output though. I will have another go.
On 2017/03/22 22:52:10, Julien Isorce wrote: > https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... > File ui/gfx/linux/client_native_pixmap_dmabuf.h (right): > > https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... > ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { > On 2017/03/22 22:49:35, spang wrote: > > On 2017/03/22 18:24:10, Julien Isorce wrote: > > > On 2017/03/22 17:21:18, Julien Isorce wrote: > > > > On 2017/03/22 16:55:37, sadrul wrote: > > > > > I missed this in earlier reviews. Can you please change the namespace of > > > this > > > > > (and in earlier cls) to gfx? > > > > > > > > Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. > Thx > > > > > > The followning is causing me issues since it requires both --namespace to be > > ui > > > for OzonePlatform and and gfx for ClientNativePixmapFactory: > > > > > > args = [ > > > "--platform_list=" + rebase_path(platform_list_txt_file, > root_build_dir), > > > "--output_cc=" + rebase_path(constructor_list_cc_file, root_build_dir), > > > "--namespace=gfx", > > > "--typename=OzonePlatform", > > > "--typename=ClientNativePixmapFactory", > > > "--include=\"ui/gfx/client_native_pixmap_factory.h\"", > > > "--include=\"ui/ozone/public/ozone_platform.h\"", > > > ] > > > > > > I do not know how to solve this at the moment. > > > > > > > Try: > > > > --namespace=ui > > --typename=gfx::ClientNativePixmapFactory > > > Thx, well I tried earlier but I got some errors, can't remember the output > though. I will have another go. I think that's what you actually want, but you probably need to add some code to strip out the namespace prefix so that it doesn't try to form an identifier that looks like "Create" + "gfx::ClientNativePixmapFactoryOzone" = Creategfx::ClientNativePixmapFactoryOzone.
On 2017/03/22 22:55:09, spang wrote: > https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... > > ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { > > On 2017/03/22 22:49:35, spang wrote: > > > On 2017/03/22 18:24:10, Julien Isorce wrote: > > > > On 2017/03/22 17:21:18, Julien Isorce wrote: > > > > > On 2017/03/22 16:55:37, sadrul wrote: > > > > > > I missed this in earlier reviews. Can you please change the namespace > of > > > > this > > > > > > (and in earlier cls) to gfx? > > > > > > > > > > Ops I missed that sorry. I will submit a seprate CL to fix previous CLs. > > Thx > > > > > > > > The followning is causing me issues since it requires both --namespace to > be > > > ui > > > > for OzonePlatform and and gfx for ClientNativePixmapFactory: > > > > > > > > args = [ > > > > "--platform_list=" + rebase_path(platform_list_txt_file, > > root_build_dir), > > > > "--output_cc=" + rebase_path(constructor_list_cc_file, > root_build_dir), > > > > "--namespace=gfx", > > > > "--typename=OzonePlatform", > > > > "--typename=ClientNativePixmapFactory", > > > > "--include=\"ui/gfx/client_native_pixmap_factory.h\"", > > > > "--include=\"ui/ozone/public/ozone_platform.h\"", > > > > ] > > > > > > > > I do not know how to solve this at the moment. > > > > > > > > > > Try: > > > > > > --namespace=ui > > > --typename=gfx::ClientNativePixmapFactory > > > > > > Thx, well I tried earlier but I got some errors, can't remember the output > > though. I will have another go. > > I think that's what you actually want, but you probably need to add some code to > strip out the namespace prefix so that it doesn't try to form an identifier that > looks like "Create" + "gfx::ClientNativePixmapFactoryOzone" = > Creategfx::ClientNativePixmapFactoryOzone. Indeed that was exactly this error! I will try your suggestion, thx.
On 2017/03/22 22:58:29, Julien Isorce wrote: > On 2017/03/22 22:55:09, spang wrote: > > > https://codereview.chromium.org/2711933002/diff/80001/ui/gfx/linux/client_nat... > > > ui/gfx/linux/client_native_pixmap_dmabuf.h:18: namespace ui { > > > On 2017/03/22 22:49:35, spang wrote: > > > > On 2017/03/22 18:24:10, Julien Isorce wrote: > > > > > On 2017/03/22 17:21:18, Julien Isorce wrote: > > > > > > On 2017/03/22 16:55:37, sadrul wrote: > > > > > > > I missed this in earlier reviews. Can you please change the > namespace > > of > > > > > this > > > > > > > (and in earlier cls) to gfx? > > > > > > > > > > > > Ops I missed that sorry. I will submit a seprate CL to fix previous > CLs. > > > Thx > > > > > > > > > > The followning is causing me issues since it requires both --namespace > to > > be > > > > ui > > > > > for OzonePlatform and and gfx for ClientNativePixmapFactory: > > > > > > > > > > args = [ > > > > > "--platform_list=" + rebase_path(platform_list_txt_file, > > > root_build_dir), > > > > > "--output_cc=" + rebase_path(constructor_list_cc_file, > > root_build_dir), > > > > > "--namespace=gfx", > > > > > "--typename=OzonePlatform", > > > > > "--typename=ClientNativePixmapFactory", > > > > > "--include=\"ui/gfx/client_native_pixmap_factory.h\"", > > > > > "--include=\"ui/ozone/public/ozone_platform.h\"", > > > > > ] > > > > > > > > > > I do not know how to solve this at the moment. > > > > > > > > > > > > > Try: > > > > > > > > --namespace=ui > > > > --typename=gfx::ClientNativePixmapFactory > > > > > > > > > Thx, well I tried earlier but I got some errors, can't remember the output > > > though. I will have another go. > > > > I think that's what you actually want, but you probably need to add some code > to > > strip out the namespace prefix so that it doesn't try to form an identifier > that > > looks like "Create" + "gfx::ClientNativePixmapFactoryOzone" = > > Creategfx::ClientNativePixmapFactoryOzone. > > Indeed that was exactly this error! I will try your suggestion, thx. You can probably also do something like --using=gfx::ClientNativePixmapFactory and emitting the statement using gfx::ClientNativePixmapFactory; at the top of the file.
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...)
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2711933002/diff/140001/ui/gfx/linux/client_na... File ui/gfx/linux/client_native_pixmap_factory_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/140001/ui/gfx/linux/client_na... ui/gfx/linux/client_native_pixmap_factory_dmabuf.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. 2017
Thx for the review. https://codereview.chromium.org/2711933002/diff/140001/ui/gfx/linux/client_na... File ui/gfx/linux/client_native_pixmap_factory_dmabuf.h (right): https://codereview.chromium.org/2711933002/diff/140001/ui/gfx/linux/client_na... ui/gfx/linux/client_native_pixmap_factory_dmabuf.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. On 2017/03/24 17:23:07, sadrul wrote: > 2017 Done.
The CQ bit was checked by julien.isorce@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by julien.isorce@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from reveman@chromium.org, spang@chromium.org, sadrul@chromium.org Link to the patchset: https://codereview.chromium.org/2711933002/#ps160001 (title: "Addressed sadrul's remark")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 160001, "attempt_start_ts": 1490394620293790,
"parent_rev": "43dd6c1192766bf70c69236bf3cac35aaa3ec79a", "commit_rev":
"7a2645913c2a61f7c53d47f16879925ccae10509"}
Message was sent while issue was closed.
Description was changed from
==========
Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move
to ui/gfx
Also rename ClientNativePixmapGbm to ClientNativePixmapOpaque.
Also move client_native_pixmap_dmabuf.{cc,h} from ui/ozone to ui/gfx/linux.
All the touched code is not ozone specific.
This is a pre-step to enable glCreateImageCHROMIUM with linux dma buf on linux.
BUG=584248
R=reveman@chromium.org
==========
to
==========
Rename ClientNativePixmapFactoryGbm to ClientNativePixmapFactoryDmabuf amd move
to ui/gfx
Also rename ClientNativePixmapGbm to ClientNativePixmapOpaque.
Also move client_native_pixmap_dmabuf.{cc,h} from ui/ozone to ui/gfx/linux.
All the touched code is not ozone specific.
This is a pre-step to enable glCreateImageCHROMIUM with linux dma buf on linux.
BUG=584248
R=reveman@chromium.org
Review-Url: https://codereview.chromium.org/2711933002
Cr-Commit-Position: refs/heads/master@{#459592}
Committed:
https://chromium.googlesource.com/chromium/src/+/7a2645913c2a61f7c53d47f16879...
==========
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/7a2645913c2a61f7c53d47f16879... |
