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

Unified Diff: content/common/gpu/gpu_memory_manager_unittest.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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 | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_manager_unittest.cc
diff --git a/content/common/gpu/gpu_memory_manager_unittest.cc b/content/common/gpu/gpu_memory_manager_unittest.cc
index d877ef6bbc45fea997d33835bdfd5e93bbc66c62..743ce21f629722d083d3e63ad5c0d60c36e617c7 100644
--- a/content/common/gpu/gpu_memory_manager_unittest.cc
+++ b/content/common/gpu/gpu_memory_manager_unittest.cc
@@ -88,7 +88,7 @@ class FakeClient : public GpuMemoryManagerClient {
if (!share_group_) {
memory_tracker_ = new FakeMemoryTracker();
tracking_group_.reset(
- memmgr_->CreateTrackingGroup(0, memory_tracker_));
+ memmgr_->CreateTrackingGroup(0, memory_tracker_.get()));
}
client_state_.reset(memmgr_->CreateClientState(this, false, true));
}
@@ -104,9 +104,9 @@ class FakeClient : public GpuMemoryManagerClient {
, tracking_group_(NULL) {
memory_tracker_ = new FakeMemoryTracker();
tracking_group_.reset(
- memmgr_->CreateTrackingGroup(0, memory_tracker_));
- client_state_.reset(memmgr_->CreateClientState(
- this, surface_id != 0, visible));
+ memmgr_->CreateTrackingGroup(0, memory_tracker_.get()));
+ client_state_.reset(
+ memmgr_->CreateClientState(this, surface_id != 0, visible));
}
virtual ~FakeClient() {
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698