Index: cc/surfaces/compositor_frame_sink_support.cc |
diff --git a/cc/surfaces/compositor_frame_sink_support.cc b/cc/surfaces/compositor_frame_sink_support.cc |
index 09bfdbc7b58f43b145eb1ca74e1823e2eb3fe196..6caf493754918b7ea52103bd180276675d8f6c8b 100644 |
--- a/cc/surfaces/compositor_frame_sink_support.cc |
+++ b/cc/surfaces/compositor_frame_sink_support.cc |
@@ -120,10 +120,11 @@ void CompositorFrameSinkSupport::SubmitCompositorFrame( |
const LocalSurfaceId& local_surface_id, |
CompositorFrame frame) { |
DCHECK(surface_factory_); |
- ++ack_pending_count_; |
- |
DCHECK_GE(frame.metadata.begin_frame_ack.sequence_number, |
BeginFrameArgs::kStartingFrameNumber); |
+ DCHECK(!frame.render_pass_list.empty()); |
+ |
+ ++ack_pending_count_; |
// |has_damage| is not transmitted. |
frame.metadata.begin_frame_ack.has_damage = true; |