| 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> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "base/logging.h" | 10 #include "base/logging.h" |
| 8 #include "cc/surfaces/surface.h" | 11 #include "cc/surfaces/surface.h" |
| 9 #include "cc/surfaces/surface_id_allocator.h" | 12 #include "cc/surfaces/surface_id_allocator.h" |
| 10 | 13 |
| 11 namespace cc { | 14 namespace cc { |
| 12 | 15 |
| 13 SurfaceManager::SurfaceManager() { | 16 SurfaceManager::SurfaceManager() { |
| 14 thread_checker_.DetachFromThread(); | 17 thread_checker_.DetachFromThread(); |
| 15 } | 18 } |
| 16 | 19 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 130 |
| 128 bool SurfaceManager::SurfaceModified(SurfaceId surface_id) { | 131 bool SurfaceManager::SurfaceModified(SurfaceId surface_id) { |
| 129 DCHECK(thread_checker_.CalledOnValidThread()); | 132 DCHECK(thread_checker_.CalledOnValidThread()); |
| 130 bool changed = false; | 133 bool changed = false; |
| 131 FOR_EACH_OBSERVER(SurfaceDamageObserver, observer_list_, | 134 FOR_EACH_OBSERVER(SurfaceDamageObserver, observer_list_, |
| 132 OnSurfaceDamaged(surface_id, &changed)); | 135 OnSurfaceDamaged(surface_id, &changed)); |
| 133 return changed; | 136 return changed; |
| 134 } | 137 } |
| 135 | 138 |
| 136 } // namespace cc | 139 } // namespace cc |
| OLD | NEW |