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

Unified Diff: ui/ozone/platform/dri/crtc_controller.cc

Issue 698293002: ozone: Add PRESUBMIT.py to check patch formatting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « ui/ozone/platform/caca/caca_window.cc ('k') | ui/ozone/platform/dri/display_snapshot_dri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/crtc_controller.cc
diff --git a/ui/ozone/platform/dri/crtc_controller.cc b/ui/ozone/platform/dri/crtc_controller.cc
index f605e5f2dd2ee3d4c687a42122160c23109c00b9..3dd2e2e83ba92fca350a2bbed0b564b24161c654 100644
--- a/ui/ozone/platform/dri/crtc_controller.cc
+++ b/ui/ozone/platform/dri/crtc_controller.cc
@@ -31,10 +31,8 @@ CrtcController::~CrtcController() {
}
bool CrtcController::Modeset(const OverlayPlane& plane, drmModeModeInfo mode) {
- if (!drm_->SetCrtc(crtc_,
- plane.buffer->GetFramebufferId(),
- std::vector<uint32_t>(1, connector_),
- &mode)) {
+ if (!drm_->SetCrtc(crtc_, plane.buffer->GetFramebufferId(),
+ std::vector<uint32_t>(1, connector_), &mode)) {
LOG(ERROR) << "Failed to modeset: error='" << strerror(errno)
<< "' crtc=" << crtc_ << " connector=" << connector_
<< " framebuffer_id=" << plane.buffer->GetFramebufferId()
@@ -94,10 +92,8 @@ bool CrtcController::SchedulePageFlip(const OverlayPlaneList& overlays) {
const gfx::Size& size = plane.buffer->GetSize();
gfx::RectF crop_rect = plane.crop_rect;
crop_rect.Scale(size.width(), size.height());
- if (!drm_->PageFlipOverlay(crtc_,
- plane.buffer->GetFramebufferId(),
- plane.display_bounds,
- crop_rect,
+ if (!drm_->PageFlipOverlay(crtc_, plane.buffer->GetFramebufferId(),
+ plane.display_bounds, crop_rect,
plane.overlay_plane)) {
LOG(ERROR) << "Cannot display on overlay: " << strerror(errno);
return false;
« no previous file with comments | « ui/ozone/platform/caca/caca_window.cc ('k') | ui/ozone/platform/dri/display_snapshot_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698