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/output/overlay_candidate.h" | 5 #include "cc/output/overlay_candidate.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 default; | 328 default; |
329 | 329 |
330 OverlayCandidateList::~OverlayCandidateList() {} | 330 OverlayCandidateList::~OverlayCandidateList() {} |
331 | 331 |
332 OverlayCandidateList& OverlayCandidateList::operator=( | 332 OverlayCandidateList& OverlayCandidateList::operator=( |
333 const OverlayCandidateList& other) = default; | 333 const OverlayCandidateList& other) = default; |
334 | 334 |
335 OverlayCandidateList& OverlayCandidateList::operator=( | 335 OverlayCandidateList& OverlayCandidateList::operator=( |
336 OverlayCandidateList&& other) = default; | 336 OverlayCandidateList&& other) = default; |
337 | 337 |
| 338 void OverlayCandidateList::AddPromotionHint(const OverlayCandidate& candidate) { |
| 339 promotion_hint_info_map_[candidate.resource_id] = |
| 340 candidate.display_rect.origin(); |
| 341 } |
| 342 |
338 } // namespace cc | 343 } // namespace cc |
OLD | NEW |