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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.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
Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h
index fd5d323390b4525c98863801476fb50e1adec9b9..d74d8403783eafd1a0ccee4a43c091da4746d112 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeMacOverlayAPI.h
@@ -39,6 +39,7 @@ namespace blink {
class PLATFORM_EXPORT ScrollbarThemeMacOverlayAPI : public ScrollbarThemeMacCommon {
public:
+ bool shouldRepaintAllPartsOnInvalidation() const override { return false; }
void updateEnabledState(const ScrollbarThemeClient*) override;
int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override;
bool usesOverlayScrollbars() const override;
@@ -49,11 +50,13 @@ public:
void unregisterScrollbar(ScrollbarThemeClient*) override;
void setNewPainterForScrollbar(ScrollbarThemeClient*, ScrollbarPainter);
- ScrollbarPainter painterForScrollbar(const ScrollbarThemeClient*);
+ ScrollbarPainter painterForScrollbar(const ScrollbarThemeClient*) const;
void paintTrackBackground(GraphicsContext*, const ScrollbarThemeClient*, const IntRect&) override;
void paintThumb(GraphicsContext*, const ScrollbarThemeClient*, const IntRect&) override;
+ float thumbOpacity(const ScrollbarThemeClient*) const override;
+
protected:
IntRect trackRect(const ScrollbarThemeClient*, bool painting = false) override;
IntRect backButtonRect(const ScrollbarThemeClient*, ScrollbarPart, bool painting = false) override;

Powered by Google App Engine
This is Rietveld 408576698