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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 22912014: Correctly use IsThreadedCompositingEnabled in content_browsertests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
14 #include "base/debug/trace_event.h" 14 #include "base/debug/trace_event.h"
15 #include "base/i18n/rtl.h" 15 #include "base/i18n/rtl.h"
16 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/metrics/field_trial.h" 18 #include "base/metrics/field_trial.h"
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
20 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
21 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
22 #include "cc/output/compositor_frame.h" 22 #include "cc/output/compositor_frame.h"
23 #include "cc/output/compositor_frame_ack.h" 23 #include "cc/output/compositor_frame_ack.h"
24 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 24 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
25 #include "content/browser/gpu/compositor_util.h"
25 #include "content/browser/gpu/gpu_process_host.h" 26 #include "content/browser/gpu/gpu_process_host.h"
26 #include "content/browser/gpu/gpu_process_host_ui_shim.h" 27 #include "content/browser/gpu/gpu_process_host_ui_shim.h"
27 #include "content/browser/gpu/gpu_surface_tracker.h" 28 #include "content/browser/gpu/gpu_surface_tracker.h"
28 #include "content/browser/renderer_host/backing_store.h" 29 #include "content/browser/renderer_host/backing_store.h"
29 #include "content/browser/renderer_host/backing_store_manager.h" 30 #include "content/browser/renderer_host/backing_store_manager.h"
30 #include "content/browser/renderer_host/dip_util.h" 31 #include "content/browser/renderer_host/dip_util.h"
31 #include "content/browser/renderer_host/input/immediate_input_router.h" 32 #include "content/browser/renderer_host/input/immediate_input_router.h"
32 #include "content/browser/renderer_host/overscroll_controller.h" 33 #include "content/browser/renderer_host/overscroll_controller.h"
33 #include "content/browser/renderer_host/render_process_host_impl.h" 34 #include "content/browser/renderer_host/render_process_host_impl.h"
34 #include "content/browser/renderer_host/render_view_host_impl.h" 35 #include "content/browser/renderer_host/render_view_host_impl.h"
35 #include "content/browser/renderer_host/render_widget_helper.h" 36 #include "content/browser/renderer_host/render_widget_helper.h"
36 #include "content/browser/renderer_host/render_widget_host_delegate.h" 37 #include "content/browser/renderer_host/render_widget_host_delegate.h"
37 #include "content/common/accessibility_messages.h" 38 #include "content/common/accessibility_messages.h"
38 #include "content/common/content_constants_internal.h" 39 #include "content/common/content_constants_internal.h"
39 #include "content/common/gpu/gpu_messages.h" 40 #include "content/common/gpu/gpu_messages.h"
40 #include "content/common/input_messages.h" 41 #include "content/common/input_messages.h"
41 #include "content/common/view_messages.h" 42 #include "content/common/view_messages.h"
42 #include "content/port/browser/render_widget_host_view_port.h" 43 #include "content/port/browser/render_widget_host_view_port.h"
43 #include "content/public/browser/compositor_util.h"
44 #include "content/public/browser/native_web_keyboard_event.h" 44 #include "content/public/browser/native_web_keyboard_event.h"
45 #include "content/public/browser/notification_service.h" 45 #include "content/public/browser/notification_service.h"
46 #include "content/public/browser/notification_types.h" 46 #include "content/public/browser/notification_types.h"
47 #include "content/public/browser/user_metrics.h" 47 #include "content/public/browser/user_metrics.h"
48 #include "content/public/common/content_constants.h" 48 #include "content/public/common/content_constants.h"
49 #include "content/public/common/content_switches.h" 49 #include "content/public/common/content_switches.h"
50 #include "content/public/common/result_codes.h" 50 #include "content/public/common/result_codes.h"
51 #include "skia/ext/image_operations.h" 51 #include "skia/ext/image_operations.h"
52 #include "skia/ext/platform_canvas.h" 52 #include "skia/ext/platform_canvas.h"
53 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 53 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
(...skipping 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2478 int process_id = (b->first.second >> 32) & 0xffffffff; 2478 int process_id = (b->first.second >> 32) & 0xffffffff;
2479 RenderWidgetHost* rwh = 2479 RenderWidgetHost* rwh =
2480 RenderWidgetHost::FromID(process_id, routing_id); 2480 RenderWidgetHost::FromID(process_id, routing_id);
2481 if (!rwh) 2481 if (!rwh)
2482 continue; 2482 continue;
2483 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); 2483 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info);
2484 } 2484 }
2485 } 2485 }
2486 2486
2487 } // namespace content 2487 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698