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

Issue 7620003: Send error reply to GpuVideoDecodeAccelerator::Initialize when not available (Closed)

Created:
9 years, 4 months ago by piman
Modified:
9 years, 4 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, acolwell+watch_chromium.org, annacc+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing)
Visibility:
Public.

Description

Send error reply to GpuVideoDecodeAccelerator::Initialize when not available BUG=None TEST=Pepper Flash on x86 with HW decoder on Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96500

Patch Set 1 #

Total comments: 3

Patch Set 2 : Also send Initialize's reply from NotifyError #

Total comments: 2

Patch Set 3 : use NotifyError to signal Initialize failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
piman
9 years, 4 months ago (2011-08-11 04:41:42 UTC) #1
Ami GONE FROM CHROMIUM
LGTM as far as it goes but I think you can clean up a bug ...
9 years, 4 months ago (2011-08-11 04:53:15 UTC) #2
piman
http://codereview.chromium.org/7620003/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (right): http://codereview.chromium.org/7620003/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode89 content/common/gpu/media/gpu_video_decode_accelerator.cc:89: if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( On 2011/08/11 04:53:19, Ami Fischman wrote: ...
9 years, 4 months ago (2011-08-11 05:08:18 UTC) #3
Ami GONE FROM CHROMIUM
Yes, NotifiyInitializeDone is XOR NotifyError (only one will be called). My WDYT was conversational :) ...
9 years, 4 months ago (2011-08-11 05:12:42 UTC) #4
piman
http://codereview.chromium.org/7620003/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (right): http://codereview.chromium.org/7620003/diff/1/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode89 content/common/gpu/media/gpu_video_decode_accelerator.cc:89: if (!Send(new AcceleratedVideoDecoderHostMsg_ErrorNotification( On 2011/08/11 05:08:18, piman wrote: > ...
9 years, 4 months ago (2011-08-11 21:02:01 UTC) #5
Ami GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/7620003/diff/6001/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (right): http://codereview.chromium.org/7620003/diff/6001/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode120 content/common/gpu/media/gpu_video_decode_accelerator.cc:120: init_done_msg->set_reply_error(); FWIW, this can now call NotifyError() instead ...
9 years, 4 months ago (2011-08-11 21:04:10 UTC) #6
piman
http://codereview.chromium.org/7620003/diff/6001/content/common/gpu/media/gpu_video_decode_accelerator.cc File content/common/gpu/media/gpu_video_decode_accelerator.cc (right): http://codereview.chromium.org/7620003/diff/6001/content/common/gpu/media/gpu_video_decode_accelerator.cc#newcode120 content/common/gpu/media/gpu_video_decode_accelerator.cc:120: init_done_msg->set_reply_error(); On 2011/08/11 21:04:11, Ami Fischman wrote: > FWIW, ...
9 years, 4 months ago (2011-08-11 22:48:48 UTC) #7
Ami GONE FROM CHROMIUM
LGTM I could LGTM this CL all day!
9 years, 4 months ago (2011-08-11 22:56:38 UTC) #8
commit-bot: I haz the power
9 years, 4 months ago (2011-08-12 03:05:45 UTC) #9
Change committed as 96500

Powered by Google App Engine
This is Rietveld 408576698