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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_buffer.cc

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extends the lifetime of VaapiWrapper 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
Index: ui/ozone/platform/drm/gpu/gbm_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
index 2e269bfebe87b6784f5c936b3b0a4c5b5553fa9d..0386e4722c965bd25bee21163455b64b4f7e73c4 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -93,7 +93,7 @@ void GbmPixmap::SetProcessingCallback(
scoped_refptr<NativePixmap> GbmPixmap::GetProcessedPixmap(
gfx::Size target_size,
gfx::BufferFormat target_format) {
- return processing_callback_.Run(target_size, target_format);
+ return processing_callback_.Run(this, target_size, target_format);
}
gfx::NativePixmapHandle GbmPixmap::ExportHandle() {
@@ -129,6 +129,10 @@ gfx::BufferFormat GbmPixmap::GetBufferFormat() {
return GetBufferFormatFromFourCCFormat(buffer_->GetFramebufferPixelFormat());
}
+gfx::Size GbmPixmap::size() {
+ return buffer_->GetSize();
+}
+
bool GbmPixmap::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
int plane_z_order,
gfx::OverlayTransform plane_transform,

Powered by Google App Engine
This is Rietveld 408576698