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

Unified Diff: cc/surfaces/display.cc

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « cc/output/gl_renderer.cc ('k') | cc/surfaces/surface_manager.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 d20f8f82a5ea8b309a6fe695011e52e4ead8e349..f45842d966972bfa7e29b02f09ced84c4e329b7e 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -409,7 +409,7 @@ void Display::OnSurfaceDamaged(SurfaceId surface_id, bool* changed) {
if (surface) {
const CompositorFrame& current_frame = surface->GetEligibleFrame();
if (!current_frame.delegated_frame_data ||
- !current_frame.delegated_frame_data->resource_list.size()) {
+ current_frame.delegated_frame_data->resource_list.empty()) {
aggregator_->ReleaseResources(surface_id);
}
}
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698