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

Side by Side Diff: cc/surfaces/display.cc

Issue 2403573002: cc: Introduce mechanism to observe CompositorFrames submitted to new surfaceIDs (Closed)
Patch Set: Updated changes missed Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_damage_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/surfaces/display.h" 5 #include "cc/surfaces/display.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } else if (surface_id == current_surface_id_) { 405 } else if (surface_id == current_surface_id_) {
406 if (scheduler_) 406 if (scheduler_)
407 scheduler_->SurfaceDamaged(surface_id); 407 scheduler_->SurfaceDamaged(surface_id);
408 *changed = true; 408 *changed = true;
409 } 409 }
410 410
411 if (surface_id == current_surface_id_) 411 if (surface_id == current_surface_id_)
412 UpdateRootSurfaceResourcesLocked(); 412 UpdateRootSurfaceResourcesLocked();
413 } 413 }
414 414
415 void Display::OnSurfaceCreated(const SurfaceId& surface_id,
416 const gfx::Size& frame,
417 float device_scale_factor) {}
418
415 const SurfaceId& Display::CurrentSurfaceId() { 419 const SurfaceId& Display::CurrentSurfaceId() {
416 return current_surface_id_; 420 return current_surface_id_;
417 } 421 }
418 422
419 void Display::ForceImmediateDrawAndSwapIfPossible() { 423 void Display::ForceImmediateDrawAndSwapIfPossible() {
420 if (scheduler_) 424 if (scheduler_)
421 scheduler_->ForceImmediateSwapIfPossible(); 425 scheduler_->ForceImmediateSwapIfPossible();
422 } 426 }
423 427
424 } // namespace cc 428 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_damage_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698