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

Unified Diff: third_party/WebKit/public/platform/WebScrollbarThemePainter.h

Issue 1458703010: Mac: Don't repaint scrollbars every frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master2
Patch Set: Sprinkle in some tests Created 5 years, 1 month 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/public/platform/WebScrollbarThemePainter.h
diff --git a/third_party/WebKit/public/platform/WebScrollbarThemePainter.h b/third_party/WebKit/public/platform/WebScrollbarThemePainter.h
index 6563a6e65b533381525d75d541d02ed2601eef06..d295e9d29eeb6df7a3ee6af2b92be6b139b04f03 100644
--- a/third_party/WebKit/public/platform/WebScrollbarThemePainter.h
+++ b/third_party/WebKit/public/platform/WebScrollbarThemePainter.h
@@ -64,6 +64,12 @@ public:
BLINK_PLATFORM_EXPORT void paintTickmarks(WebCanvas*, const WebRect&);
BLINK_PLATFORM_EXPORT void paintThumb(WebCanvas*, const WebRect&);
+ BLINK_PLATFORM_EXPORT float trackOpacity() const;
+ BLINK_PLATFORM_EXPORT float thumbOpacity() const;
+
+ BLINK_PLATFORM_EXPORT bool needsPaintTrack() const;
chrishtr 2015/11/23 18:59:42 trackBackgroudNeedsRepaint() thumbNeedsRepaint()
ccameron 2015/11/24 01:12:05 Done.
+ BLINK_PLATFORM_EXPORT bool needsPaintThumb() const;
+
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebScrollbarThemePainter(ScrollbarTheme*, Scrollbar*, float deviceScaleFactor);
#endif

Powered by Google App Engine
This is Rietveld 408576698