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

Side by Side Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 5 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 private: 79 private:
80 FilePath dirpath_; 80 FilePath dirpath_;
81 int layer_id_; 81 int layer_id_;
82 SkPicture picture_; 82 SkPicture picture_;
83 }; 83 };
84 84
85 class RenderingStatsEnumerator : public cc::RenderingStats::Enumerator { 85 class RenderingStatsEnumerator : public cc::RenderingStats::Enumerator {
86 public: 86 public:
87 RenderingStatsEnumerator(v8::Handle<v8::Object> stats_object) 87 explicit RenderingStatsEnumerator(v8::Handle<v8::Object> stats_object)
88 : stats_object(stats_object) { } 88 : stats_object(stats_object) { }
89 89
90 virtual void AddInt64(const char* name, int64 value) { 90 virtual void AddInt64(const char* name, int64 value) {
91 stats_object->Set(v8::String::New(name), v8::Number::New(value)); 91 stats_object->Set(v8::String::New(name), v8::Number::New(value));
92 } 92 }
93 93
94 virtual void AddDouble(const char* name, double value) { 94 virtual void AddDouble(const char* name, double value) {
95 stats_object->Set(v8::String::New(name), v8::Number::New(value)); 95 stats_object->Set(v8::String::New(name), v8::Number::New(value));
96 } 96 }
97 97
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 return v8::Undefined(); 444 return v8::Undefined();
445 } 445 }
446 }; 446 };
447 447
448 v8::Extension* GpuBenchmarkingExtension::Get() { 448 v8::Extension* GpuBenchmarkingExtension::Get() {
449 return new GpuBenchmarkingWrapper(); 449 return new GpuBenchmarkingWrapper();
450 } 450 }
451 451
452 } // namespace content 452 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698