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

Unified Diff: content/browser/android/synchronous_compositor_host.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_host.cc
diff --git a/content/browser/android/synchronous_compositor_host.cc b/content/browser/android/synchronous_compositor_host.cc
index eb5a90fa6d0287d38f18ce369f439becf52ab5f9..c066cde0d4b468163cb1a79551d904b4828a40e0 100644
--- a/content/browser/android/synchronous_compositor_host.cc
+++ b/content/browser/android/synchronous_compositor_host.cc
@@ -143,7 +143,7 @@ SynchronousCompositor::Frame SynchronousCompositorHost::ProcessHardwareFrame(
frame.frame.reset(new cc::CompositorFrame);
frame.compositor_frame_sink_id = compositor_frame_sink_id;
*frame.frame = std::move(compositor_frame);
- if (!frame.frame->delegated_frame_data) {
+ if (frame.frame->IsEmpty()) {
// This can happen if compositor did not swap in this draw.
frame.frame.reset();
}

Powered by Google App Engine
This is Rietveld 408576698