OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/utility/graphics/paint_aggregator.h" | 5 #include "ppapi/utility/graphics/paint_aggregator.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "ppapi/cpp/logging.h" | 11 #include "ppapi/cpp/logging.h" |
10 | 12 |
11 // ---------------------------------------------------------------------------- | 13 // ---------------------------------------------------------------------------- |
12 // ALGORITHM NOTES | 14 // ALGORITHM NOTES |
13 // | 15 // |
14 // We attempt to maintain a scroll rect in the presence of invalidations that | 16 // We attempt to maintain a scroll rect in the presence of invalidations that |
15 // are contained within the scroll rect. If an invalidation crosses a scroll | 17 // are contained within the scroll rect. If an invalidation crosses a scroll |
16 // rect, then we just treat the scroll rect as an invalidation rect. | 18 // rect, then we just treat the scroll rect as an invalidation rect. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 outer = outer.Union(existing_rect); | 272 outer = outer.Union(existing_rect); |
271 } | 273 } |
272 } | 274 } |
273 update_.paint_rects.clear(); | 275 update_.paint_rects.clear(); |
274 update_.paint_rects.push_back(inner); | 276 update_.paint_rects.push_back(inner); |
275 update_.paint_rects.push_back(outer); | 277 update_.paint_rects.push_back(outer); |
276 } | 278 } |
277 } | 279 } |
278 | 280 |
279 } // namespace pp | 281 } // namespace pp |
OLD | NEW |