Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 273523007: Dispatch geolocation IPCs on the UI thread. Aside from simplifying the code to avoid a lot of threa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 results->availableRect = display.work_area(); 1455 results->availableRect = display.work_area();
1455 results->deviceScaleFactor = display.device_scale_factor(); 1456 results->deviceScaleFactor = display.device_scale_factor();
1456 results->orientationAngle = display.RotationAsDegree(); 1457 results->orientationAngle = display.RotationAsDegree();
1457 gfx::DeviceDisplayInfo info; 1458 gfx::DeviceDisplayInfo info;
1458 results->depth = info.GetBitsPerPixel(); 1459 results->depth = info.GetBitsPerPixel();
1459 results->depthPerComponent = info.GetBitsPerComponent(); 1460 results->depthPerComponent = info.GetBitsPerComponent();
1460 results->isMonochrome = (results->depthPerComponent == 0); 1461 results->isMonochrome = (results->depthPerComponent == 0);
1461 } 1462 }
1462 1463
1463 } // namespace content 1464 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/web_contents/aura/gesture_nav_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698