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

Side by Side Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.h

Issue 1350473002: Revert of ozone: Remove the "drm" software composited platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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 unified diff | Download patch
OLDNEW
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_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "ui/ozone/platform/drm/gpu/drm_surface_factory.h"
9 #include "ui/ozone/public/surface_factory_ozone.h"
10 9
11 namespace ui { 10 namespace ui {
12 11
13 class DrmDeviceManager; 12 class DrmDeviceManager;
14 class DrmWindow; 13 class DrmWindow;
15 class GbmDevice; 14 class GbmDevice;
16 class ScreenManager; 15 class ScreenManager;
17 16
18 class GbmSurfaceFactory : public SurfaceFactoryOzone { 17 class GbmSurfaceFactory : public DrmSurfaceFactory {
19 public: 18 public:
20 GbmSurfaceFactory(bool allow_surfaceless); 19 GbmSurfaceFactory(bool allow_surfaceless);
21 ~GbmSurfaceFactory() override; 20 ~GbmSurfaceFactory() override;
22 21
23 void InitializeGpu(DrmDeviceManager* drm_device_manager, 22 void InitializeGpu(DrmDeviceManager* drm_device_manager,
24 ScreenManager* screen_manager); 23 ScreenManager* screen_manager);
25 24
26 // DrmSurfaceFactory: 25 // DrmSurfaceFactory:
27 intptr_t GetNativeDisplay() override; 26 intptr_t GetNativeDisplay() override;
28 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override; 27 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
(...skipping 12 matching lines...) Expand all
41 gfx::BufferFormat format, 40 gfx::BufferFormat format,
42 gfx::BufferUsage usage) override; 41 gfx::BufferUsage usage) override;
43 bool CanShowPrimaryPlaneAsOverlay() override; 42 bool CanShowPrimaryPlaneAsOverlay() override;
44 43
45 private: 44 private:
46 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget); 45 scoped_refptr<GbmDevice> GetGbmDevice(gfx::AcceleratedWidget widget);
47 46
48 bool allow_surfaceless_; 47 bool allow_surfaceless_;
49 48
50 DrmDeviceManager* drm_device_manager_; // Not owned. 49 DrmDeviceManager* drm_device_manager_; // Not owned.
51 ScreenManager* screen_manager_; // Not owned.
52
53 base::ThreadChecker thread_checker_;
54 50
55 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 51 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
56 }; 52 };
57 53
58 } // namespace ui 54 } // namespace ui
59 55
60 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_ 56 #endif // UI_OZONE_PLATFORM_DRM_GPU_GBM_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_surface_unittest.cc ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698