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

Unified Diff: base/memory/ref_counted.h

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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: base/memory/ref_counted.h
diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h
index ce0d94a81be1eca6f5181687fa2a395636d60bdf..d76643e60dba37d147c84949afbd2496d620f3ae 100644
--- a/base/memory/ref_counted.h
+++ b/base/memory/ref_counted.h
@@ -7,9 +7,12 @@
#pragma once
#include <cassert>
+#include <cstdio>
+#include <unistd.h>
scshunt 2012/07/06 16:39:03 Note to self: remove.
#include "base/atomic_ref_count.h"
#include "base/base_export.h"
+#include "base/logging.h"
#include "base/threading/thread_collision_warner.h"
namespace base {
@@ -256,6 +259,7 @@ class scoped_refptr {
T* get() const { return ptr_; }
operator T*() const { return ptr_; }
T* operator->() const {
+ DCHECK(ptr_ != NULL);
Fady Samuel 2012/07/06 15:14:44 Looks unnecessary. Revert please.
scshunt 2012/07/06 16:39:03 It was for debugging; assert() wasn't causing a st
assert(ptr_ != NULL);
return ptr_;
}

Powered by Google App Engine
This is Rietveld 408576698