Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Issue 1674223002: Only call gles2::Terminate when all Display objects are deleted (Closed)

Created:
4 years, 10 months ago by Sami Väisänen
Modified:
4 years, 10 months ago
Reviewers:
Kimmo Kinnunen, piman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@egl_test_branch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only call gles2::Terminate when all Display objects are deleted Implementation in command buffer EGL calls gles2::Terminate and gles2::Initialize incorrectly. If there are multiple Display objects each will call Initialize and Terminate and creates and frees the TLS allocated context key twice. It should only be created once and freed once all the Displays are deleted. BUG=skia:2992 Committed: https://crrev.com/c22b484a0aaabbfbce221b419da48bca080e7826 Cr-Commit-Position: refs/heads/master@{#376439}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Review fixes #

Patch Set 3 : Fix whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -22 lines) Patch
M gpu/command_buffer/tests/egl_test.cc View 1 2 2 chunks +106 lines, -1 line 0 comments Download
M gpu/gles2_conform_support/egl/display.cc View 1 2 2 chunks +38 lines, -21 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (11 generated)
Sami Väisänen
4 years, 10 months ago (2016-02-08 14:55:24 UTC) #3
piman
https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc File gpu/command_buffer/tests/egl_test.cc (right): https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc#newcode39 gpu/command_buffer/tests/egl_test.cc:39: TestContext() { nit: indent. 'public:' should be at +1, ...
4 years, 10 months ago (2016-02-08 17:36:08 UTC) #4
Sami Väisänen
PTAL https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc File gpu/command_buffer/tests/egl_test.cc (right): https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc#newcode39 gpu/command_buffer/tests/egl_test.cc:39: TestContext() { On 2016/02/08 17:36:08, piman wrote: > ...
4 years, 10 months ago (2016-02-09 10:05:28 UTC) #5
piman
https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc File gpu/command_buffer/tests/egl_test.cc (right): https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc#newcode123 gpu/command_buffer/tests/egl_test.cc:123: // Overall this functionality is not aligned with the ...
4 years, 10 months ago (2016-02-09 19:23:51 UTC) #6
Sami Väisänen
On 2016/02/09 19:23:51, piman wrote: > https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc > File gpu/command_buffer/tests/egl_test.cc (right): > > https://codereview.chromium.org/1674223002/diff/1/gpu/command_buffer/tests/egl_test.cc#newcode123 > ...
4 years, 10 months ago (2016-02-10 07:38:23 UTC) #7
piman
On 2016/02/10 07:38:23, Sami Väisänen wrote: > On 2016/02/09 19:23:51, piman wrote: > > > ...
4 years, 10 months ago (2016-02-10 23:48:59 UTC) #8
Kimmo Kinnunen
On 2016/02/10 23:48:59, piman wrote: > On 2016/02/10 07:38:23, Sami Väisänen wrote: > > I ...
4 years, 10 months ago (2016-02-11 06:48:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674223002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674223002/20001
4 years, 10 months ago (2016-02-11 08:19:17 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/129596) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 10 months ago (2016-02-11 08:21:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674223002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674223002/20001
4 years, 10 months ago (2016-02-19 13:16:19 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/147874)
4 years, 10 months ago (2016-02-19 13:38:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674223002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674223002/40001
4 years, 10 months ago (2016-02-19 14:19:58 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-19 14:42:36 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c22b484a0aaabbfbce221b419da48bca080e7826 Cr-Commit-Position: refs/heads/master@{#376439}
4 years, 10 months ago (2016-02-19 14:44:58 UTC) #25
markusheintz_
4 years, 10 months ago (2016-02-19 15:39:16 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1714023002/ by markusheintz@chromium.org.

The reason for reverting is: Does not compile on win
c:\b\build\slave\win\build\src\gpu\command_buffer\tests\egl_test.cc(87) : error
C2059: syntax error : '('
c:\b\build\slave\win\build\src\gpu\command_buffer\tests\egl_test.cc(90) : error
C2061: syntax error : identifier 'glEnableProc'
c:\b\build\slave\win\build\src\gpu\command_buffer\tests\egl_test.cc(91) : error
C3536: 'GLES2Enable': cannot be used before it is initialized
c:\b\build\slave\win\build\src\gpu\command_buffer\tests\egl_test.cc(91) : error
C2064: term does not evaluate to a function taking 1 arguments


https://build.chromium.org/p/chromium/builders/Win/builds/40478/steps/compile....

Powered by Google App Engine
This is Rietveld 408576698