Remove workarounds initializing command buffer EGL
authorkkinnunen <kkinnunen@nvidia.com>
Tue, 17 May 2016 13:01:40 +0000 (06:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 17 May 2016 13:01:40 +0000 (06:01 -0700)
commitaac0cb07ca44b116f9cd0c5b78cbcb795a6dec97
treebeca833605699bbbff0a237fff5dd6d97a97f1b1
parent4933d0baadae6786ad5636e2c4fdf7e2591d09e1
Remove workarounds initializing command buffer EGL

The eglDisplay() of command buffer EGL implementation now does not
allocate a new EGL display per call, rather just returns the global.

The EGL implementation is fixed as part of bug 581634.

Removes eglTerminate call, as it's should not be used in Skia at the
moment. The call will terminate all of EGL, which is not intendend. The
previous usage was only due to incorrect implementation of the API.  Not
added back to anywhere else, leaking EGL globals is as
designed. Discussed in https://chromiumcodereview.appspot.com/1733323002.

BUG=581634, 603223
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1978733003

Review-Url: https://codereview.chromium.org/1978733003
tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp