summaryrefslogtreecommitdiffstats
path: root/cc/layers/painted_scrollbar_layer_impl.cc
diff options
context:
space:
mode:
authorjackhou <jackhou@chromium.org>2014-12-03 21:24:44 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-04 05:25:03 +0000
commit10c9af41a73ac7db787d64344630f8200925cfe5 (patch)
treec2fe05f5439b39c9d9409b362a29577863469609 /cc/layers/painted_scrollbar_layer_impl.cc
parentedbe9193bddce5f58e9070e219735363cdc27191 (diff)
downloadchromium_src-10c9af41a73ac7db787d64344630f8200925cfe5.zip
chromium_src-10c9af41a73ac7db787d64344630f8200925cfe5.tar.gz
chromium_src-10c9af41a73ac7db787d64344630f8200925cfe5.tar.bz2
[cc] Add nearest neighbor filtering for TextureLayer.
Blink side is here (depends on this CL): https://codereview.chromium.org/562583002/ This CL also depends on another blink side change here: https://codereview.chromium.org/699103002/ BUG=134040 Review URL: https://codereview.chromium.org/558083002 Cr-Commit-Position: refs/heads/master@{#306768}
Diffstat (limited to 'cc/layers/painted_scrollbar_layer_impl.cc')
-rw-r--r--cc/layers/painted_scrollbar_layer_impl.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/cc/layers/painted_scrollbar_layer_impl.cc b/cc/layers/painted_scrollbar_layer_impl.cc
index ea48086..152f14d 100644
--- a/cc/layers/painted_scrollbar_layer_impl.cc
+++ b/cc/layers/painted_scrollbar_layer_impl.cc
@@ -73,6 +73,7 @@ void PaintedScrollbarLayerImpl::AppendQuads(
AppendQuadsData* append_quads_data) {
bool premultipled_alpha = true;
bool flipped = false;
+ bool nearest_neighbor = false;
gfx::PointF uv_top_left(0.f, 0.f);
gfx::PointF uv_bottom_right(1.f, 1.f);
gfx::Rect bounds_rect(bounds());
@@ -109,7 +110,8 @@ void PaintedScrollbarLayerImpl::AppendQuads(
uv_bottom_right,
SK_ColorTRANSPARENT,
opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
gfx::Rect track_quad_rect = content_bounds_rect;
@@ -130,7 +132,8 @@ void PaintedScrollbarLayerImpl::AppendQuads(
uv_bottom_right,
SK_ColorTRANSPARENT,
opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
}