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

Issue 1733323002: Clean up EGL thread state at thread exit in nanobench and DM (Closed)

Created:
4 years, 10 months ago by Kimmo Kinnunen
Modified:
4 years, 10 months ago
Reviewers:
mtklein, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Clean up EGL thread state at thread exit in nanobench and DM Call eglReleaseThread for each thread that might have executed EGL code. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1733323002

Patch Set 1 #

Patch Set 2 : fix main thread usage also #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -13 lines) Patch
M bench/nanobench.cpp View 1 2 chunks +8 lines, -1 line 0 comments Download
M dm/DM.cpp View 1 2 chunks +9 lines, -0 lines 0 comments Download
M include/gpu/gl/SkGLContext.h View 1 chunk +5 lines, -0 lines 0 comments Download
M include/gpu/gl/angle/SkANGLEGLContext.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/gpu/gl/command_buffer/SkCommandBufferGLContext.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkTaskGroup.h View 1 chunk +6 lines, -1 line 0 comments Download
M src/core/SkTaskGroup.cpp View 4 chunks +16 lines, -4 lines 0 comments Download
M src/gpu/GrContextFactory.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrContextFactory.cpp View 1 chunk +15 lines, -0 lines 0 comments Download
M src/gpu/gl/angle/SkANGLEGLContext.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp View 6 chunks +11 lines, -5 lines 0 comments Download
M src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/nacl/SkCreatePlatformGLContext_nacl.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/skia_test.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Kimmo Kinnunen
Would this be overkill?
4 years, 10 months ago (2016-02-25 12:51:38 UTC) #3
mtklein
Why? These threads all only terminate when the process is about to die.
4 years, 10 months ago (2016-02-25 14:18:45 UTC) #4
Kimmo Kinnunen
On 2016/02/25 14:18:45, mtklein wrote: > Why? > > These threads all only terminate when ...
4 years, 10 months ago (2016-02-25 14:39:30 UTC) #5
mtklein
On 2016/02/25 14:39:30, Kimmo Kinnunen wrote: > On 2016/02/25 14:18:45, mtklein wrote: > > Why? ...
4 years, 10 months ago (2016-02-25 14:40:56 UTC) #6
Kimmo Kinnunen
On 2016/02/25 14:40:56, mtklein wrote: > On 2016/02/25 14:39:30, Kimmo Kinnunen wrote: > > On ...
4 years, 10 months ago (2016-02-25 15:00:23 UTC) #7
mtklein
Let's make sure we've got the problems positively identified before we fix them.
4 years, 10 months ago (2016-02-25 15:26:02 UTC) #8
Kimmo Kinnunen
On 2016/02/25 15:26:02, mtklein wrote: > Let's make sure we've got the problems positively identified ...
4 years, 10 months ago (2016-02-26 10:31:26 UTC) #9
mtklein
On 2016/02/26 10:31:26, Kimmo Kinnunen wrote: > On 2016/02/25 15:26:02, mtklein wrote: > > Let's ...
4 years, 10 months ago (2016-02-26 13:16:41 UTC) #10
Kimmo Kinnunen
Well, it is a problem for current me. And I believe future me would fix ...
4 years, 10 months ago (2016-02-26 14:44:23 UTC) #11
mtklein
On 2016/02/26 14:44:23, Kimmo Kinnunen wrote: > Well, it is a problem for current me. ...
4 years, 10 months ago (2016-02-26 14:53:55 UTC) #13
bsalomon
This seems like putting the cart before the horse. We don't even have a regular ...
4 years, 10 months ago (2016-02-26 15:04:14 UTC) #14
mtklein
4 years, 10 months ago (2016-02-26 15:12:33 UTC) #15
Message was sent while issue was closed.
On 2016/02/26 15:04:14, bsalomon wrote:
> This seems like putting the cart before the horse. We don't even have a
regular
> command buffer bot yet, though hopefully will in the near future. The tool
> itself leaking isn't itself a problem as the tool only exists to test the
> library. If and when we have *san or valgrind bot for the command buffer or
> angle we can address tool leaks that cloud the view of leaks in the
> library/command buffer or simply suppress them. When a new bot goes up it's ok
> for it to be red while these types of issues are sorted out. At that time we
> will have the bot to test the fixes and detect regressions.

👍

Powered by Google App Engine
This is Rietveld 408576698