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

Unified Diff: content/browser/android/synchronous_compositor_browser_filter.cc

Issue 2449853004: Getting rid of DelegatedFrameData (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/synchronous_compositor_browser_filter.cc
diff --git a/content/browser/android/synchronous_compositor_browser_filter.cc b/content/browser/android/synchronous_compositor_browser_filter.cc
index a286df3d2bed992ac664b2d810e6c7bd5400bf1e..11419af92dcca0c076e41b90642e3b84dc7af096 100644
--- a/content/browser/android/synchronous_compositor_browser_filter.cc
+++ b/content/browser/android/synchronous_compositor_browser_filter.cc
@@ -80,7 +80,7 @@ bool SynchronousCompositorBrowserFilter::ReceiveFrame(
auto frame_ptr = base::MakeUnique<SynchronousCompositor::Frame>();
frame_ptr->compositor_frame_sink_id = std::get<0>(param);
cc::CompositorFrame& compositor_frame = std::get<1>(param);
- if (compositor_frame.delegated_frame_data) {
+ if (!compositor_frame.IsEmpty()) {
boliu 2016/10/25 23:00:30 you may need to rebase this, fyi
frame_ptr->frame.reset(new cc::CompositorFrame);
*frame_ptr->frame = std::move(compositor_frame);
}

Powered by Google App Engine
This is Rietveld 408576698