| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 } else if (surface_id == current_surface_id_) { | 385 } else if (surface_id == current_surface_id_) { |
| 386 if (scheduler_) | 386 if (scheduler_) |
| 387 scheduler_->SurfaceDamaged(surface_id); | 387 scheduler_->SurfaceDamaged(surface_id); |
| 388 *changed = true; | 388 *changed = true; |
| 389 } | 389 } |
| 390 | 390 |
| 391 if (surface_id == current_surface_id_) | 391 if (surface_id == current_surface_id_) |
| 392 UpdateRootSurfaceResourcesLocked(); | 392 UpdateRootSurfaceResourcesLocked(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 void Display::OnSurfaceCreated(const SurfaceId& surface_id, | 395 void Display::OnSurfaceCreated(const SurfaceInfo& surface_info) {} |
| 396 const gfx::Size& frame, | |
| 397 float device_scale_factor) {} | |
| 398 | 396 |
| 399 const SurfaceId& Display::CurrentSurfaceId() { | 397 const SurfaceId& Display::CurrentSurfaceId() { |
| 400 return current_surface_id_; | 398 return current_surface_id_; |
| 401 } | 399 } |
| 402 | 400 |
| 403 void Display::ForceImmediateDrawAndSwapIfPossible() { | 401 void Display::ForceImmediateDrawAndSwapIfPossible() { |
| 404 if (scheduler_) | 402 if (scheduler_) |
| 405 scheduler_->ForceImmediateSwapIfPossible(); | 403 scheduler_->ForceImmediateSwapIfPossible(); |
| 406 } | 404 } |
| 407 | 405 |
| 408 } // namespace cc | 406 } // namespace cc |
| OLD | NEW |