| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "cc/debug/benchmark_instrumentation.h" | 26 #include "cc/debug/benchmark_instrumentation.h" |
| 27 #include "cc/output/output_surface.h" | 27 #include "cc/output/output_surface.h" |
| 28 #include "cc/scheduler/begin_frame_source.h" | 28 #include "cc/scheduler/begin_frame_source.h" |
| 29 #include "cc/trees/layer_tree_host.h" | 29 #include "cc/trees/layer_tree_host.h" |
| 30 #include "components/scheduler/renderer/render_widget_scheduling_state.h" | 30 #include "components/scheduler/renderer/render_widget_scheduling_state.h" |
| 31 #include "components/scheduler/renderer/renderer_scheduler.h" | 31 #include "components/scheduler/renderer/renderer_scheduler.h" |
| 32 #include "content/child/npapi/webplugin.h" | 32 #include "content/child/npapi/webplugin.h" |
| 33 #include "content/common/content_switches_internal.h" | 33 #include "content/common/content_switches_internal.h" |
| 34 #include "content/common/gpu/client/context_provider_command_buffer.h" | 34 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 35 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 35 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 36 #include "content/common/gpu/gpu_process_launch_causes.h" | 36 #include "content/common/gpu_process_launch_causes.h" |
| 37 #include "content/common/input/synthetic_gesture_packet.h" | 37 #include "content/common/input/synthetic_gesture_packet.h" |
| 38 #include "content/common/input/web_input_event_traits.h" | 38 #include "content/common/input/web_input_event_traits.h" |
| 39 #include "content/common/input_messages.h" | 39 #include "content/common/input_messages.h" |
| 40 #include "content/common/swapped_out_messages.h" | 40 #include "content/common/swapped_out_messages.h" |
| 41 #include "content/common/view_messages.h" | 41 #include "content/common/view_messages.h" |
| 42 #include "content/public/common/content_features.h" | 42 #include "content/public/common/content_features.h" |
| 43 #include "content/public/common/content_switches.h" | 43 #include "content/public/common/content_switches.h" |
| 44 #include "content/public/common/context_menu_params.h" | 44 #include "content/public/common/context_menu_params.h" |
| 45 #include "content/renderer/cursor_utils.h" | 45 #include "content/renderer/cursor_utils.h" |
| 46 #include "content/renderer/devtools/render_widget_screen_metrics_emulator.h" | 46 #include "content/renderer/devtools/render_widget_screen_metrics_emulator.h" |
| (...skipping 2104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2151 } | 2151 } |
| 2152 | 2152 |
| 2153 float RenderWidget::GetOriginalDeviceScaleFactor() const { | 2153 float RenderWidget::GetOriginalDeviceScaleFactor() const { |
| 2154 return | 2154 return |
| 2155 screen_metrics_emulator_ ? | 2155 screen_metrics_emulator_ ? |
| 2156 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : | 2156 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : |
| 2157 device_scale_factor_; | 2157 device_scale_factor_; |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 } // namespace content | 2160 } // namespace content |
| OLD | NEW |