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 | 8 |
9 #include "base/android/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 #include "content/public/browser/render_view_host.h" | 61 #include "content/public/browser/render_view_host.h" |
62 #include "content/public/common/content_switches.h" | 62 #include "content/public/common/content_switches.h" |
63 #include "gpu/command_buffer/client/gles2_interface.h" | 63 #include "gpu/command_buffer/client/gles2_interface.h" |
64 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 64 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
65 #include "skia/ext/image_operations.h" | 65 #include "skia/ext/image_operations.h" |
66 #include "third_party/khronos/GLES2/gl2.h" | 66 #include "third_party/khronos/GLES2/gl2.h" |
67 #include "third_party/khronos/GLES2/gl2ext.h" | 67 #include "third_party/khronos/GLES2/gl2ext.h" |
68 #include "third_party/skia/include/core/SkCanvas.h" | 68 #include "third_party/skia/include/core/SkCanvas.h" |
69 #include "ui/base/android/window_android.h" | 69 #include "ui/base/android/window_android.h" |
70 #include "ui/base/android/window_android_compositor.h" | 70 #include "ui/base/android/window_android_compositor.h" |
71 #include "ui/events/gesture_detection/gesture_config_helper.h" | 71 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" |
72 #include "ui/events/gesture_detection/motion_event.h" | 72 #include "ui/events/gesture_detection/motion_event.h" |
73 #include "ui/gfx/android/device_display_info.h" | 73 #include "ui/gfx/android/device_display_info.h" |
74 #include "ui/gfx/android/java_bitmap.h" | 74 #include "ui/gfx/android/java_bitmap.h" |
75 #include "ui/gfx/android/view_configuration.h" | 75 #include "ui/gfx/android/view_configuration.h" |
76 #include "ui/gfx/display.h" | 76 #include "ui/gfx/display.h" |
77 #include "ui/gfx/screen.h" | 77 #include "ui/gfx/screen.h" |
78 #include "ui/gfx/size_conversions.h" | 78 #include "ui/gfx/size_conversions.h" |
79 | 79 |
80 namespace content { | 80 namespace content { |
81 | 81 |
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 results->orientationAngle = display.RotationAsDegree(); | 1792 results->orientationAngle = display.RotationAsDegree(); |
1793 results->orientationType = | 1793 results->orientationType = |
1794 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1794 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1795 gfx::DeviceDisplayInfo info; | 1795 gfx::DeviceDisplayInfo info; |
1796 results->depth = info.GetBitsPerPixel(); | 1796 results->depth = info.GetBitsPerPixel(); |
1797 results->depthPerComponent = info.GetBitsPerComponent(); | 1797 results->depthPerComponent = info.GetBitsPerComponent(); |
1798 results->isMonochrome = (results->depthPerComponent == 0); | 1798 results->isMonochrome = (results->depthPerComponent == 0); |
1799 } | 1799 } |
1800 | 1800 |
1801 } // namespace content | 1801 } // namespace content |
OLD | NEW |