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

Issue 292763002: Oilpan: simplify ImageBitmapTest heap clearing. (Closed)

Created:
6 years, 7 months ago by sof
Modified:
6 years, 7 months ago
CC:
blink-reviews, oilpan-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Oilpan: simplify ImageBitmapTest heap clearing. For ImageBitmapLiveResourcePriority, use a Persistent to hold onto a local ImageBitmap object rather than set up and rely on a full stack scan. R=wibling@chromium.org,haraken@chromium.org,ager@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174302

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add needed ALLOW_UNUSED attr decls #

Patch Set 3 : Tweak position of collectGarbage() call #

Total comments: 6

Patch Set 4 : Consistently use Persistents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -14 lines) Patch
M Source/core/frame/ImageBitmapTest.cpp View 1 2 3 2 chunks +7 lines, -14 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
haraken
https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp#newcode165 Source/core/frame/ImageBitmapTest.cpp:165: Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); hmm, I'm not quite sure if this change ...
6 years, 7 months ago (2014-05-19 13:28:02 UTC) #1
haraken
6 years, 7 months ago (2014-05-19 13:28:15 UTC) #2
sof
https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp#newcode165 Source/core/frame/ImageBitmapTest.cpp:165: Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); On 2014/05/19 13:28:02, haraken wrote: > > hmm, ...
6 years, 7 months ago (2014-05-19 13:31:30 UTC) #3
wibling-chromium
lgtm https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp#newcode165 Source/core/frame/ImageBitmapTest.cpp:165: Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); On 2014/05/19 13:28:02, haraken wrote: > > ...
6 years, 7 months ago (2014-05-19 13:34:36 UTC) #4
haraken
https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp#newcode165 Source/core/frame/ImageBitmapTest.cpp:165: Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); On 2014/05/19 13:31:30, sof wrote: > On 2014/05/19 ...
6 years, 7 months ago (2014-05-19 13:39:28 UTC) #5
haraken
LGTM.
6 years, 7 months ago (2014-05-19 13:41:03 UTC) #6
Mads Ager (chromium)
LGTM, thanks! https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp#newcode165 Source/core/frame/ImageBitmapTest.cpp:165: Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); Consider moving this to right after ...
6 years, 7 months ago (2014-05-19 13:52:46 UTC) #7
sof
https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/1/Source/core/frame/ImageBitmapTest.cpp#newcode165 Source/core/frame/ImageBitmapTest.cpp:165: Heap::collectGarbage(ThreadState::NoHeapPointersOnStack); On 2014/05/19 13:52:46, Mads Ager (chromium) wrote: > ...
6 years, 7 months ago (2014-05-19 14:12:57 UTC) #8
Mads Ager (chromium)
Still LGTM, wondering about the use of ASSERT_EQ vs EXPECT_EQ in these tests. We are ...
6 years, 7 months ago (2014-05-19 14:22:47 UTC) #9
sof
https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp#newcode151 Source/core/frame/ImageBitmapTest.cpp:151: RefPtrWillBeRawPtr<ImageBitmap> imageBitmapNoCrop ALLOW_UNUSED = ImageBitmap::create(imageNoCrop.get(), IntRect(0, 0, m_bitmap.width(), m_bitmap.height())); ...
6 years, 7 months ago (2014-05-19 14:33:28 UTC) #10
Mads Ager (chromium)
https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp#newcode151 Source/core/frame/ImageBitmapTest.cpp:151: RefPtrWillBeRawPtr<ImageBitmap> imageBitmapNoCrop ALLOW_UNUSED = ImageBitmap::create(imageNoCrop.get(), IntRect(0, 0, m_bitmap.width(), m_bitmap.height())); ...
6 years, 7 months ago (2014-05-19 15:00:48 UTC) #11
Mads Ager (chromium)
On 2014/05/19 15:00:48, Mads Ager (chromium) wrote: > https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp > File Source/core/frame/ImageBitmapTest.cpp (right): > > ...
6 years, 7 months ago (2014-05-19 15:09:43 UTC) #12
sof
https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp#newcode151 Source/core/frame/ImageBitmapTest.cpp:151: RefPtrWillBeRawPtr<ImageBitmap> imageBitmapNoCrop ALLOW_UNUSED = ImageBitmap::create(imageNoCrop.get(), IntRect(0, 0, m_bitmap.width(), m_bitmap.height())); ...
6 years, 7 months ago (2014-05-19 15:10:09 UTC) #13
Mads Ager (chromium)
PS: Please go ahead and land this. I'm just trying to understand what is going ...
6 years, 7 months ago (2014-05-19 15:11:04 UTC) #14
Mads Ager (chromium)
https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp#newcode151 Source/core/frame/ImageBitmapTest.cpp:151: RefPtrWillBeRawPtr<ImageBitmap> imageBitmapNoCrop ALLOW_UNUSED = ImageBitmap::create(imageNoCrop.get(), IntRect(0, 0, m_bitmap.width(), m_bitmap.height())); ...
6 years, 7 months ago (2014-05-19 15:15:02 UTC) #15
sof
https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp File Source/core/frame/ImageBitmapTest.cpp (right): https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp#newcode151 Source/core/frame/ImageBitmapTest.cpp:151: RefPtrWillBeRawPtr<ImageBitmap> imageBitmapNoCrop ALLOW_UNUSED = ImageBitmap::create(imageNoCrop.get(), IntRect(0, 0, m_bitmap.width(), m_bitmap.height())); ...
6 years, 7 months ago (2014-05-19 15:17:03 UTC) #16
Mads Ager (chromium)
On 2014/05/19 15:17:03, sof wrote: > https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp > File Source/core/frame/ImageBitmapTest.cpp (right): > > https://codereview.chromium.org/292763002/diff/40001/Source/core/frame/ImageBitmapTest.cpp#newcode151 > ...
6 years, 7 months ago (2014-05-19 15:19:52 UTC) #17
sof
On 2014/05/19 15:19:52, Mads Ager (chromium) wrote: > On 2014/05/19 15:17:03, sof wrote: > > ...
6 years, 7 months ago (2014-05-19 15:30:40 UTC) #18
Mads Ager (chromium)
Looks great! Ship it! :)
6 years, 7 months ago (2014-05-19 15:33:22 UTC) #19
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 7 months ago (2014-05-19 15:34:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/292763002/60001
6 years, 7 months ago (2014-05-19 15:34:28 UTC) #21
sof
Unit tests are showing green, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_oilpan_rel/builds/138
6 years, 7 months ago (2014-05-19 16:16:10 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-19 16:48:19 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-19 17:33:12 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/8165)
6 years, 7 months ago (2014-05-19 17:33:13 UTC) #25
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 7 months ago (2014-05-19 18:10:54 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/292763002/60001
6 years, 7 months ago (2014-05-19 18:11:07 UTC) #27
commit-bot: I haz the power
6 years, 7 months ago (2014-05-19 18:57:19 UTC) #28
Message was sent while issue was closed.
Change committed as 174302

Powered by Google App Engine
This is Rietveld 408576698