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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « ui/ozone/demo/surfaceless_gl_renderer.cc ('k') | ui/ozone/platform/drm/common/drm_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f374f0de2e040151bd24363745b67b0154efc72d..174dd78cf03f39397863b3b35b1e8fe73a647460 100644
--- a/ui/ozone/platform/cast/surface_factory_cast.cc
+++ b/ui/ozone/platform/cast/surface_factory_cast.cc
@@ -190,6 +190,9 @@ scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap(
}
int GetDmaBufFd() override { return 0; }
int GetDmaBufPitch() override { return 0; }
+ gfx::BufferFormat GetBufferFormat() override {
+ return gfx::BufferFormat::LAST;
+ }
bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
int plane_z_order,
gfx::OverlayTransform plane_transform,
@@ -197,8 +200,11 @@ scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap(
const gfx::RectF& crop_rect) override {
return true;
}
- void SetScalingCallback(const ScalingCallback& scaling_callback) override {}
- scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override {
+ void SetProcessingCallback(
+ const ProcessingCallback& processing_callback) override {}
+ scoped_refptr<NativePixmap> GetProcessedPixmap(
+ gfx::Size target_size,
+ gfx::BufferFormat target_format) override {
return nullptr;
}
gfx::NativePixmapHandle ExportHandle() override {
« no previous file with comments | « ui/ozone/demo/surfaceless_gl_renderer.cc ('k') | ui/ozone/platform/drm/common/drm_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698