Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_android.cc |
| diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc |
| index 99330cd7b65b3e1d4efa14a6c42327114d361d54..55298681a6e3f231a21161428282ab28c3ed6816 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_android.cc |
| +++ b/content/browser/renderer_host/render_widget_host_view_android.cc |
| @@ -38,7 +38,6 @@ |
| #include "content/browser/android/composited_touch_handle_drawable.h" |
| #include "content/browser/android/content_view_core_impl.h" |
| #include "content/browser/android/overscroll_controller_android.h" |
| -#include "content/browser/android/popup_touch_handle_drawable.h" |
| #include "content/browser/android/synchronous_compositor_host.h" |
| #include "content/browser/devtools/render_frame_devtools_agent_host.h" |
| #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
| @@ -58,6 +57,7 @@ |
| #include "content/common/input_messages.h" |
| #include "content/common/view_messages.h" |
| #include "content/public/browser/android/compositor.h" |
| +#include "content/public/browser/android/synchronous_compositor_client.h" |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/browser/devtools_agent_host.h" |
| #include "content/public/browser/render_view_host.h" |
| @@ -1082,10 +1082,10 @@ void RenderWidgetHostViewAndroid::OnSelectionEvent( |
| std::unique_ptr<ui::TouchHandleDrawable> |
| RenderWidgetHostViewAndroid::CreateDrawable() { |
| DCHECK(content_view_core_); |
| - if (!using_browser_compositor_) |
| - return PopupTouchHandleDrawable::Create( |
| - content_view_core_, ui::GetScaleFactorForNativeView(GetNativeView())); |
| - |
| + if (!using_browser_compositor_) { |
| + return std::unique_ptr<ui::TouchHandleDrawable>( |
| + sync_compositor_->client()->CreateDrawable()); |
|
boliu
2016/08/26 04:15:45
need a null check for sync_compositor_ here and re
Jinsuk Kim
2016/08/26 09:21:19
Done.
|
| + } |
| return std::unique_ptr< |
| ui::TouchHandleDrawable>(new CompositedTouchHandleDrawable( |
| content_view_core_->GetViewAndroid()->GetLayer(), |