Right now, AcceleratedSurface gets passed around by a global id: https://code.google.com/p/chromium/codesearch#chromium/src/ui/surface/accelerated_surface_mac.cc&sq=package:chromium&l=260 https://code.google.com/p/chromium/codesearch#chromium/src/ui/surface/accelerated_surface_mac.cc&sq=package:chromium&l=223 This means that it is theoretically guessable by...any process?
That's dead code -- I've put up a patch to get rid of it.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/5a0d86fd06f902af87107e8c5bc1564e1a1bc853 commit 5a0d86fd06f902af87107e8c5bc1564e1a1bc853 Author: ccameron <ccameron@chromium.org> Date: Wed Apr 06 17:51:04 2016 Mac: Remove dead IOSurface code The parts in GLImageIOSurface were accidentally included in a patch. The accelerated surface is unused. BUG= 598418 Review URL: https://codereview.chromium.org/1861543004 Cr-Commit-Position: refs/heads/master@{#385503} [modify] https://crrev.com/5a0d86fd06f902af87107e8c5bc1564e1a1bc853/ui/gl/gl_image_io_surface.h [modify] https://crrev.com/5a0d86fd06f902af87107e8c5bc1564e1a1bc853/ui/gl/gl_image_io_surface.mm [modify] https://crrev.com/5a0d86fd06f902af87107e8c5bc1564e1a1bc853/ui/surface/BUILD.gn [delete] https://crrev.com/a48801cc8a00aebf46a9da63e17aec5cae695fd1/ui/surface/accelerated_surface_mac.cc [delete] https://crrev.com/a48801cc8a00aebf46a9da63e17aec5cae695fd1/ui/surface/accelerated_surface_mac.h [modify] https://crrev.com/5a0d86fd06f902af87107e8c5bc1564e1a1bc853/ui/surface/surface.gyp
Comment 1 by ccameron@chromium.org
, Apr 5 2016