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

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

Issue 1974133002: sync compositor: Remove sync input path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
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 <utility> 9 #include <utility>
10 10
(...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 1593
1594 if (input_event.type == blink::WebInputEvent::GestureTapDown || 1594 if (input_event.type == blink::WebInputEvent::GestureTapDown ||
1595 input_event.type == blink::WebInputEvent::TouchStart) { 1595 input_event.type == blink::WebInputEvent::TouchStart) {
1596 GpuDataManagerImpl* gpu_data = GpuDataManagerImpl::GetInstance(); 1596 GpuDataManagerImpl* gpu_data = GpuDataManagerImpl::GetInstance();
1597 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance(); 1597 GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
1598 if (shim && gpu_data && 1598 if (shim && gpu_data &&
1599 gpu_data->IsDriverBugWorkaroundActive(gpu::WAKE_UP_GPU_BEFORE_DRAWING)) 1599 gpu_data->IsDriverBugWorkaroundActive(gpu::WAKE_UP_GPU_BEFORE_DRAWING))
1600 shim->Send(new GpuMsg_WakeUpGpu); 1600 shim->Send(new GpuMsg_WakeUpGpu);
1601 } 1601 }
1602 1602
1603 if (sync_compositor_)
1604 return sync_compositor_->HandleInputEvent(input_event);
1605 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 1603 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
1606 } 1604 }
1607 1605
1608 void RenderWidgetHostViewAndroid::OnSetNeedsFlushInput() { 1606 void RenderWidgetHostViewAndroid::OnSetNeedsFlushInput() {
1609 TRACE_EVENT0("input", "RenderWidgetHostViewAndroid::OnSetNeedsFlushInput"); 1607 TRACE_EVENT0("input", "RenderWidgetHostViewAndroid::OnSetNeedsFlushInput");
1610 RequestVSyncUpdate(FLUSH_INPUT); 1608 RequestVSyncUpdate(FLUSH_INPUT);
1611 } 1609 }
1612 1610
1613 BrowserAccessibilityManager* 1611 BrowserAccessibilityManager*
1614 RenderWidgetHostViewAndroid::CreateBrowserAccessibilityManager( 1612 RenderWidgetHostViewAndroid::CreateBrowserAccessibilityManager(
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 case ui::MotionEvent::ACTION_UP: 2043 case ui::MotionEvent::ACTION_UP:
2046 case ui::MotionEvent::ACTION_POINTER_UP: 2044 case ui::MotionEvent::ACTION_POINTER_UP:
2047 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 2045 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
2048 delta.InMicroseconds(), 1, 1000000, 50); 2046 delta.InMicroseconds(), 1, 1000000, 50);
2049 default: 2047 default:
2050 return; 2048 return;
2051 } 2049 }
2052 } 2050 }
2053 2051
2054 } // namespace content 2052 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/synchronous_compositor_host.cc ('k') | content/common/android/sync_compositor_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698