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

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

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Work for comments Created 3 years, 5 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_HARDWARE_DISPLAY_PLANE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <xf86drmMode.h> 11 #include <xf86drmMode.h>
12 12
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "ui/ozone/platform/drm/common/scoped_drm_types.h" 16 #include "ui/ozone/platform/drm/common/scoped_drm_types.h"
17 17
18 struct drm_format_modifier;
19
18 namespace ui { 20 namespace ui {
19 21
20 class DrmDevice; 22 class DrmDevice;
21 23
22 class HardwareDisplayPlane { 24 class HardwareDisplayPlane {
23 public: 25 public:
24 enum Type { kDummy, kPrimary, kOverlay, kCursor }; 26 enum Type { kDummy, kPrimary, kOverlay, kCursor };
25 27
26 HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs); 28 HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs);
27 29
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Type type_ = kPrimary; 66 Type type_ = kPrimary;
65 std::vector<uint32_t> supported_formats_; 67 std::vector<uint32_t> supported_formats_;
66 std::vector<drm_format_modifier> supported_format_modifiers_; 68 std::vector<drm_format_modifier> supported_format_modifiers_;
67 69
68 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane); 70 DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
69 }; 71 };
70 72
71 } // namespace ui 73 } // namespace ui
72 74
73 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_ 75 #endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698