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

Unified Diff: cc/surfaces/display.cc

Issue 2167713002: cc: Delete SurfaceDrawStatus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Scott's comments Created 4 years, 5 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 | « no previous file | 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.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 563d63ce60f8825d39672ff315112593cc59ef13..847e58c8bdc1f11ce620282f6297d75447d1d8bd 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -62,7 +62,7 @@ Display::~Display() {
for (const auto& id_entry : aggregator_->previous_contained_surfaces()) {
Surface* surface = surface_manager_->GetSurfaceForId(id_entry.first);
if (surface)
- surface->RunDrawCallbacks(SurfaceDrawStatus::DRAW_SKIPPED);
+ surface->RunDrawCallbacks();
}
}
}
@@ -242,7 +242,7 @@ bool Display::DrawAndSwap() {
for (const auto& id_entry : aggregator_->previous_contained_surfaces()) {
Surface* surface = surface_manager_->GetSurfaceForId(id_entry.first);
if (surface)
- surface->RunDrawCallbacks(SurfaceDrawStatus::DRAWN);
+ surface->RunDrawCallbacks();
}
DelegatedFrameData* frame_data = frame.delegated_frame_data.get();
« no previous file with comments | « no previous file | cc/surfaces/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698