OLD | NEW |
---|---|
(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 | |
OLD | NEW |