| 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/cpp/paint_aggregator.h" | 5 #include "ppapi/utility/graphics/paint_aggregator.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ppapi/cpp/logging.h" | 9 #include "ppapi/cpp/logging.h" |
| 10 | 10 |
| 11 // ---------------------------------------------------------------------------- | 11 // ---------------------------------------------------------------------------- |
| 12 // ALGORITHM NOTES | 12 // ALGORITHM NOTES |
| 13 // | 13 // |
| 14 // We attempt to maintain a scroll rect in the presence of invalidations that | 14 // 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 | 15 // are contained within the scroll rect. If an invalidation crosses a scroll |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 outer = outer.Union(existing_rect); | 270 outer = outer.Union(existing_rect); |
| 271 } | 271 } |
| 272 } | 272 } |
| 273 update_.paint_rects.clear(); | 273 update_.paint_rects.clear(); |
| 274 update_.paint_rects.push_back(inner); | 274 update_.paint_rects.push_back(inner); |
| 275 update_.paint_rects.push_back(outer); | 275 update_.paint_rects.push_back(outer); |
| 276 } | 276 } |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace pp | 279 } // namespace pp |
| OLD | NEW |