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

Unified Diff: ui/ozone/platform/dri/hardware_display_plane.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/dri/hardware_display_plane.h
diff --git a/ui/ozone/platform/dri/hardware_display_plane.h b/ui/ozone/platform/dri/hardware_display_plane.h
deleted file mode 100644
index dd79f7680233dfb151b83b5437d2ec4b7e02101e..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/hardware_display_plane.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// 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_DRI_HARDWARE_DISPLAY_PLANE_H_
-#define UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_
-
-#include <stddef.h>
-#include <stdint.h>
-#include <xf86drmMode.h>
-
-#include "base/basictypes.h"
-#include "ui/ozone/platform/dri/scoped_drm_types.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ui {
-
-class DriWrapper;
-
-class HardwareDisplayPlane {
- public:
- HardwareDisplayPlane(DriWrapper* drm,
- drmModePropertySetPtr atomic_property_set,
- ScopedDrmPlanePtr plane);
-
- ~HardwareDisplayPlane();
-
- bool Initialize();
-
- bool CanUseForCrtc(uint32_t crtc_id);
- bool SetPlaneData(uint32_t crtc_id,
- uint32_t framebuffer,
- const gfx::Rect& crtc_rect,
- const gfx::Rect& src_rect);
-
- bool in_use() const { return in_use_; }
- void set_in_use(bool in_use) { in_use_ = in_use; }
-
- private:
- struct Property {
- Property();
- bool Initialize(DriWrapper* drm,
- const char* name,
- const ScopedDrmObjectPropertyPtr& plane_properties);
- uint32_t id_;
- };
- // Object containing the connection to the graphics device and wraps the API
- // calls to control it.
- DriWrapper* drm_;
-
- // Not owned.
- drmModePropertySetPtr property_set_;
-
- ScopedDrmPlanePtr plane_;
- uint32_t plane_id_;
- bool in_use_;
-
- Property crtc_prop_;
- Property fb_prop_;
- Property crtc_x_prop_;
- Property crtc_y_prop_;
- Property crtc_w_prop_;
- Property crtc_h_prop_;
- Property src_x_prop_;
- Property src_y_prop_;
- Property src_w_prop_;
- Property src_h_prop_;
-
- DISALLOW_COPY_AND_ASSIGN(HardwareDisplayPlane);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_HARDWARE_DISPLAY_PLANE_H_
« no previous file with comments | « ui/ozone/platform/dri/hardware_display_controller_unittest.cc ('k') | ui/ozone/platform/dri/hardware_display_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698