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_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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 GbmSurfaceless(scoped_ptr<DrmWindowProxy> window, | 29 GbmSurfaceless(scoped_ptr<DrmWindowProxy> window, |
30 GbmSurfaceFactory* surface_manager); | 30 GbmSurfaceFactory* surface_manager); |
31 ~GbmSurfaceless() override; | 31 ~GbmSurfaceless() override; |
32 | 32 |
33 void QueueOverlayPlane(const OverlayPlane& plane); | 33 void QueueOverlayPlane(const OverlayPlane& plane); |
34 | 34 |
35 // SurfaceOzoneEGL: | 35 // SurfaceOzoneEGL: |
36 intptr_t GetNativeWindow() override; | 36 intptr_t GetNativeWindow() override; |
37 bool ResizeNativeWindow(const gfx::Size& viewport_size) override; | 37 bool ResizeNativeWindow(const gfx::Size& viewport_size) override; |
38 bool OnSwapBuffers() override; | 38 bool OnSwapBuffers() override; |
39 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override; | 39 void OnSwapBuffersAsync(const SwapCompletionCallback& callback) override; |
40 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override; | 40 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override; |
41 bool IsUniversalDisplayLinkDevice() override; | 41 bool IsUniversalDisplayLinkDevice() override; |
42 | 42 |
43 protected: | 43 protected: |
44 scoped_ptr<DrmWindowProxy> window_; | 44 scoped_ptr<DrmWindowProxy> window_; |
45 | 45 |
46 GbmSurfaceFactory* surface_manager_; | 46 GbmSurfaceFactory* surface_manager_; |
47 | 47 |
48 std::vector<OverlayPlane> planes_; | 48 std::vector<OverlayPlane> planes_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); | 50 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceless); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace ui | 53 } // namespace ui |
54 | 54 |
55 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ | 55 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACELESS_H_ |
OLD | NEW |