Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: ppapi/utility/graphics/paint_aggregator.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ppapi/utility/completion_callback_factory_thread_traits.h ('k') | ppapi/utility/graphics/paint_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698