| OLD | NEW |
| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 } | 414 } |
| 415 | 415 |
| 416 if (surface_id == current_surface_id_) | 416 if (surface_id == current_surface_id_) |
| 417 UpdateRootSurfaceResourcesLocked(); | 417 UpdateRootSurfaceResourcesLocked(); |
| 418 } | 418 } |
| 419 | 419 |
| 420 const SurfaceId& Display::CurrentSurfaceId() { | 420 const SurfaceId& Display::CurrentSurfaceId() { |
| 421 return current_surface_id_; | 421 return current_surface_id_; |
| 422 } | 422 } |
| 423 | 423 |
| 424 void Display::ForceImmediateDrawAndSwapIfPossible() { |
| 425 if (scheduler_) |
| 426 scheduler_->ForceImmediateSwapIfPossible(); |
| 427 } |
| 428 |
| 424 } // namespace cc | 429 } // namespace cc |
| OLD | NEW |