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

Unified Diff: ui/gl/gl_image_ref_counted_memory.cc

Issue 496313004: Remove implicit conversions from scoped_refptr to T* in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/gl/gl_image_ref_counted_memory.cc
diff --git a/ui/gl/gl_image_ref_counted_memory.cc b/ui/gl/gl_image_ref_counted_memory.cc
index e6d5ba6e4a2e4f66aa35fc33ed60baccf7c474e9..ed4e03f6a3a3ecf0866196f9825648cc5a8832b3 100644
--- a/ui/gl/gl_image_ref_counted_memory.cc
+++ b/ui/gl/gl_image_ref_counted_memory.cc
@@ -15,7 +15,7 @@ GLImageRefCountedMemory::GLImageRefCountedMemory(const gfx::Size& size,
}
GLImageRefCountedMemory::~GLImageRefCountedMemory() {
- DCHECK(!ref_counted_memory_);
+ DCHECK(!ref_counted_memory_.get());
}
bool GLImageRefCountedMemory::Initialize(
@@ -23,7 +23,7 @@ bool GLImageRefCountedMemory::Initialize(
if (!HasValidFormat())
return false;
- DCHECK(!ref_counted_memory_);
+ DCHECK(!ref_counted_memory_.get());
ref_counted_memory_ = ref_counted_memory;
GLImageMemory::Initialize(ref_counted_memory_->front());
return true;

Powered by Google App Engine
This is Rietveld 408576698