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

Unified Diff: media/gpu/dxva_picture_buffer_win.cc

Issue 2752143002: [dxvavda] Mark NV12 textures as allowing overlays. (Closed)
Patch Set: Created 3 years, 9 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 | « media/gpu/dxva_picture_buffer_win.h ('k') | media/gpu/dxva_video_decode_accelerator_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_picture_buffer_win.cc
diff --git a/media/gpu/dxva_picture_buffer_win.cc b/media/gpu/dxva_picture_buffer_win.cc
index 44f27f950a43c5f2bf2da1c6493deae677d50fbf..bcaa177609d9c66acf3e8491c76dc14a0aba77b8 100644
--- a/media/gpu/dxva_picture_buffer_win.cc
+++ b/media/gpu/dxva_picture_buffer_win.cc
@@ -370,6 +370,10 @@ bool PbufferPictureBuffer::CopySurfaceComplete(
return true;
}
+bool PbufferPictureBuffer::AllowOverlay() const {
+ return false;
+}
+
PbufferPictureBuffer::PbufferPictureBuffer(const PictureBuffer& buffer)
: DXVAPictureBuffer(buffer),
decoding_surface_(NULL),
@@ -508,6 +512,10 @@ bool EGLStreamPictureBuffer::BindSampleToTexture(
return true;
}
+bool EGLStreamPictureBuffer::AllowOverlay() const {
+ return true;
+}
+
EGLStreamCopyPictureBuffer::EGLStreamCopyPictureBuffer(
const PictureBuffer& buffer)
: DXVAPictureBuffer(buffer), stream_(nullptr) {}
@@ -671,4 +679,8 @@ bool EGLStreamCopyPictureBuffer::ReusePictureBuffer() {
return true;
}
+bool EGLStreamCopyPictureBuffer::AllowOverlay() const {
+ return true;
+}
+
} // namespace media
« no previous file with comments | « media/gpu/dxva_picture_buffer_win.h ('k') | media/gpu/dxva_video_decode_accelerator_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698