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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 24762003: Set the texture to cleared in VideoDecodeAccelerator::PictureReady. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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: content/common/gpu/media/gpu_video_decode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.h b/content/common/gpu/media/gpu_video_decode_accelerator.h
index e085c537232496a3273d193583f9f50992056e0e..8da06494715c5205d3b92f7dff364dd5c8172dfa 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -81,6 +81,9 @@ class GpuVideoDecodeAccelerator
// Called on IO thread when |filter_| has been removed.
void OnFilterRemoved();
+ // Sets the texture to cleared. Returns false if an error has occurred.
+ bool SetTextureCleared(const media::Picture& picture);
+
// Message to Send() when initialization is done. Is only non-NULL during
// initialization and is owned by the IPC channel underlying the
// GpuCommandBufferStub.
@@ -117,6 +120,12 @@ class GpuVideoDecodeAccelerator
// Weak pointers will be invalidated on IO thread.
base::WeakPtrFactory<Client> weak_factory_for_io_;
+ // Picture buffer ID that have not set level cleared.
+ std::vector<int32> buffer_ids_;
+
+ // Texture ID that have not set level cleared.
+ std::vector<uint32> texture_ids_;
Ami GONE FROM CHROMIUM 2013/09/26 16:21:56 comments for this and previous field could be clea
wuchengli 2013/09/30 16:11:21 Done.
+
DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
};

Powered by Google App Engine
This is Rietveld 408576698