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

Side by Side Diff: content/renderer/paint_aggregator.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 #ifndef CONTENT_RENDERER_PAINT_AGGREGATOR_H_ 5 #ifndef CONTENT_RENDERER_PAINT_AGGREGATOR_H_
6 #define CONTENT_RENDERER_PAINT_AGGREGATOR_H_ 6 #define CONTENT_RENDERER_PAINT_AGGREGATOR_H_
7 #pragma once
8 7
9 #include <vector> 8 #include <vector>
10 9
11 #include "base/basictypes.h" 10 #include "base/basictypes.h"
12 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
13 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
14 13
15 // This class is responsible for aggregating multiple invalidation and scroll 14 // This class is responsible for aggregating multiple invalidation and scroll
16 // commands to produce a scroll and repaint sequence. 15 // commands to produce a scroll and repaint sequence.
17 class CONTENT_EXPORT PaintAggregator { 16 class CONTENT_EXPORT PaintAggregator {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 private: 55 private:
57 gfx::Rect ScrollPaintRect(const gfx::Rect& paint_rect, int dx, int dy) const; 56 gfx::Rect ScrollPaintRect(const gfx::Rect& paint_rect, int dx, int dy) const;
58 bool ShouldInvalidateScrollRect(const gfx::Rect& rect) const; 57 bool ShouldInvalidateScrollRect(const gfx::Rect& rect) const;
59 void InvalidateScrollRect(); 58 void InvalidateScrollRect();
60 void CombinePaintRects(); 59 void CombinePaintRects();
61 60
62 PendingUpdate update_; 61 PendingUpdate update_;
63 }; 62 };
64 63
65 #endif // CONTENT_RENDERER_PAINT_AGGREGATOR_H_ 64 #endif // CONTENT_RENDERER_PAINT_AGGREGATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/notification_provider.h ('k') | content/renderer/pepper/pepper_parent_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698