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

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

Issue 9030001: Move paint aggregator and the completion callback factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix DEPS Created 8 years, 11 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 | Annotate | Revision Log
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698