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

Unified Diff: cc/scrollbar_layer.h

Issue 11464041: cc: Don't use partial updates for scrollbars when they are not allowed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years 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 | « cc/scrollbar_animation_controller.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scrollbar_layer.h
diff --git a/cc/scrollbar_layer.h b/cc/scrollbar_layer.h
index 2ddbad7b41eb78af13e354c7c23dc3f6032a17cb..1816f51ececb0fe87b55d2ffb4be74a32bd45ebb 100644
--- a/cc/scrollbar_layer.h
+++ b/cc/scrollbar_layer.h
@@ -58,6 +58,8 @@ private:
void createUpdaterIfNeeded();
gfx::Rect scrollbarLayerRectToContentRect(const gfx::Rect& layerRect) const;
+ bool isDirty() const { return !m_dirtyRect.IsEmpty(); }
+
int maxTextureSize();
float clampScaleToMaxTextureSize(float scale);
@@ -68,6 +70,8 @@ private:
GLenum m_textureFormat;
+ gfx::RectF m_dirtyRect;
+
scoped_refptr<CachingBitmapContentLayerUpdater> m_backTrackUpdater;
scoped_refptr<CachingBitmapContentLayerUpdater> m_foreTrackUpdater;
scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater;
« no previous file with comments | « cc/scrollbar_animation_controller.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698