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..a534b14ea5372887877d7606229d93e4cc96fa80 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::GetBufferSize() const { |
+ return buffer_->GetSize(); |
+} |
+ |
bool GbmPixmap::ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
int plane_z_order, |
gfx::OverlayTransform plane_transform, |