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

Issue 2341043002: webgl: Replace query task observer with a posted task (Closed)

Created:
4 years, 3 months ago by Sami
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

webgl: Replace query task observer with a posted task This patch replaces the task observers used by WebGL queries (timer and regular) with an explicitly posted task. In general task observers should be used sparingly because they add overhead to every task and their lifetime must be explicitly managed. We now post a regular task, which runs only after the current task has finished, meaning it is safe to update the cached query availability flag again. BUG=644575 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/fcfd66a5660a6ec631facdc050e8f8fc3ded7858 Cr-Commit-Position: refs/heads/master@{#420975}

Patch Set 1 #

Patch Set 2 : Make sure queries finish #

Total comments: 1

Patch Set 3 : Use CancellableTaskFactory instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -56 lines) Patch
M third_party/WebKit/Source/modules/webgl/WebGLQuery.h View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLQuery.cpp View 1 2 6 chunks +11 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.h View 1 2 3 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLTimerQueryEXT.cpp View 1 2 6 chunks +11 lines, -19 lines 0 comments Download

Messages

Total messages: 34 (19 generated)
Sami
4 years, 3 months ago (2016-09-15 13:46:58 UTC) #10
vmiura
Would we not also require the pre-finalizer to revoke m_weakFactory pointers?
4 years, 3 months ago (2016-09-16 20:01:22 UTC) #13
Ken Russell (switch to Gerrit)
> Would we not also require the pre-finalizer to revoke m_weakFactory > pointers? Good point ...
4 years, 3 months ago (2016-09-16 23:12:39 UTC) #14
haraken
On 2016/09/16 23:12:39, Ken Russell wrote: > > Would we not also require the pre-finalizer ...
4 years, 3 months ago (2016-09-16 23:50:07 UTC) #15
Sami
On 2016/09/16 23:50:07, haraken wrote: > I'd suggest using CancellableTaskFactory (instead of directly using > ...
4 years, 3 months ago (2016-09-22 10:40:22 UTC) #16
Sami
On 2016/09/22 10:40:22, Sami wrote: > On 2016/09/16 23:50:07, haraken wrote: > > I'd suggest ...
4 years, 3 months ago (2016-09-23 09:59:45 UTC) #17
Sami
Oops, +haraken@ for real.
4 years, 3 months ago (2016-09-23 10:00:12 UTC) #19
Ken Russell (switch to Gerrit)
On 2016/09/23 09:59:45, Sami wrote: > On 2016/09/22 10:40:22, Sami wrote: > > On 2016/09/16 ...
4 years, 3 months ago (2016-09-23 18:48:37 UTC) #20
vmiura
> Or, is the bug that we poison the memory too soon before running finalizers ...
4 years, 3 months ago (2016-09-23 20:42:48 UTC) #21
haraken
On 2016/09/23 09:59:45, Sami wrote: > On 2016/09/22 10:40:22, Sami wrote: > > On 2016/09/16 ...
4 years, 2 months ago (2016-09-25 23:17:59 UTC) #22
Sami
On 2016/09/25 23:17:59, haraken wrote: > On 2016/09/23 09:59:45, Sami wrote: > > On 2016/09/22 ...
4 years, 2 months ago (2016-09-26 17:26:05 UTC) #24
Ken Russell (switch to Gerrit)
Thanks Sami for fixing this. LGTM
4 years, 2 months ago (2016-09-26 17:48:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341043002/40001
4 years, 2 months ago (2016-09-26 17:53:21 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-26 20:17:41 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 20:21:23 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fcfd66a5660a6ec631facdc050e8f8fc3ded7858
Cr-Commit-Position: refs/heads/master@{#420975}

Powered by Google App Engine
This is Rietveld 408576698