Commit b43e0d0b authored by sandersd's avatar sandersd Committed by Commit bot

Use NotifyError() to report errors in VTVideoDecodeAccelerator.

BUG=133828

Review URL: https://codereview.chromium.org/642453003

Cr-Commit-Position: refs/heads/master@{#302182}
parent 7119263a
...@@ -81,15 +81,17 @@ class VTVideoDecodeAccelerator ...@@ -81,15 +81,17 @@ class VTVideoDecodeAccelerator
}; };
// Methods for interacting with VideoToolbox. Run on |decoder_thread_|. // Methods for interacting with VideoToolbox. Run on |decoder_thread_|.
void ConfigureDecoder( bool ConfigureDecoder(
const std::vector<const uint8_t*>& nalu_data_ptrs, const std::vector<const uint8_t*>& nalu_data_ptrs,
const std::vector<size_t>& nalu_data_sizes); const std::vector<size_t>& nalu_data_sizes);
void DecodeTask(const media::BitstreamBuffer); void DecodeTask(const media::BitstreamBuffer&);
void FlushTask(); void FlushTask();
void DropBitstream(int32_t bitstream_id);
// Methods for interacting with |client_|. Run on |gpu_task_runner_|. // Methods for interacting with |client_|. Run on |gpu_task_runner_|.
void OutputTask(DecodedFrame frame); void OutputTask(DecodedFrame frame);
void SizeChangedTask(gfx::Size coded_size); void SizeChangedTask(gfx::Size coded_size);
void NotifyError(Error error);
// Send decoded frames up to and including |up_to_bitstream_id|, and return // Send decoded frames up to and including |up_to_bitstream_id|, and return
// the last sent |bitstream_id|. // the last sent |bitstream_id|.
...@@ -120,6 +122,7 @@ class VTVideoDecodeAccelerator ...@@ -120,6 +122,7 @@ class VTVideoDecodeAccelerator
// //
CGLContextObj cgl_context_; CGLContextObj cgl_context_;
media::VideoDecodeAccelerator::Client* client_; media::VideoDecodeAccelerator::Client* client_;
bool has_error_; // client_->NotifyError() called.
gfx::Size texture_size_; gfx::Size texture_size_;
std::queue<PendingAction> pending_actions_; std::queue<PendingAction> pending_actions_;
std::queue<int32_t> pending_bitstream_ids_; std::queue<int32_t> pending_bitstream_ids_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment