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

Unified Diff: ui/ozone/platform/drm/gpu/hardware_display_plane.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/hardware_display_plane.h
diff --git a/ui/ozone/platform/drm/gpu/hardware_display_plane.h b/ui/ozone/platform/drm/gpu/hardware_display_plane.h
new file mode 100644
index 0000000000000000000000000000000000000000..cef1adaed8f90951de93f68ed271db60b6962a08
--- /dev/null
+++ b/ui/ozone/platform/drm/gpu/hardware_display_plane.h
@@ -0,0 +1,56 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
+#define UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/basictypes.h"
+#include "ui/ozone/ozone_export.h"
+#include "ui/ozone/platform/drm/common/scoped_drm_types.h"
+
+namespace gfx {
+class Rect;
+}
+
+namespace ui {
+
+class DrmDevice;
+
+class OZONE_EXPORT HardwareDisplayPlane {
+ public:
+ HardwareDisplayPlane(uint32_t plane_id, uint32_t possible_crtcs);
+
+ virtual ~HardwareDisplayPlane();
+
+ virtual bool Initialize(DrmDevice* drm);
+
+ bool CanUseForCrtc(uint32_t crtc_index);
+
+ bool in_use() const { return in_use_; }
+ void set_in_use(bool in_use) { in_use_ = in_use; }
+
+ bool is_dummy() const { return is_dummy_; }
+ void set_is_dummy(bool is_dummy) { is_dummy_ = is_dummy; }
+
+ uint32_t plane_id() const { return plane_id_; }
+
+ void set_owning_crtc(uint32_t crtc) { owning_crtc_ = crtc; }
+ uint32_t owning_crtc() const { return owning_crtc_; }
+
+ protected:
+ uint32_t plane_id_ = 0;
+ uint32_t possible_crtcs_ = 0;
+ uint32_t owning_crtc_ = 0;
+ bool in_use_ = false;
+ bool is_dummy_ = false;
+
+ DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRM_GPU_HARDWARE_DISPLAY_PLANE_H_
« no previous file with comments | « ui/ozone/platform/drm/gpu/hardware_display_controller_unittest.cc ('k') | ui/ozone/platform/drm/gpu/hardware_display_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698