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 #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 Loading... |
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_ |
OLD | NEW |