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

Unified Diff: cc/surfaces/compositor_frame_sink_support.cc

Issue 2757953002: DisplayCompositor should enforce invariant that frame size and device scale factor are fixed (Closed)
Patch Set: Created 3 years, 9 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: 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 23e44813919b4d5a33cb8af29376fe25663acfe2..b8dc1d1f9c47261c92eb273d2412378a5755d4ac 100644
--- a/cc/surfaces/compositor_frame_sink_support.cc
+++ b/cc/surfaces/compositor_frame_sink_support.cc
@@ -204,6 +204,11 @@ void CompositorFrameSinkSupport::WillDrawSurface(
client_->WillDrawSurface(local_surface_id, damage_rect);
}
+void CompositorFrameSinkSupport::OnBadFrameReceived() {
+ if (client_)
+ client_->OnBadFrameReceived();
+}
+
void CompositorFrameSinkSupport::OnBeginFrame(const BeginFrameArgs& args) {
UpdateNeedsBeginFramesInternal();
last_begin_frame_args_ = args;

Powered by Google App Engine
This is Rietveld 408576698