Index: content/renderer/gpu_benchmarking_extension.cc |
diff --git a/content/renderer/gpu_benchmarking_extension.cc b/content/renderer/gpu_benchmarking_extension.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f11e2867a0f72566385f3f3ea0c1815a4c57c15 |
--- /dev/null |
+++ b/content/renderer/gpu_benchmarking_extension.cc |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/renderer/gpu_benchmarking_extension.h" |
+ |
+#include "v8/include/v8.h" |
+ |
+const char kGpuBenchmarkingExtensionName[] = "v8/GpuBenchmarking"; |
+ |
+namespace content { |
+ |
+class GpuBenchmarkingWrapper : public v8::Extension { |
+ public: |
+ GpuBenchmarkingWrapper() : |
+ 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.
|
+ |
+ virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( |
+ v8::Handle<v8::String> name) { |
+ return v8::Handle<v8::FunctionTemplate>(); |
+ } |
+}; |
+ |
+v8::Extension* GpuBenchmarkingExtension::Get() { |
+ return new GpuBenchmarkingWrapper(); |
+} |
+ |
+} // namespace content |