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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: fix clang compile error 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
« no previous file with comments | « cc/surfaces/display_scheduler_unittest.cc ('k') | cc/surfaces/surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 2966adddb06ef3c3393f02049baac3623d523d9c..6c87974cc59c11191a0e8742101d3c889bcc9198 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -61,9 +61,13 @@ class TestDisplayScheduler : public DisplayScheduler {
has_new_root_surface = true;
}
- void SurfaceDamaged(const SurfaceId& surface_id) override {
- damaged = true;
- needs_draw_ = true;
+ void SurfaceDamaged(const SurfaceId& surface_id,
+ const BeginFrameAck& ack,
+ bool display_damaged) override {
+ if (display_damaged) {
+ damaged = true;
+ needs_draw_ = true;
+ }
}
void DidSwapBuffers() override { swapped = true; }
« no previous file with comments | « cc/surfaces/display_scheduler_unittest.cc ('k') | cc/surfaces/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698