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

Unified Diff: third_party/WebKit/Source/core/paint/FramePainter.h

Issue 2872793002: Notify paint for each frame (Closed)
Patch Set: fix layout test Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/FramePainter.h
diff --git a/third_party/WebKit/Source/core/paint/FramePainter.h b/third_party/WebKit/Source/core/paint/FramePainter.h
index 752f2699d9a7ad6df5a7a78ca39192f1a6304f31..5c1809dd5fff1b9488f505e9b9aa10c1084318fc 100644
--- a/third_party/WebKit/Source/core/paint/FramePainter.h
+++ b/third_party/WebKit/Source/core/paint/FramePainter.h
@@ -5,6 +5,7 @@
#ifndef FramePainter_h
#define FramePainter_h
+#include "core/paint/FramePaintTiming.h"
#include "core/paint/PaintPhase.h"
#include "platform/heap/Handle.h"
@@ -21,21 +22,22 @@ class FramePainter {
WTF_MAKE_NONCOPYABLE(FramePainter);
public:
- explicit FramePainter(const FrameView& frame_view)
- : frame_view_(&frame_view) {}
+ FramePainter(GraphicsContext&, const FrameView&);
- void Paint(GraphicsContext&, const GlobalPaintFlags, const CullRect&);
- void PaintScrollbars(GraphicsContext&, const IntRect&);
- void PaintContents(GraphicsContext&, const GlobalPaintFlags, const IntRect&);
- void PaintScrollCorner(GraphicsContext&, const IntRect& corner_rect);
+ void Paint(const GlobalPaintFlags, const CullRect&);
+ void PaintScrollbars(const IntRect&);
+ void PaintContents(const GlobalPaintFlags, const IntRect&);
+ void PaintScrollCorner(const IntRect& corner_rect);
private:
- void PaintScrollbar(GraphicsContext&, Scrollbar&, const IntRect&);
+ void PaintScrollbar(Scrollbar&, const IntRect&);
- const FrameView& GetFrameView();
+ const FrameView& GetFrameView() const;
+ GraphicsContext& context_;
Member<const FrameView> frame_view_;
static bool in_paint_contents_;
+ FramePaintTiming frame_paint_timing_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698