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

Unified Diff: cc/surfaces/surface.cc

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: Track state per surface. Created 3 years, 7 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/surface.cc
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc
index 00de0c24878222656afe6be81862306cb3d699d2..04dff352d9479875e733da65ca967b69c45cc39d 100644
--- a/cc/surfaces/surface.cc
+++ b/cc/surfaces/surface.cc
@@ -10,7 +10,6 @@
#include <algorithm>
#include "base/stl_util.h"
-#include "cc/output/compositor_frame.h"
#include "cc/output/copy_output_request.h"
#include "cc/surfaces/compositor_frame_sink_support.h"
#include "cc/surfaces/local_surface_id_allocator.h"
@@ -116,6 +115,11 @@ void Surface::QueueFrame(CompositorFrame frame,
UnrefFrameResourcesAndRunDrawCallback(std::move(previous_pending_frame_data));
}
+void Surface::SetProducerState(ProducerState state) {
+ producer_state_ = state;
+ surface_manager_->SurfaceProducerStateChanged(this, state);
+}
+
void Surface::RequestCopyOfOutput(
std::unique_ptr<CopyOutputRequest> copy_request) {
if (!active_frame_data_) {

Powered by Google App Engine
This is Rietveld 408576698