| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| 7 | 7 |
| 8 #include "base/files/scoped_file.h" | 8 #include "base/files/scoped_file.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/gfx/buffer_types.h" | 10 #include "ui/gfx/buffer_types.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const ProcessingCallback& processing_callback) override; | 48 const ProcessingCallback& processing_callback) override; |
| 49 scoped_refptr<NativePixmap> GetProcessedPixmap( | 49 scoped_refptr<NativePixmap> GetProcessedPixmap( |
| 50 gfx::Size target_size, | 50 gfx::Size target_size, |
| 51 gfx::BufferFormat target_format) override; | 51 gfx::BufferFormat target_format) override; |
| 52 | 52 |
| 53 // NativePixmap: | 53 // NativePixmap: |
| 54 void* GetEGLClientBuffer() override; | 54 void* GetEGLClientBuffer() override; |
| 55 int GetDmaBufFd() override; | 55 int GetDmaBufFd() override; |
| 56 int GetDmaBufPitch() override; | 56 int GetDmaBufPitch() override; |
| 57 gfx::BufferFormat GetBufferFormat() override; | 57 gfx::BufferFormat GetBufferFormat() override; |
| 58 gfx::Size GetBufferSize() const override; |
| 58 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 59 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 59 int plane_z_order, | 60 int plane_z_order, |
| 60 gfx::OverlayTransform plane_transform, | 61 gfx::OverlayTransform plane_transform, |
| 61 const gfx::Rect& display_bounds, | 62 const gfx::Rect& display_bounds, |
| 62 const gfx::RectF& crop_rect) override; | 63 const gfx::RectF& crop_rect) override; |
| 63 gfx::NativePixmapHandle ExportHandle() override; | 64 gfx::NativePixmapHandle ExportHandle() override; |
| 64 | 65 |
| 65 scoped_refptr<GbmBuffer> buffer() { return buffer_; } | 66 scoped_refptr<GbmBuffer> buffer() { return buffer_; } |
| 66 | 67 |
| 67 private: | 68 private: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 78 GbmSurfaceFactory* surface_manager_; | 79 GbmSurfaceFactory* surface_manager_; |
| 79 | 80 |
| 80 ProcessingCallback processing_callback_; | 81 ProcessingCallback processing_callback_; |
| 81 | 82 |
| 82 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); | 83 DISALLOW_COPY_AND_ASSIGN(GbmPixmap); |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace ui | 86 } // namespace ui |
| 86 | 87 |
| 87 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ | 88 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_BUFFER_H_ |
| OLD | NEW |