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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 11196021: Only GVD::DestroyTextures() on CrOS for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 9fdf9dee66f761ad7ed2bca0b54b161b185109e0..c69e35e948d74d3b7a6cfb8df3936aca36e0c632 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -215,7 +215,10 @@ void GpuVideoDecoder::DestroyVDA() {
base::Bind(&VideoDecodeAccelerator::Destroy, weak_vda_),
base::Bind(&GpuVideoDecoder::Release, this));
+// TODO(posciak): enable for all.
+#ifdef OS_CHROMEOS
DestroyTextures();
+#endif
}
void GpuVideoDecoder::Read(const ReadCB& read_cb) {
@@ -540,7 +543,10 @@ GpuVideoDecoder::~GpuVideoDecoder() {
}
bitstream_buffers_in_decoder_.clear();
+// TODO(posciak): enable for all.
+#ifdef OS_CHROMEOS
DestroyTextures();
+#endif
}
void GpuVideoDecoder::EnsureDemuxOrDecode() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698