summaryrefslogtreecommitdiffstats
path: root/cc/layers/texture_layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/texture_layer.h')
-rw-r--r--cc/layers/texture_layer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/layers/texture_layer.h b/cc/layers/texture_layer.h
index fa52a8c..15c9aa0 100644
--- a/cc/layers/texture_layer.h
+++ b/cc/layers/texture_layer.h
@@ -100,6 +100,10 @@ class CC_EXPORT TextureLayer : public Layer {
// true.
void SetFlipped(bool flipped);
+ // Sets whether this texture should use nearest neighbor interpolation as
+ // opposed to bilinear. Defaults to false.
+ void SetNearestNeighbor(bool nearest_neighbor);
+
// Sets a UV transform to be used at draw time. Defaults to (0, 0) and (1, 1).
void SetUV(const gfx::PointF& top_left, const gfx::PointF& bottom_right);
@@ -156,6 +160,7 @@ class CC_EXPORT TextureLayer : public Layer {
TextureLayerClient* client_;
bool flipped_;
+ bool nearest_neighbor_;
gfx::PointF uv_top_left_;
gfx::PointF uv_bottom_right_;
// [bottom left, top left, top right, bottom right]