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

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

Issue 2921713002: Reland "Send FrameSwapMessageQueue's messages in QueueMessageSwapPromise" with fixes (Closed)
Patch Set: Don't pass to RCFS Created 3 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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 if (!content_view_core_) 1274 if (!content_view_core_)
1275 return; 1275 return;
1276 1276
1277 bool is_mobile_optimized = IsMobileOptimizedFrame(frame_metadata); 1277 bool is_mobile_optimized = IsMobileOptimizedFrame(frame_metadata);
1278 1278
1279 if (host_ && host_->input_router()) { 1279 if (host_ && host_->input_router()) {
1280 host_->input_router()->NotifySiteIsMobileOptimized( 1280 host_->input_router()->NotifySiteIsMobileOptimized(
1281 is_mobile_optimized); 1281 is_mobile_optimized);
1282 } 1282 }
1283 1283
1284 if (host_ && frame_metadata.frame_token)
1285 host_->DidProcessFrame(frame_metadata.frame_token);
1286
1284 // This is a subset of OnSwapCompositorFrame() used in the synchronous 1287 // This is a subset of OnSwapCompositorFrame() used in the synchronous
1285 // compositor flow. 1288 // compositor flow.
1286 OnFrameMetadataUpdated(frame_metadata.Clone(), false); 1289 OnFrameMetadataUpdated(frame_metadata.Clone(), false);
1287 1290
1288 // DevTools ScreenCast support for Android WebView. 1291 // DevTools ScreenCast support for Android WebView.
1289 RenderFrameHost* frame_host = RenderViewHost::From(host_)->GetMainFrame(); 1292 RenderFrameHost* frame_host = RenderViewHost::From(host_)->GetMainFrame();
1290 if (frame_host) { 1293 if (frame_host) {
1291 RenderFrameDevToolsAgentHost::SignalSynchronousSwapCompositorFrame( 1294 RenderFrameDevToolsAgentHost::SignalSynchronousSwapCompositorFrame(
1292 frame_host, 1295 frame_host,
1293 std::move(frame_metadata)); 1296 std::move(frame_metadata));
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 2245
2243 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 2246 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
2244 if (!compositor) 2247 if (!compositor)
2245 return; 2248 return;
2246 2249
2247 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 2250 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
2248 overscroll_refresh_handler, compositor, view_.GetDipScale()); 2251 overscroll_refresh_handler, compositor, view_.GetDipScale());
2249 } 2252 }
2250 2253
2251 } // namespace content 2254 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/renderer/android/synchronous_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698