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

Unified Diff: ui/ozone/platform/dri/dri_cursor.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/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc ('k') | ui/ozone/platform/dri/dri_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_cursor.cc
diff --git a/ui/ozone/platform/dri/dri_cursor.cc b/ui/ozone/platform/dri/dri_cursor.cc
index f2f71c2e758a618ac7e3c7d350248ce51b1b5a4e..18260b91e40103688f2957ac4718d3b556894af4 100644
--- a/ui/ozone/platform/dri/dri_cursor.cc
+++ b/ui/ozone/platform/dri/dri_cursor.cc
@@ -31,7 +31,7 @@ void DriCursor::SetCursor(gfx::AcceleratedWidget widget,
return;
cursor_ = cursor;
- if (cursor_)
+ if (cursor_.get())
hardware_->SetHardwareCursor(
cursor_window_, cursor_->bitmap(), bitmap_location());
else
@@ -50,7 +50,7 @@ void DriCursor::MoveCursorTo(gfx::AcceleratedWidget widget,
cursor_location_.SetToMax(gfx::PointF(0, 0));
cursor_location_.SetToMin(gfx::PointF(size.width(), size.height()));
- if (cursor_)
+ if (cursor_.get())
hardware_->MoveHardwareCursor(cursor_window_, bitmap_location());
}
@@ -63,7 +63,7 @@ gfx::AcceleratedWidget DriCursor::GetCursorWindow() {
}
bool DriCursor::IsCursorVisible() {
- return cursor_;
+ return cursor_.get();
}
gfx::PointF DriCursor::location() {
« no previous file with comments | « ui/ozone/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc ('k') | ui/ozone/platform/dri/dri_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698