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

Issue 214543011: Initialize cc::VideoFrameProviderClientImpl::active_video_layer_ to NULL. (Closed)

Created:
6 years, 9 months ago by scherkus (not reviewing)
Modified:
6 years, 8 months ago
Reviewers:
danakj, enne (OOO)
CC:
chromium-reviews, feature-media-reviews_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

Initialize cc::VideoFrameProviderClientImpl::active_video_layer_. As of r259048, WebMediaPlayerImpl now notifies the compositor of new frames directly on the compositing thread. If VideoFrameProviderClientImpl::DidRecieveFrame() is called before VideoLayerImpl::DidBecomeActive() is called, VideoFrameProviderClientImpl may attempt to call VideoLayerImpl::SetNeedsRedraw() using an uninitialized pointer. BUG=357145 R=enne@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260360

Patch Set 1 #

Patch Set 2 : fix test #

Patch Set 3 : fix test #

Total comments: 2

Patch Set 4 : EXPECT_EQ() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M cc/layers/video_frame_provider_client_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/video_frame_provider_client_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/video_layer_impl_unittest.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M cc/test/fake_video_frame_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
scherkus (not reviewing)
few things: 1) not sure how useful the test is ... it's a bit contrived ...
6 years, 9 months ago (2014-03-27 20:30:30 UTC) #1
scherkus (not reviewing)
danakj: ping!
6 years, 9 months ago (2014-03-28 20:39:57 UTC) #2
enne (OOO)
lgtm I don't like "this shouldn't crash" style tests. What about having the test verify ...
6 years, 9 months ago (2014-03-28 21:01:34 UTC) #3
enne (OOO)
Also, please format your change description to 72 columns max. :)
6 years, 9 months ago (2014-03-28 21:01:56 UTC) #4
scherkus (not reviewing)
agree w.r.t. crash tests PTAL at the new test
6 years, 9 months ago (2014-03-28 21:36:41 UTC) #5
scherkus (not reviewing)
https://codereview.chromium.org/214543011/diff/40001/cc/layers/video_layer_impl_unittest.cc File cc/layers/video_layer_impl_unittest.cc (right): https://codereview.chromium.org/214543011/diff/40001/cc/layers/video_layer_impl_unittest.cc#newcode94 cc/layers/video_layer_impl_unittest.cc:94: EXPECT_TRUE(client->active_video_layer()); this should probably be an EXPECT_EQ()
6 years, 9 months ago (2014-03-28 21:37:29 UTC) #6
enne (OOO)
Test changes lgtm, thanks! (Also, sorry to be pedantic about change descriptions, but the first ...
6 years, 9 months ago (2014-03-28 21:39:35 UTC) #7
scherkus (not reviewing)
On 2014/03/28 21:39:35, enne wrote: > Test changes lgtm, thanks! > > (Also, sorry to ...
6 years, 9 months ago (2014-03-28 21:50:28 UTC) #8
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 9 months ago (2014-03-28 21:50:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/214543011/60001
6 years, 9 months ago (2014-03-28 21:53:53 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 22:23:46 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-28 22:23:47 UTC) #12
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 9 months ago (2014-03-28 23:13:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/214543011/60001
6 years, 9 months ago (2014-03-28 23:14:21 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-29 00:11:23 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-29 00:11:24 UTC) #16
enne (OOO)
The CQ bit was checked by enne@chromium.org
6 years, 9 months ago (2014-03-29 00:12:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/214543011/60001
6 years, 9 months ago (2014-03-29 00:16:28 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-29 01:51:00 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-29 01:51:00 UTC) #20
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 8 months ago (2014-03-29 02:28:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/214543011/60001
6 years, 8 months ago (2014-03-29 02:28:44 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-29 04:08:47 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-03-29 04:08:47 UTC) #24
scherkus (not reviewing)
6 years, 8 months ago (2014-03-29 04:27:41 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 manually as r260360 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698