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/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/debug/trace_event_synthetic_delay.h" | |
12 #include "base/logging.h" | 10 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
15 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
16 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
17 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
19 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
| 18 #include "base/trace_event/trace_event.h" |
| 19 #include "base/trace_event/trace_event_synthetic_delay.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "cc/base/switches.h" | 21 #include "cc/base/switches.h" |
22 #include "cc/debug/benchmark_instrumentation.h" | 22 #include "cc/debug/benchmark_instrumentation.h" |
23 #include "cc/output/output_surface.h" | 23 #include "cc/output/output_surface.h" |
24 #include "cc/trees/layer_tree_host.h" | 24 #include "cc/trees/layer_tree_host.h" |
25 #include "content/child/npapi/webplugin.h" | 25 #include "content/child/npapi/webplugin.h" |
26 #include "content/common/gpu/client/context_provider_command_buffer.h" | 26 #include "content/common/gpu/client/context_provider_command_buffer.h" |
27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
28 #include "content/common/gpu/gpu_process_launch_causes.h" | 28 #include "content/common/gpu/gpu_process_launch_causes.h" |
29 #include "content/common/input/synthetic_gesture_packet.h" | 29 #include "content/common/input/synthetic_gesture_packet.h" |
(...skipping 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2428 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2428 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
2429 video_hole_frames_.AddObserver(frame); | 2429 video_hole_frames_.AddObserver(frame); |
2430 } | 2430 } |
2431 | 2431 |
2432 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2432 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
2433 video_hole_frames_.RemoveObserver(frame); | 2433 video_hole_frames_.RemoveObserver(frame); |
2434 } | 2434 } |
2435 #endif // defined(VIDEO_HOLE) | 2435 #endif // defined(VIDEO_HOLE) |
2436 | 2436 |
2437 } // namespace content | 2437 } // namespace content |
OLD | NEW |