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

Issue 690713002: cc: check valid thread and resource origin for the resource rasterized. (Closed)

Created:
6 years, 1 month ago by dshwang
Modified:
6 years, 1 month ago
Reviewers:
reveman
CC:
chromium-reviews, cc-bugs_chromium.org, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: check valid thread and resource origin for the resource rasterized. Committed: https://crrev.com/0eb995b9dd49c78ea14f6cd3f7fa5aed9a61e851 Cr-Commit-Position: refs/heads/master@{#302125}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add comment why thread-safe #

Patch Set 3 : check if it's valid thread #

Total comments: 12

Patch Set 4 : Remove redundant DCHECK_IS_ON #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M cc/resources/resource_provider.h View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 24 (5 generated)
dshwang
could you review this small clean-up?
6 years, 1 month ago (2014-10-29 15:32:46 UTC) #2
dshwang
https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (left): https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc#oldcode731 cc/resources/resource_provider.cc:731: DCHECK(resource->origin != Resource::External); It cannot be Resource::Delegated, which means ...
6 years, 1 month ago (2014-10-29 15:34:20 UTC) #3
danakj
-aelias +reveman
6 years, 1 month ago (2014-10-29 15:43:41 UTC) #5
reveman
https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc#newcode1075 cc/resources/resource_provider.cc:1075: if (!resource_->gpu_memory_buffer) { This function might be used from ...
6 years, 1 month ago (2014-10-29 16:02:24 UTC) #7
dshwang
Thank you for review. https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc#newcode1075 cc/resources/resource_provider.cc:1075: if (!resource_->gpu_memory_buffer) { On 2014/10/29 ...
6 years, 1 month ago (2014-10-29 16:48:25 UTC) #8
reveman
https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc#newcode1075 cc/resources/resource_provider.cc:1075: if (!resource_->gpu_memory_buffer) { On 2014/10/29 16:48:25, dshwang wrote: > ...
6 years, 1 month ago (2014-10-29 17:07:45 UTC) #9
dshwang
It's not important change, but I reply what is correct in my opinion. https://codereview.chromium.org/690713002/diff/1/cc/resources/resource_provider.cc File ...
6 years, 1 month ago (2014-10-29 17:32:52 UTC) #10
reveman
I think it's better to explicitly move the ownership of the GpuMemoryBuffer to the lock ...
6 years, 1 month ago (2014-10-29 18:15:25 UTC) #11
dshwang
On 2014/10/29 18:15:25, reveman wrote: > I think it's better to explicitly move the ownership ...
6 years, 1 month ago (2014-10-29 18:21:43 UTC) #12
reveman
On 2014/10/29 18:21:43, dshwang wrote: > On 2014/10/29 18:15:25, reveman wrote: > > I think ...
6 years, 1 month ago (2014-10-29 18:45:58 UTC) #13
dshwang
On 2014/10/29 18:45:58, reveman wrote: > > I see. I agree. > > I'll update ...
6 years, 1 month ago (2014-10-29 20:38:00 UTC) #14
reveman
https://codereview.chromium.org/690713002/diff/40001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/690713002/diff/40001/cc/resources/resource_provider.cc#newcode1051 cc/resources/resource_provider.cc:1051: DCHECK(thread_checker_.CalledOnValidThread()); No need to use DCHECK. This is already ...
6 years, 1 month ago (2014-10-29 21:08:27 UTC) #15
dshwang
Thank you for review. https://codereview.chromium.org/690713002/diff/40001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/690713002/diff/40001/cc/resources/resource_provider.cc#newcode1051 cc/resources/resource_provider.cc:1051: DCHECK(thread_checker_.CalledOnValidThread()); On 2014/10/29 21:08:26, reveman ...
6 years, 1 month ago (2014-10-30 05:58:12 UTC) #16
dshwang
On 2014/10/30 05:58:12, dshwang wrote: > https://codereview.chromium.org/690713002/diff/40001/cc/resources/resource_provider.cc#newcode1079 > cc/resources/resource_provider.cc:1079: > DCHECK(!thread_checker_.CalledOnValidThread()); > On 2014/10/29 21:08:26, ...
6 years, 1 month ago (2014-10-30 06:04:10 UTC) #18
reveman
lgtm
6 years, 1 month ago (2014-10-30 17:21:13 UTC) #19
dshwang
On 2014/10/30 17:21:13, reveman wrote: > lgtm Thank you for review!
6 years, 1 month ago (2014-10-30 17:30:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/690713002/80001
6 years, 1 month ago (2014-10-30 17:31:55 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001)
6 years, 1 month ago (2014-10-30 19:09:32 UTC) #23
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 19:10:19 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0eb995b9dd49c78ea14f6cd3f7fa5aed9a61e851
Cr-Commit-Position: refs/heads/master@{#302125}

Powered by Google App Engine
This is Rietveld 408576698