| 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/sys_utils.h" | 9 #include "base/android/sys_utils.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h
" | 42 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h
" |
| 43 #include "content/browser/renderer_host/input/web_input_event_util.h" | 43 #include "content/browser/renderer_host/input/web_input_event_util.h" |
| 44 #include "content/browser/renderer_host/render_process_host_impl.h" | 44 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 45 #include "content/browser/renderer_host/render_view_host_impl.h" | 45 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 46 #include "content/browser/renderer_host/render_widget_host_impl.h" | 46 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 47 #include "content/common/gpu/client/gl_helper.h" | 47 #include "content/common/gpu/client/gl_helper.h" |
| 48 #include "content/common/gpu/gpu_messages.h" | 48 #include "content/common/gpu/gpu_messages.h" |
| 49 #include "content/common/input/did_overscroll_params.h" | 49 #include "content/common/input/did_overscroll_params.h" |
| 50 #include "content/common/input_messages.h" | 50 #include "content/common/input_messages.h" |
| 51 #include "content/common/view_messages.h" | 51 #include "content/common/view_messages.h" |
| 52 #include "content/public/browser/browser_thread.h" |
| 52 #include "content/public/browser/devtools_agent_host.h" | 53 #include "content/public/browser/devtools_agent_host.h" |
| 53 #include "content/public/browser/render_view_host.h" | 54 #include "content/public/browser/render_view_host.h" |
| 54 #include "content/public/common/content_switches.h" | 55 #include "content/public/common/content_switches.h" |
| 55 #include "gpu/command_buffer/client/gles2_interface.h" | 56 #include "gpu/command_buffer/client/gles2_interface.h" |
| 56 #include "gpu/config/gpu_driver_bug_workaround_type.h" | 57 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 57 #include "skia/ext/image_operations.h" | 58 #include "skia/ext/image_operations.h" |
| 58 #include "third_party/khronos/GLES2/gl2.h" | 59 #include "third_party/khronos/GLES2/gl2.h" |
| 59 #include "third_party/khronos/GLES2/gl2ext.h" | 60 #include "third_party/khronos/GLES2/gl2ext.h" |
| 60 #include "third_party/skia/include/core/SkCanvas.h" | 61 #include "third_party/skia/include/core/SkCanvas.h" |
| 61 #include "ui/base/android/window_android.h" | 62 #include "ui/base/android/window_android.h" |
| (...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 results->availableRect = display.work_area(); | 1457 results->availableRect = display.work_area(); |
| 1457 results->deviceScaleFactor = display.device_scale_factor(); | 1458 results->deviceScaleFactor = display.device_scale_factor(); |
| 1458 results->orientationAngle = display.RotationAsDegree(); | 1459 results->orientationAngle = display.RotationAsDegree(); |
| 1459 gfx::DeviceDisplayInfo info; | 1460 gfx::DeviceDisplayInfo info; |
| 1460 results->depth = info.GetBitsPerPixel(); | 1461 results->depth = info.GetBitsPerPixel(); |
| 1461 results->depthPerComponent = info.GetBitsPerComponent(); | 1462 results->depthPerComponent = info.GetBitsPerComponent(); |
| 1462 results->isMonochrome = (results->depthPerComponent == 0); | 1463 results->isMonochrome = (results->depthPerComponent == 0); |
| 1463 } | 1464 } |
| 1464 | 1465 |
| 1465 } // namespace content | 1466 } // namespace content |
| OLD | NEW |