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

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

Issue 1730023004: Revert of Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 7 #include <stddef.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/base64.h" 11 #include "base/base64.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "cc/layers/layer.h" 17 #include "cc/layers/layer.h"
18 #include "content/common/gpu/gpu_host_messages.h" 18 #include "content/common/gpu/gpu_messages.h"
19 #include "content/common/input/synthetic_gesture_params.h" 19 #include "content/common/input/synthetic_gesture_params.h"
20 #include "content/common/input/synthetic_pinch_gesture_params.h" 20 #include "content/common/input/synthetic_pinch_gesture_params.h"
21 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" 21 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
22 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 22 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
23 #include "content/common/input/synthetic_tap_gesture_params.h" 23 #include "content/common/input/synthetic_tap_gesture_params.h"
24 #include "content/public/child/v8_value_converter.h" 24 #include "content/public/child/v8_value_converter.h"
25 #include "content/public/common/content_switches.h" 25 #include "content/public/common/content_switches.h"
26 #include "content/public/renderer/chrome_object_extensions_utils.h" 26 #include "content/public/renderer/chrome_object_extensions_utils.h"
27 #include "content/public/renderer/render_thread.h" 27 #include "content/public/renderer/render_thread.h"
28 #include "content/renderer/gpu/render_widget_compositor.h" 28 #include "content/renderer/gpu/render_widget_compositor.h"
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 bool GpuBenchmarking::HasGpuProcess() { 910 bool GpuBenchmarking::HasGpuProcess() {
911 bool has_gpu_process = false; 911 bool has_gpu_process = false;
912 if (!RenderThreadImpl::current()->Send( 912 if (!RenderThreadImpl::current()->Send(
913 new GpuHostMsg_HasGpuProcess(&has_gpu_process))) 913 new GpuHostMsg_HasGpuProcess(&has_gpu_process)))
914 return false; 914 return false;
915 915
916 return has_gpu_process; 916 return has_gpu_process;
917 } 917 }
918 918
919 } // namespace content 919 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698