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

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

Issue 2487713002: Resolves layering violation in SynchronousCompositorHost creation (Closed)
Patch Set: Created 4 years, 1 month 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 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 if (!selection_controller_) 1783 if (!selection_controller_)
1784 selection_controller_ = CreateSelectionController(this, content_view_core_); 1784 selection_controller_ = CreateSelectionController(this, content_view_core_);
1785 1785
1786 if (!overscroll_controller_ && 1786 if (!overscroll_controller_ &&
1787 view_.GetWindowAndroid()->GetCompositor()) { 1787 view_.GetWindowAndroid()->GetCompositor()) {
1788 overscroll_controller_ = CreateOverscrollController( 1788 overscroll_controller_ = CreateOverscrollController(
1789 content_view_core_, ui::GetScaleFactorForNativeView(GetNativeView())); 1789 content_view_core_, ui::GetScaleFactorForNativeView(GetNativeView()));
1790 } 1790 }
1791 1791
1792 if (!sync_compositor_) { 1792 if (!sync_compositor_) {
1793 sync_compositor_ = SynchronousCompositorHost::Create( 1793 sync_compositor_ = SynchronousCompositorHost::Create(this);
1794 this, content_view_core_->GetWebContents());
1795 } 1794 }
1796 } 1795 }
1797 1796
1798 void RenderWidgetHostViewAndroid::RunAckCallbacks() { 1797 void RenderWidgetHostViewAndroid::RunAckCallbacks() {
1799 while (!ack_callbacks_.empty()) { 1798 while (!ack_callbacks_.empty()) {
1800 ack_callbacks_.front().Run(); 1799 ack_callbacks_.front().Run();
1801 ack_callbacks_.pop(); 1800 ack_callbacks_.pop();
1802 } 1801 }
1803 } 1802 }
1804 1803
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 case ui::MotionEvent::ACTION_UP: 1965 case ui::MotionEvent::ACTION_UP:
1967 case ui::MotionEvent::ACTION_POINTER_UP: 1966 case ui::MotionEvent::ACTION_POINTER_UP:
1968 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 1967 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
1969 delta.InMicroseconds(), 1, 1000000, 50); 1968 delta.InMicroseconds(), 1, 1000000, 50);
1970 default: 1969 default:
1971 return; 1970 return;
1972 } 1971 }
1973 } 1972 }
1974 1973
1975 } // namespace content 1974 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698