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

Unified Diff: cc/layers/nine_patch_layer_impl.cc

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase Created 6 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/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/painted_scrollbar_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/nine_patch_layer_impl.cc
diff --git a/cc/layers/nine_patch_layer_impl.cc b/cc/layers/nine_patch_layer_impl.cc
index 0dd2b6fe14ba0652e8af337c62e3b1f974918713..82ba48011c6ca4a7b1173ee0608b61eb58547333 100644
--- a/cc/layers/nine_patch_layer_impl.cc
+++ b/cc/layers/nine_patch_layer_impl.cc
@@ -102,6 +102,7 @@ void NinePatchLayerImpl::AppendQuads(
return;
static const bool flipped = false;
+ static const bool nearest_neighbor = false;
static const bool premultiplied_alpha = true;
DCHECK(!bounds().IsEmpty());
@@ -228,7 +229,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_top_left.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect =
@@ -247,7 +249,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_top_right.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect =
@@ -266,7 +269,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_bottom_left.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect =
@@ -285,7 +289,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_bottom_right.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect = occlusion_in_content_space.GetUnoccludedContentRect(layer_top);
@@ -303,7 +308,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_top.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect =
@@ -322,7 +328,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_left.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect =
@@ -341,7 +348,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_right.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
visible_rect =
@@ -360,7 +368,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_bottom.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
if (fill_center_) {
@@ -380,7 +389,8 @@ void NinePatchLayerImpl::AppendQuads(
uv_center.bottom_right(),
SK_ColorTRANSPARENT,
vertex_opacity,
- flipped);
+ flipped,
+ nearest_neighbor);
}
}
}
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/painted_scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698