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/browser/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/android/build_info.h" | 10 #include "base/android/build_info.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "cc/surfaces/surface_factory.h" | 31 #include "cc/surfaces/surface_factory.h" |
32 #include "cc/surfaces/surface_id_allocator.h" | 32 #include "cc/surfaces/surface_id_allocator.h" |
33 #include "cc/surfaces/surface_manager.h" | 33 #include "cc/surfaces/surface_manager.h" |
34 #include "cc/trees/layer_tree_host.h" | 34 #include "cc/trees/layer_tree_host.h" |
35 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 35 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
36 #include "content/browser/android/composited_touch_handle_drawable.h" | 36 #include "content/browser/android/composited_touch_handle_drawable.h" |
37 #include "content/browser/android/content_view_core_impl.h" | 37 #include "content/browser/android/content_view_core_impl.h" |
38 #include "content/browser/android/overscroll_controller_android.h" | 38 #include "content/browser/android/overscroll_controller_android.h" |
39 #include "content/browser/android/popup_touch_handle_drawable.h" | 39 #include "content/browser/android/popup_touch_handle_drawable.h" |
40 #include "content/browser/android/synchronous_compositor_base.h" | 40 #include "content/browser/android/synchronous_compositor_base.h" |
| 41 #include "content/browser/compositor/gl_helper.h" |
41 #include "content/browser/devtools/render_frame_devtools_agent_host.h" | 42 #include "content/browser/devtools/render_frame_devtools_agent_host.h" |
42 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 43 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
43 #include "content/browser/gpu/compositor_util.h" | 44 #include "content/browser/gpu/compositor_util.h" |
44 #include "content/browser/gpu/gpu_data_manager_impl.h" | 45 #include "content/browser/gpu/gpu_data_manager_impl.h" |
45 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 46 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
46 #include "content/browser/media/android/media_web_contents_observer_android.h" | 47 #include "content/browser/media/android/media_web_contents_observer_android.h" |
47 #include "content/browser/renderer_host/compositor_impl_android.h" | 48 #include "content/browser/renderer_host/compositor_impl_android.h" |
48 #include "content/browser/renderer_host/dip_util.h" | 49 #include "content/browser/renderer_host/dip_util.h" |
49 #include "content/browser/renderer_host/frame_metadata_util.h" | 50 #include "content/browser/renderer_host/frame_metadata_util.h" |
50 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h
" | 51 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h
" |
51 #include "content/browser/renderer_host/input/ui_touch_selection_helper.h" | 52 #include "content/browser/renderer_host/input/ui_touch_selection_helper.h" |
52 #include "content/browser/renderer_host/input/web_input_event_builders_android.h
" | 53 #include "content/browser/renderer_host/input/web_input_event_builders_android.h
" |
53 #include "content/browser/renderer_host/input/web_input_event_util.h" | 54 #include "content/browser/renderer_host/input/web_input_event_util.h" |
54 #include "content/browser/renderer_host/render_process_host_impl.h" | 55 #include "content/browser/renderer_host/render_process_host_impl.h" |
55 #include "content/browser/renderer_host/render_view_host_impl.h" | 56 #include "content/browser/renderer_host/render_view_host_impl.h" |
56 #include "content/browser/renderer_host/render_widget_host_impl.h" | 57 #include "content/browser/renderer_host/render_widget_host_impl.h" |
57 #include "content/common/gpu/client/gl_helper.h" | |
58 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 58 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
59 #include "content/common/gpu/gpu_host_messages.h" | 59 #include "content/common/gpu/gpu_host_messages.h" |
60 #include "content/common/gpu/gpu_process_launch_causes.h" | 60 #include "content/common/gpu/gpu_process_launch_causes.h" |
61 #include "content/common/input/did_overscroll_params.h" | 61 #include "content/common/input/did_overscroll_params.h" |
62 #include "content/common/input_messages.h" | 62 #include "content/common/input_messages.h" |
63 #include "content/common/view_messages.h" | 63 #include "content/common/view_messages.h" |
64 #include "content/public/browser/android/compositor.h" | 64 #include "content/public/browser/android/compositor.h" |
65 #include "content/public/browser/browser_thread.h" | 65 #include "content/public/browser/browser_thread.h" |
66 #include "content/public/browser/devtools_agent_host.h" | 66 #include "content/public/browser/devtools_agent_host.h" |
67 #include "content/public/browser/render_view_host.h" | 67 #include "content/public/browser/render_view_host.h" |
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2036 results->orientationAngle = display.RotationAsDegree(); | 2036 results->orientationAngle = display.RotationAsDegree(); |
2037 results->orientationType = | 2037 results->orientationType = |
2038 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 2038 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
2039 gfx::DeviceDisplayInfo info; | 2039 gfx::DeviceDisplayInfo info; |
2040 results->depth = info.GetBitsPerPixel(); | 2040 results->depth = info.GetBitsPerPixel(); |
2041 results->depthPerComponent = info.GetBitsPerComponent(); | 2041 results->depthPerComponent = info.GetBitsPerComponent(); |
2042 results->isMonochrome = (results->depthPerComponent == 0); | 2042 results->isMonochrome = (results->depthPerComponent == 0); |
2043 } | 2043 } |
2044 | 2044 |
2045 } // namespace content | 2045 } // namespace content |
OLD | NEW |