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

Unified Diff: cc/surfaces/display_scheduler.cc

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed webkit_unit_tests 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
Index: cc/surfaces/display_scheduler.cc
diff --git a/cc/surfaces/display_scheduler.cc b/cc/surfaces/display_scheduler.cc
index 98f2a689d4ead8e16393610e8c8ba35ffd2f319e..d26d1b6306973debcf5abde447dfa0c928b981f7 100644
--- a/cc/surfaces/display_scheduler.cc
+++ b/cc/surfaces/display_scheduler.cc
@@ -69,7 +69,7 @@ void DisplayScheduler::DisplayResized() {
// Notification that there was a resize or the root surface changed and
// that we should just draw immediately.
-void DisplayScheduler::SetNewRootSurface(SurfaceId root_surface_id) {
+void DisplayScheduler::SetNewRootSurface(const SurfaceId& root_surface_id) {
TRACE_EVENT0("cc", "DisplayScheduler::SetNewRootSurface");
root_surface_id_ = root_surface_id;
SurfaceDamaged(root_surface_id);
@@ -78,7 +78,7 @@ void DisplayScheduler::SetNewRootSurface(SurfaceId root_surface_id) {
// Indicates that there was damage to one of the surfaces.
// Has some logic to wait for multiple active surfaces before
// triggering the deadline.
-void DisplayScheduler::SurfaceDamaged(SurfaceId surface_id) {
+void DisplayScheduler::SurfaceDamaged(const SurfaceId& surface_id) {
TRACE_EVENT1("cc", "DisplayScheduler::SurfaceDamaged", "surface_id",
surface_id.ToString());

Powered by Google App Engine
This is Rietveld 408576698