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

Side by Side Diff: Source/core/paint/FramePainter.h

Issue 1093383003: Remove mainthread overhang painting code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 FramePainter_h 5 #ifndef FramePainter_h
6 #define FramePainter_h 6 #define FramePainter_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 class FrameView; 10 class FrameView;
11 class GraphicsContext; 11 class GraphicsContext;
12 class IntRect; 12 class IntRect;
13 class Scrollbar; 13 class Scrollbar;
14 14
15 class FramePainter { 15 class FramePainter {
16 public: 16 public:
17 FramePainter(FrameView& frameView) : m_frameView(frameView) { } 17 FramePainter(FrameView& frameView) : m_frameView(frameView) { }
18 18
19 void paint(GraphicsContext*, const IntRect&); 19 void paint(GraphicsContext*, const IntRect&);
20 void paintScrollbars(GraphicsContext*, const IntRect&); 20 void paintScrollbars(GraphicsContext*, const IntRect&);
21 void paintContents(GraphicsContext*, const IntRect& damageRect); 21 void paintContents(GraphicsContext*, const IntRect& damageRect);
22 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); 22 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect);
23 23
24 private: 24 private:
25 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); 25 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&);
26 void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalOverhangA rea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect);
27 void calculateAndPaintOverhangAreas(GraphicsContext*, const IntRect& dirtyRe ct);
28 void paintOverhangAreasInternal(GraphicsContext*, const IntRect& horizontalO verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect);
29 26
30 FrameView& m_frameView; 27 FrameView& m_frameView;
31 static bool s_inPaintContents; 28 static bool s_inPaintContents;
32 }; 29 };
33 30
34 } // namespace blink 31 } // namespace blink
35 32
36 #endif // FramePainter_h 33 #endif // FramePainter_h
OLDNEW
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp ('k') | Source/core/paint/FramePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698