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

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

Issue 10532058: added gpu_benchmarking_extension boilerplate and hooked it up to a new switch. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/renderer/gpu_benchmarking_extension.h"
6
7 #include "v8/include/v8.h"
8
9 const char kGpuBenchmarkingExtensionName[] = "v8/GpuBenchmarking";
10
11 namespace content {
12
13 class GpuBenchmarkingWrapper : public v8::Extension {
14 public:
15 GpuBenchmarkingWrapper() :
16 v8::Extension(kGpuBenchmarkingExtensionName, "") {}
nduca 2012/06/08 00:36:03 lets put an empty object in here to establish the
dmurph 2012/06/08 18:36:22 Done.
17
18 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
19 v8::Handle<v8::String> name) {
20 return v8::Handle<v8::FunctionTemplate>();
21 }
22 };
23
24 v8::Extension* GpuBenchmarkingExtension::Get() {
25 return new GpuBenchmarkingWrapper();
26 }
27
28 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698