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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/renderer/mock_render_process.cc ('k') | chrome/renderer/pepper_devices.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_RENDERER_PAINT_AGGREGATOR_H_ 5 #ifndef CHROME_RENDERER_PAINT_AGGREGATOR_H_
6 #define CHROME_RENDERER_PAINT_AGGREGATOR_H_ 6 #define CHROME_RENDERER_PAINT_AGGREGATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "gfx/rect.h" 12 #include "ui/gfx/rect.h"
13 13
14 // This class is responsible for aggregating multiple invalidation and scroll 14 // This class is responsible for aggregating multiple invalidation and scroll
15 // commands to produce a scroll and repaint sequence. 15 // commands to produce a scroll and repaint sequence.
16 class PaintAggregator { 16 class PaintAggregator {
17 public: 17 public:
18 // This structure describes an aggregation of InvalidateRect and ScrollRect 18 // This structure describes an aggregation of InvalidateRect and ScrollRect
19 // calls. If |scroll_rect| is non-empty, then that rect should be scrolled 19 // calls. If |scroll_rect| is non-empty, then that rect should be scrolled
20 // by the amount specified by |scroll_delta|. If |paint_rects| is non-empty, 20 // by the amount specified by |scroll_delta|. If |paint_rects| is non-empty,
21 // then those rects should be repainted. If |scroll_rect| and |paint_rects| 21 // then those rects should be repainted. If |scroll_rect| and |paint_rects|
22 // are non-empty, then scrolling should be performed before repainting. 22 // are non-empty, then scrolling should be performed before repainting.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 private: 55 private:
56 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;
57 bool ShouldInvalidateScrollRect(const gfx::Rect& rect) const; 57 bool ShouldInvalidateScrollRect(const gfx::Rect& rect) const;
58 void InvalidateScrollRect(); 58 void InvalidateScrollRect();
59 void CombinePaintRects(); 59 void CombinePaintRects();
60 60
61 PendingUpdate update_; 61 PendingUpdate update_;
62 }; 62 };
63 63
64 #endif // CHROME_RENDERER_PAINT_AGGREGATOR_H_ 64 #endif // CHROME_RENDERER_PAINT_AGGREGATOR_H_
OLDNEW
« no previous file with comments | « chrome/renderer/mock_render_process.cc ('k') | chrome/renderer/pepper_devices.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698