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 #include "content/renderer/gpu/gpu_benchmarking_extension.h" | 5 #include "content/renderer/gpu/gpu_benchmarking_extension.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/base64.h" | 11 #include "base/base64.h" |
10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/macros.h" |
12 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
13 #include "cc/layers/layer.h" | 16 #include "cc/layers/layer.h" |
14 #include "content/common/input/synthetic_gesture_params.h" | 17 #include "content/common/input/synthetic_gesture_params.h" |
15 #include "content/common/input/synthetic_pinch_gesture_params.h" | 18 #include "content/common/input/synthetic_pinch_gesture_params.h" |
16 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" | 19 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" |
17 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 20 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
18 #include "content/common/input/synthetic_tap_gesture_params.h" | 21 #include "content/common/input/synthetic_tap_gesture_params.h" |
19 #include "content/public/child/v8_value_converter.h" | 22 #include "content/public/child/v8_value_converter.h" |
20 #include "content/public/renderer/chrome_object_extensions_utils.h" | 23 #include "content/public/renderer/chrome_object_extensions_utils.h" |
21 #include "content/public/renderer/render_thread.h" | 24 #include "content/public/renderer/render_thread.h" |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 | 867 |
865 return context.compositor()->SendMessageToMicroBenchmark(id, value.Pass()); | 868 return context.compositor()->SendMessageToMicroBenchmark(id, value.Pass()); |
866 } | 869 } |
867 | 870 |
868 bool GpuBenchmarking::HasGpuProcess() { | 871 bool GpuBenchmarking::HasGpuProcess() { |
869 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel(); | 872 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel(); |
870 return !!gpu_channel; | 873 return !!gpu_channel; |
871 } | 874 } |
872 | 875 |
873 } // namespace content | 876 } // namespace content |
OLD | NEW |