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

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

Issue 2449853004: Getting rid of DelegatedFrameData (Closed)
Patch Set: Addressed reviewers' concerns 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 41999b3778320406491c7a14c2644b7e80f4ceaf..42f6b77fadfab331d95aa3f0d91028f3cf44734f 100644
--- a/content/browser/android/synchronous_compositor_browser_filter.cc
+++ b/content/browser/android/synchronous_compositor_browser_filter.cc
@@ -82,7 +82,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()) {
frame_ptr->frame.reset(new cc::CompositorFrame);
*frame_ptr->frame = std::move(compositor_frame);
}

Powered by Google App Engine
This is Rietveld 408576698