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

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

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reset the Wrapper when the Frame goes away. Created 5 years 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
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 <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "cc/layers/layer.h" 13 #include "cc/layers/layer.h"
14 #include "content/common/input/synthetic_gesture_params.h" 14 #include "content/common/input/synthetic_gesture_params.h"
15 #include "content/common/input/synthetic_pinch_gesture_params.h" 15 #include "content/common/input/synthetic_pinch_gesture_params.h"
16 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" 16 #include "content/common/input/synthetic_smooth_drag_gesture_params.h"
17 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 17 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
18 #include "content/common/input/synthetic_tap_gesture_params.h" 18 #include "content/common/input/synthetic_tap_gesture_params.h"
19 #include "content/public/child/v8_value_converter.h" 19 #include "content/public/child/v8_value_converter.h"
20 #include "content/public/renderer/chrome_object_extensions_utils.h"
20 #include "content/public/renderer/render_thread.h" 21 #include "content/public/renderer/render_thread.h"
21 #include "content/renderer/chrome_object_extensions_utils.h"
22 #include "content/renderer/gpu/render_widget_compositor.h" 22 #include "content/renderer/gpu/render_widget_compositor.h"
23 #include "content/renderer/render_thread_impl.h" 23 #include "content/renderer/render_thread_impl.h"
24 #include "content/renderer/render_view_impl.h" 24 #include "content/renderer/render_view_impl.h"
25 #include "content/renderer/skia_benchmarking_extension.h" 25 #include "content/renderer/skia_benchmarking_extension.h"
26 #include "gin/arguments.h" 26 #include "gin/arguments.h"
27 #include "gin/handle.h" 27 #include "gin/handle.h"
28 #include "gin/object_template_builder.h" 28 #include "gin/object_template_builder.h"
29 #include "third_party/WebKit/public/web/WebImageCache.h" 29 #include "third_party/WebKit/public/web/WebImageCache.h"
30 #include "third_party/WebKit/public/web/WebKit.h" 30 #include "third_party/WebKit/public/web/WebKit.h"
31 #include "third_party/WebKit/public/web/WebLocalFrame.h" 31 #include "third_party/WebKit/public/web/WebLocalFrame.h"
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 863
864 return context.compositor()->SendMessageToMicroBenchmark(id, value.Pass()); 864 return context.compositor()->SendMessageToMicroBenchmark(id, value.Pass());
865 } 865 }
866 866
867 bool GpuBenchmarking::HasGpuProcess() { 867 bool GpuBenchmarking::HasGpuProcess() {
868 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel(); 868 GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel();
869 return !!gpu_channel; 869 return !!gpu_channel;
870 } 870 }
871 871
872 } // namespace content 872 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698