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

Unified Diff: cc/layers/painted_scrollbar_layer.h

Issue 150603004: Fixed rounding issue on scrollbar rasterization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Test Created 6 years, 10 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
« no previous file with comments | « no previous file | cc/layers/painted_scrollbar_layer.cc » ('j') | cc/layers/painted_scrollbar_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/painted_scrollbar_layer.h
diff --git a/cc/layers/painted_scrollbar_layer.h b/cc/layers/painted_scrollbar_layer.h
index 4799bfb3fa14fd6504e6a06f02c6d306d619922d..c0e01ebbb7305c13f2e4ca0df763fde4f0a22bd1 100644
--- a/cc/layers/painted_scrollbar_layer.h
+++ b/cc/layers/painted_scrollbar_layer.h
@@ -77,7 +77,13 @@ class CC_EXPORT PaintedScrollbarLayer : public ScrollbarLayerInterface,
int MaxTextureSize();
float ClampScaleToMaxTextureSize(float scale);
- UIResourceBitmap RasterizeScrollbarPart(const gfx::Rect& rect,
+ float calculateIdealScale(float content_scale,
+ int layer_edge,
+ int layer_size,
+ int target_size) const;
+
+ UIResourceBitmap RasterizeScrollbarPart(const gfx::Rect& layer_rect,
+ const gfx::Rect& content_rect,
ScrollbarPart part);
scoped_ptr<Scrollbar> scrollbar_;
« no previous file with comments | « no previous file | cc/layers/painted_scrollbar_layer.cc » ('j') | cc/layers/painted_scrollbar_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698