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

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

Issue 552553002: Fix the uses of T* conversion operator from scoped_refptr<T> which is now removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/screen_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/hardware_display_controller.cc
diff --git a/ui/ozone/platform/dri/hardware_display_controller.cc b/ui/ozone/platform/dri/hardware_display_controller.cc
index cead9494f3331ac28920a63c2c33e915f260e0e2..7d411886b146c34942233bbb284dae89f06af558 100644
--- a/ui/ozone/platform/dri/hardware_display_controller.cc
+++ b/ui/ozone/platform/dri/hardware_display_controller.cc
@@ -96,7 +96,7 @@ HardwareDisplayController::~HardwareDisplayController() {
bool HardwareDisplayController::Modeset(const OverlayPlane& primary,
drmModeModeInfo mode) {
TRACE_EVENT0("dri", "HDC::Modeset");
- DCHECK(primary.buffer);
+ DCHECK(primary.buffer.get());
pending_page_flips_ = 0;
bool status = true;
for (size_t i = 0; i < crtc_states_.size(); ++i) {
@@ -117,7 +117,7 @@ bool HardwareDisplayController::Enable() {
TRACE_EVENT0("dri", "HDC::Enable");
DCHECK(!current_planes_.empty());
OverlayPlane primary = GetPrimaryPlane(current_planes_);
- DCHECK(primary.buffer);
+ DCHECK(primary.buffer.get());
pending_page_flips_ = 0;
bool status = true;
for (size_t i = 0; i < crtc_states_.size(); ++i)
@@ -286,7 +286,7 @@ bool HardwareDisplayController::SchedulePageFlipOnCrtc(
const OverlayPlaneList& overlays,
CrtcState* state) {
const OverlayPlane& primary = GetPrimaryPlane(overlays);
- DCHECK(primary.buffer);
+ DCHECK(primary.buffer.get());
if (primary.buffer->GetSize() != gfx::Size(mode_.hdisplay, mode_.vdisplay)) {
LOG(WARNING) << "Trying to pageflip a buffer with the wrong size. Expected "
« no previous file with comments | « ui/ozone/platform/dri/dri_surface.cc ('k') | ui/ozone/platform/dri/screen_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698