Revert of Mac: Add layer-backed NSView+NSOpenGLContext rendering path (patchset ...
commit7d8976fabd13408e465e79c175692a542d1de136
authorzea <zea@chromium.org>
Thu, 4 Jun 2015 17:41:14 +0000 (4 10:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 17:41:49 +0000 (4 17:41 +0000)
tree732223d5bf778f237f449b40486982a4cf13c418
parentf4735c13bb1fc3be8687ed82ef2d19723ef83fdc
Revert of Mac: Add layer-backed NSView+NSOpenGLContext rendering path (patchset #3 id:40001 of https://codereview.chromium.org/1154903007/)

Reason for revert:
Broke the GPU Mac FYI build:
http://build.chromium.org/p/chromium.gpu.fyi/builders/GPU%20Mac%20Builder/builds/32453

Original issue's description:
> Mac: Add layer-backed NSView+NSOpenGLContext rendering path
>
> An undocumented feature of CAOpenGLLayer is that it will drain your
> battery. Add a path that renders content via a NSOpenGLContext (which
> has an undocumented feature of not draining your battery as much).
>
> Keep all of this behind a --enable-ns-gl-surfaces flag.
>
> Because a NSOpenGLContext needs to be attached to an NSView, this
> implies that we will have to use the cross-process IOSurface currently
> in use by 10.6 through 10.8.
>
> For the moment, have one NSOpenGLContext per window, and disable
> eviction of IOSurfaces in this mode to keep the implementation simple.
>
> This version is enough to employ for reliable perf testing. It still needs
> robustness work (how and when to do eviction, recycling and context
> sharing if needed, etc).
>
> BUG=496484
>
> Committed: https://crrev.com/8bed35093799d2c9b9156c0ef83edc6c8f0b03c1
> Cr-Commit-Position: refs/heads/master@{#332843}

TBR=avi@chromium.org,ccameron@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=496484

Review URL: https://codereview.chromium.org/1162113006

Cr-Commit-Position: refs/heads/master@{#332852}
12 files changed:
content/browser/gpu/gpu_process_host.cc
ui/accelerated_widget_mac/BUILD.gn
ui/accelerated_widget_mac/DEPS
ui/accelerated_widget_mac/accelerated_widget_mac.gyp
ui/accelerated_widget_mac/accelerated_widget_mac.h
ui/accelerated_widget_mac/accelerated_widget_mac.mm
ui/accelerated_widget_mac/io_surface_ns_gl_surface.h [deleted file]
ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm [deleted file]
ui/accelerated_widget_mac/io_surface_texture.mm
ui/base/cocoa/remote_layer_api.mm
ui/base/ui_base_switches.cc
ui/base/ui_base_switches.h