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

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: Rebase and resolve 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
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fcbfe14b7d9bffda9581d9c0ebce630bbd224061 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&);
+ // This opacity is applied on top of the content that is painted for the thumb.
+ BLINK_PLATFORM_EXPORT float thumbOpacity() const;
+
+ BLINK_PLATFORM_EXPORT bool trackNeedsRepaint() const;
+ BLINK_PLATFORM_EXPORT bool thumbNeedsRepaint() const;
+
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT WebScrollbarThemePainter(ScrollbarTheme*, Scrollbar*, float deviceScaleFactor);
#endif
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarThemeMock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698