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

Unified Diff: media/gpu/vaapi_video_decode_accelerator.h

Issue 2642623002: Fix Vaapi VDA flush handling during resolution change (Closed)
Patch Set: fix compile due to style check Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/gpu/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/vaapi_video_decode_accelerator.h
diff --git a/media/gpu/vaapi_video_decode_accelerator.h b/media/gpu/vaapi_video_decode_accelerator.h
index 8228a928cfdbc5d756982351abd39a408bf34a65..241c002d9c5aa9230d019bbe54e36f95814e01bf 100644
--- a/media/gpu/vaapi_video_decode_accelerator.h
+++ b/media/gpu/vaapi_video_decode_accelerator.h
@@ -91,9 +91,8 @@ class MEDIA_GPU_EXPORT VaapiVideoDecodeAccelerator
// Notify the client that an error has occurred and decoding cannot continue.
void NotifyError(Error error);
- // Map the received input buffer into this process' address space and
- // queue it for decode.
- void MapAndQueueNewInputBuffer(const BitstreamBuffer& bitstream_buffer);
+ // Queue a input buffer for decode.
+ void QueueInputBuffer(const BitstreamBuffer& bitstream_buffer);
// Get a new input buffer from the queue and set it up in decoder. This will
// sleep if no input buffers are available. Return true if a new buffer has
@@ -196,8 +195,6 @@ class MEDIA_GPU_EXPORT VaapiVideoDecodeAccelerator
kDecoding,
// Resetting, waiting for decoder to finish current task and cleanup.
kResetting,
- // Flushing, waiting for decoder to finish current task and cleanup.
- kFlushing,
// Idle, decoder in state ready to start/resume decoding.
kIdle,
// Destroying, waiting for the decoder to finish current task.
@@ -214,7 +211,10 @@ class MEDIA_GPU_EXPORT VaapiVideoDecodeAccelerator
InputBuffer();
~InputBuffer();
- int32_t id;
+ // Indicates this is a dummy buffer for flush request.
+ bool is_flush() const { return shm == nullptr; }
+
+ int32_t id = -1;
std::unique_ptr<SharedMemoryRegion> shm;
};
« no previous file with comments | « no previous file | media/gpu/vaapi_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698