| 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" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
| 19 #include "base/threading/worker_pool.h" | 19 #include "base/threading/worker_pool.h" |
| 20 #include "cc/base/latency_info_swap_promise.h" | |
| 21 #include "cc/layers/delegated_frame_provider.h" | 20 #include "cc/layers/delegated_frame_provider.h" |
| 22 #include "cc/layers/delegated_renderer_layer.h" | 21 #include "cc/layers/delegated_renderer_layer.h" |
| 23 #include "cc/layers/layer.h" | 22 #include "cc/layers/layer.h" |
| 24 #include "cc/layers/surface_layer.h" | 23 #include "cc/layers/surface_layer.h" |
| 25 #include "cc/output/compositor_frame.h" | 24 #include "cc/output/compositor_frame.h" |
| 26 #include "cc/output/compositor_frame_ack.h" | 25 #include "cc/output/compositor_frame_ack.h" |
| 27 #include "cc/output/copy_output_request.h" | 26 #include "cc/output/copy_output_request.h" |
| 28 #include "cc/output/copy_output_result.h" | 27 #include "cc/output/copy_output_result.h" |
| 28 #include "cc/output/latency_info_swap_promise.h" |
| 29 #include "cc/output/viewport_selection_bound.h" | 29 #include "cc/output/viewport_selection_bound.h" |
| 30 #include "cc/resources/single_release_callback.h" | 30 #include "cc/resources/single_release_callback.h" |
| 31 #include "cc/surfaces/surface.h" | 31 #include "cc/surfaces/surface.h" |
| 32 #include "cc/surfaces/surface_factory.h" | 32 #include "cc/surfaces/surface_factory.h" |
| 33 #include "cc/surfaces/surface_id_allocator.h" | 33 #include "cc/surfaces/surface_id_allocator.h" |
| 34 #include "cc/surfaces/surface_manager.h" | 34 #include "cc/surfaces/surface_manager.h" |
| 35 #include "cc/trees/layer_tree_host.h" | 35 #include "cc/trees/layer_tree_host.h" |
| 36 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 36 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
| 37 #include "content/browser/android/composited_touch_handle_drawable.h" | 37 #include "content/browser/android/composited_touch_handle_drawable.h" |
| 38 #include "content/browser/android/content_view_core_impl.h" | 38 #include "content/browser/android/content_view_core_impl.h" |
| (...skipping 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 results->orientationAngle = display.RotationAsDegree(); | 2047 results->orientationAngle = display.RotationAsDegree(); |
| 2048 results->orientationType = | 2048 results->orientationType = |
| 2049 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 2049 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
| 2050 gfx::DeviceDisplayInfo info; | 2050 gfx::DeviceDisplayInfo info; |
| 2051 results->depth = info.GetBitsPerPixel(); | 2051 results->depth = info.GetBitsPerPixel(); |
| 2052 results->depthPerComponent = info.GetBitsPerComponent(); | 2052 results->depthPerComponent = info.GetBitsPerComponent(); |
| 2053 results->isMonochrome = (results->depthPerComponent == 0); | 2053 results->isMonochrome = (results->depthPerComponent == 0); |
| 2054 } | 2054 } |
| 2055 | 2055 |
| 2056 } // namespace content | 2056 } // namespace content |
| OLD | NEW |