| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SURFACELESS_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // ScheduleOverlayPlane(..) to schedule the buffer for presentation. | 29 // ScheduleOverlayPlane(..) to schedule the buffer for presentation. |
| 30 class GbmSurfaceless : public gl::SurfacelessEGL { | 30 class GbmSurfaceless : public gl::SurfacelessEGL { |
| 31 public: | 31 public: |
| 32 GbmSurfaceless(GbmSurfaceFactory* surface_factory, | 32 GbmSurfaceless(GbmSurfaceFactory* surface_factory, |
| 33 std::unique_ptr<DrmWindowProxy> window, | 33 std::unique_ptr<DrmWindowProxy> window, |
| 34 gfx::AcceleratedWidget widget); | 34 gfx::AcceleratedWidget widget); |
| 35 | 35 |
| 36 void QueueOverlayPlane(const OverlayPlane& plane); | 36 void QueueOverlayPlane(const OverlayPlane& plane); |
| 37 | 37 |
| 38 // gl::GLSurface: | 38 // gl::GLSurface: |
| 39 bool Initialize(GLSurface::Format format) override; | 39 bool Initialize(gl::GLSurfaceFormat format) override; |
| 40 gfx::SwapResult SwapBuffers() override; | 40 gfx::SwapResult SwapBuffers() override; |
| 41 bool ScheduleOverlayPlane(int z_order, | 41 bool ScheduleOverlayPlane(int z_order, |
| 42 gfx::OverlayTransform transform, | 42 gfx::OverlayTransform transform, |
| 43 gl::GLImage* image, | 43 gl::GLImage* image, |
| 44 const gfx::Rect& bounds_rect, | 44 const gfx::Rect& bounds_rect, |
| 45 const gfx::RectF& crop_rect) override; | 45 const gfx::RectF& crop_rect) override; |
| 46 bool IsOffscreen() override; | 46 bool IsOffscreen() override; |
| 47 gfx::VSyncProvider* GetVSyncProvider() override; | 47 gfx::VSyncProvider* GetVSyncProvider() override; |
| 48 bool SupportsAsyncSwap() override; | 48 bool SupportsAsyncSwap() override; |
| 49 bool SupportsPostSubBuffer() override; | 49 bool SupportsPostSubBuffer() override; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool swap_buffers_pending_ = false; | 99 bool swap_buffers_pending_ = false; |
| 100 | 100 |
| 101 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; | 101 base::WeakPtrFactory<GbmSurfaceless> weak_factory_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); | 103 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace ui | 106 } // namespace ui |
| 107 | 107 |
| 108 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ | 108 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ |
| OLD | NEW |