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

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

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: Addressed comments Created 3 years, 10 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 if (host_) 1482 if (host_)
1483 host_->Send(new ViewMsg_SetBeginFramePaused(host_->GetRoutingID(), false)); 1483 host_->Send(new ViewMsg_SetBeginFramePaused(host_->GetRoutingID(), false));
1484 view_.GetWindowAndroid()->AddObserver(this); 1484 view_.GetWindowAndroid()->AddObserver(this);
1485 // When using browser compositor, DelegatedFrameHostAndroid provides the BFS. 1485 // When using browser compositor, DelegatedFrameHostAndroid provides the BFS.
1486 if (!using_browser_compositor_) 1486 if (!using_browser_compositor_)
1487 SetBeginFrameSource(view_.GetWindowAndroid()->GetBeginFrameSource()); 1487 SetBeginFrameSource(view_.GetWindowAndroid()->GetBeginFrameSource());
1488 1488
1489 ui::WindowAndroidCompositor* compositor = 1489 ui::WindowAndroidCompositor* compositor =
1490 view_.GetWindowAndroid()->GetCompositor(); 1490 view_.GetWindowAndroid()->GetCompositor();
1491 if (compositor) { 1491 if (compositor) {
1492 delegated_frame_host_->RegisterFrameSinkHierarchy( 1492 static_cast<CompositorImpl*>(compositor)
boliu 2017/01/27 23:17:59 nit: cast in the assignment line also, what's the
Alex Z. 2017/01/29 14:58:51 Done. In the case for desktop chrome, there's a m
boliu 2017/01/30 17:20:22 That doesn't actually answer my question Is the a
boliu 2017/01/30 21:13:51 this is still unanswered?
Fady Samuel 2017/01/30 21:45:52 We cannot currently register a BeginFrame hierarch
1493 compositor->GetFrameSinkId()); 1493 ->AddChildFrameSink(delegated_frame_host_->GetFrameSinkId());
1494 } 1494 }
1495 } 1495 }
1496 1496
1497 void RenderWidgetHostViewAndroid::StopObservingRootWindow() { 1497 void RenderWidgetHostViewAndroid::StopObservingRootWindow() {
1498 if (!(view_.GetWindowAndroid())) { 1498 if (!(view_.GetWindowAndroid())) {
1499 DCHECK(!observing_root_window_); 1499 DCHECK(!observing_root_window_);
1500 return; 1500 return;
1501 } 1501 }
1502 1502
1503 if (!observing_root_window_) 1503 if (!observing_root_window_)
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 2067 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
2068 if (!compositor) 2068 if (!compositor)
2069 return; 2069 return;
2070 2070
2071 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 2071 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
2072 overscroll_refresh_handler, compositor, 2072 overscroll_refresh_handler, compositor,
2073 ui::GetScaleFactorForNativeView(GetNativeView())); 2073 ui::GetScaleFactorForNativeView(GetNativeView()));
2074 } 2074 }
2075 2075
2076 } // namespace content 2076 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698