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

Unified Diff: ui/gfx/ozone/impl/hardware_display_controller.cc

Issue 49303002: [Ozone] Rename software implementation files to use Dri prefix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ifdef Created 7 years, 1 month 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/gfx/ozone/impl/hardware_display_controller.cc
diff --git a/ui/gfx/ozone/impl/hardware_display_controller_ozone.cc b/ui/gfx/ozone/impl/hardware_display_controller.cc
similarity index 82%
rename from ui/gfx/ozone/impl/hardware_display_controller_ozone.cc
rename to ui/gfx/ozone/impl/hardware_display_controller.cc
index 2885904c9622245c1d59b8af5126c0f136549c2b..edd4b38f3e984682ea78447a8c6318e4b867898d 100644
--- a/ui/gfx/ozone/impl/hardware_display_controller_ozone.cc
+++ b/ui/gfx/ozone/impl/hardware_display_controller.cc
@@ -2,20 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/gfx/ozone/impl/hardware_display_controller_ozone.h"
+#include "ui/gfx/ozone/impl/hardware_display_controller.h"
#include <errno.h>
#include <string.h>
#include "base/basictypes.h"
#include "base/logging.h"
-#include "ui/gfx/ozone/impl/drm_skbitmap_ozone.h"
-#include "ui/gfx/ozone/impl/drm_wrapper_ozone.h"
-#include "ui/gfx/ozone/impl/software_surface_ozone.h"
+#include "ui/gfx/ozone/impl/dri_skbitmap.h"
+#include "ui/gfx/ozone/impl/dri_surface.h"
+#include "ui/gfx/ozone/impl/dri_wrapper.h"
namespace gfx {
-HardwareDisplayControllerOzone::HardwareDisplayControllerOzone()
+HardwareDisplayController::HardwareDisplayController()
: drm_(NULL),
connector_id_(0),
crtc_id_(0),
@@ -25,8 +25,8 @@ HardwareDisplayControllerOzone::HardwareDisplayControllerOzone()
surface_() {
}
-void HardwareDisplayControllerOzone::SetControllerInfo(
- DrmWrapperOzone* drm,
+void HardwareDisplayController::SetControllerInfo(
+ DriWrapper* drm,
uint32_t connector_id,
uint32_t crtc_id,
uint32_t dpms_property_id,
@@ -40,7 +40,7 @@ void HardwareDisplayControllerOzone::SetControllerInfo(
state_ = UNINITIALIZED;
}
-HardwareDisplayControllerOzone::~HardwareDisplayControllerOzone() {
+HardwareDisplayController::~HardwareDisplayController() {
if (saved_crtc_) {
if (!drm_->SetCrtc(saved_crtc_, &connector_id_))
DLOG(ERROR) << "Failed to restore CRTC state: " << strerror(errno);
@@ -57,8 +57,8 @@ HardwareDisplayControllerOzone::~HardwareDisplayControllerOzone() {
}
bool
-HardwareDisplayControllerOzone::BindSurfaceToController(
- scoped_ptr<SoftwareSurfaceOzone> surface) {
+HardwareDisplayController::BindSurfaceToController(
+ scoped_ptr<DriSurface> surface) {
CHECK(state_ == UNINITIALIZED);
// Register the buffers.
@@ -82,7 +82,7 @@ HardwareDisplayControllerOzone::BindSurfaceToController(
return true;
}
-bool HardwareDisplayControllerOzone::SchedulePageFlip() {
+bool HardwareDisplayController::SchedulePageFlip() {
CHECK(state_ == SURFACE_INITIALIZED || state_ == INITIALIZED);
if (state_ == SURFACE_INITIALIZED) {
« no previous file with comments | « ui/gfx/ozone/impl/hardware_display_controller.h ('k') | ui/gfx/ozone/impl/hardware_display_controller_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698