OLD | NEW |
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 #ifndef CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ | 5 #ifndef CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ |
6 #define CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ | 6 #define CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "gin/wrappable.h" | 9 #include "gin/wrappable.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 class WebFrame; | 12 class WebLocalFrame; |
13 } | 13 } |
14 | 14 |
15 namespace gin { | 15 namespace gin { |
16 class Arguments; | 16 class Arguments; |
17 } | 17 } |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 class Isolate; | 20 class Isolate; |
21 class Object; | 21 class Object; |
22 } | 22 } |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 // gin class for gpu benchmarking | 26 // gin class for gpu benchmarking |
27 class GpuBenchmarking : public gin::Wrappable<GpuBenchmarking> { | 27 class GpuBenchmarking : public gin::Wrappable<GpuBenchmarking> { |
28 public: | 28 public: |
29 static gin::WrapperInfo kWrapperInfo; | 29 static gin::WrapperInfo kWrapperInfo; |
30 static void Install(blink::WebFrame* frame); | 30 static void Install(blink::WebLocalFrame* frame); |
31 | 31 |
32 private: | 32 private: |
33 GpuBenchmarking(); | 33 GpuBenchmarking(); |
34 ~GpuBenchmarking() override; | 34 ~GpuBenchmarking() override; |
35 | 35 |
36 // gin::Wrappable. | 36 // gin::Wrappable. |
37 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 37 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
38 v8::Isolate* isolate) override; | 38 v8::Isolate* isolate) override; |
39 | 39 |
40 // JavaScript handlers. | 40 // JavaScript handlers. |
(...skipping 23 matching lines...) Expand all Loading... |
64 bool HasGpuChannel(); | 64 bool HasGpuChannel(); |
65 bool HasGpuProcess(); | 65 bool HasGpuProcess(); |
66 void GetGpuDriverBugWorkarounds(gin::Arguments* args); | 66 void GetGpuDriverBugWorkarounds(gin::Arguments* args); |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); | 68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ | 73 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ |
OLD | NEW |