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

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

Issue 16703020: Rewrite scoped_ptr<T>(NULL) to use the default ctor in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up insanity Created 7 years, 6 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_channel_manager.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.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 743ce21f629722d083d3e63ad5c0d60c36e617c7..2c601c9fe5a023be7dd1f1cf54d8e4439bb3c8cb 100644
--- a/content/common/gpu/gpu_memory_manager_unittest.cc
+++ b/content/common/gpu/gpu_memory_manager_unittest.cc
@@ -80,11 +80,10 @@ class FakeClient : public GpuMemoryManagerClient {
// This will create a client with no surface
FakeClient(GpuMemoryManager* memmgr, GpuMemoryManagerClient* share_group)
- : memmgr_(memmgr)
- , total_gpu_memory_(0)
- , share_group_(share_group)
- , memory_tracker_(NULL)
- , tracking_group_(NULL) {
+ : memmgr_(memmgr),
+ total_gpu_memory_(0),
+ share_group_(share_group),
+ memory_tracker_(NULL) {
if (!share_group_) {
memory_tracker_ = new FakeMemoryTracker();
tracking_group_.reset(
@@ -94,14 +93,11 @@ class FakeClient : public GpuMemoryManagerClient {
}
// This will create a client with a surface
- FakeClient(GpuMemoryManager* memmgr,
- int32 surface_id,
- bool visible)
- : memmgr_(memmgr)
- , total_gpu_memory_(0)
- , share_group_(NULL)
- , memory_tracker_(NULL)
- , tracking_group_(NULL) {
+ FakeClient(GpuMemoryManager* memmgr, int32 surface_id, bool visible)
+ : memmgr_(memmgr),
+ total_gpu_memory_(0),
+ share_group_(NULL),
+ memory_tracker_(NULL) {
memory_tracker_ = new FakeMemoryTracker();
tracking_group_.reset(
memmgr_->CreateTrackingGroup(0, memory_tracker_.get()));
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698