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/surface_manager.h" | 5 #include "cc/surfaces/surface_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 } | 488 } |
489 | 489 |
490 bool SurfaceManager::SurfaceModified(const SurfaceId& surface_id) { | 490 bool SurfaceManager::SurfaceModified(const SurfaceId& surface_id) { |
491 CHECK(thread_checker_.CalledOnValidThread()); | 491 CHECK(thread_checker_.CalledOnValidThread()); |
492 bool changed = false; | 492 bool changed = false; |
493 for (auto& observer : observer_list_) | 493 for (auto& observer : observer_list_) |
494 observer.OnSurfaceDamaged(surface_id, &changed); | 494 observer.OnSurfaceDamaged(surface_id, &changed); |
495 return changed; | 495 return changed; |
496 } | 496 } |
497 | 497 |
498 void SurfaceManager::SurfaceCreated(const SurfaceId& surface_id, | 498 void SurfaceManager::SurfaceCreated(const SurfaceInfo& surface_info) { |
499 const gfx::Size& frame_size, | |
500 float device_scale_factor) { | |
501 CHECK(thread_checker_.CalledOnValidThread()); | 499 CHECK(thread_checker_.CalledOnValidThread()); |
502 for (auto& observer : observer_list_) | 500 for (auto& observer : observer_list_) |
503 observer.OnSurfaceCreated(surface_id, frame_size, device_scale_factor); | 501 observer.OnSurfaceCreated(surface_info); |
504 } | 502 } |
505 | 503 |
506 } // namespace cc | 504 } // namespace cc |
OLD | NEW |