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

Unified Diff: ui/ozone/platform/cast/surface_factory_cast.cc

Issue 2678343011: chromeos: decode video into NV12 format instead of RGBA in vaapi decoder (Closed)
Patch Set: decide scanout in runtime Created 3 years, 6 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: ui/ozone/platform/cast/surface_factory_cast.cc
diff --git a/ui/ozone/platform/cast/surface_factory_cast.cc b/ui/ozone/platform/cast/surface_factory_cast.cc
index fca7ae8613d33b10f12daa9fa741192684a5ba68..586a0a7bed29e9b91672a59adcf27d824c902b5b 100644
--- a/ui/ozone/platform/cast/surface_factory_cast.cc
+++ b/ui/ozone/platform/cast/surface_factory_cast.cc
@@ -62,6 +62,9 @@ class CastPixmap : public gfx::NativePixmap {
gfx::BufferFormat GetBufferFormat() const override {
return gfx::BufferFormat::BGRA_8888;
}
+ gfx::BufferUsage GetBufferUsage() const override {
+ return gfx::BufferUsage::SCANOUT;
+ }
gfx::Size GetBufferSize() const override { return gfx::Size(); }
bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,

Powered by Google App Engine
This is Rietveld 408576698