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

Unified Diff: media/base/video_frame_metadata.h

Issue 1688033005: Monitor VideoResourceUpdater reusing destructed resource in Debug mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and add new VideoFrameMetada field. Created 4 years, 10 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
Index: media/base/video_frame_metadata.h
diff --git a/media/base/video_frame_metadata.h b/media/base/video_frame_metadata.h
index 12112a43ad0efc8969340ec539acf36698c8aafd..84a7b8cc8c4f79b5f3bfbd0b5858b272aea63522 100644
--- a/media/base/video_frame_metadata.h
+++ b/media/base/video_frame_metadata.h
@@ -94,6 +94,15 @@ class MEDIA_EXPORT VideoFrameMetadata {
// measurements would be used as feedback.
RESOURCE_UTILIZATION,
+ // This field indicates if the VideoFrame content has uploaded as
miu 2016/02/22 21:17:37 This is a nice comment, but it belongs in VideoRes
xjz 2016/02/23 03:36:03 Done.
+ // PlaneResource. Previously VideoResourceUpdater used VideoFrame pointer,
+ // timestamp and plane_index as the unique ID for each PlaneResource. When
+ // the original VideoFrame is destroyed and re-created a new VideoFrame
+ // with the same pointer, if the client always set the timestamp to zero,
+ // the old resource will be incorrectly reused. This field is introduced to
+ // prevent this happening.
+ RESOURCE_UPDATER_FLAG,
miu 2016/02/22 21:17:37 Please move this up (to before RESOURCE_UTILIZATIO
xjz 2016/02/23 03:36:03 Done.
+
NUM_KEYS
};
« cc/resources/video_resource_updater.cc ('K') | « cc/resources/video_resource_updater.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698