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

Unified Diff: cc/layers/texture_layer_impl.h

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/texture_layer.cc ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_impl.h
diff --git a/cc/layers/texture_layer_impl.h b/cc/layers/texture_layer_impl.h
index 6d38ae1f4456e1f4ead840d92d6f1de26901bb77..64de26896f3c4d61116d5c71a64483a67418efc5 100644
--- a/cc/layers/texture_layer_impl.h
+++ b/cc/layers/texture_layer_impl.h
@@ -41,6 +41,7 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
void SetPremultipliedAlpha(bool premultiplied_alpha);
void SetBlendBackgroundColor(bool blend);
void SetFlipped(bool flipped);
+ void SetNearestNeighbor(bool nearest_neighbor);
void SetUVTopLeft(const gfx::PointF top_left);
void SetUVBottomRight(const gfx::PointF bottom_right);
@@ -63,6 +64,7 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
bool premultiplied_alpha_;
bool blend_background_color_;
bool flipped_;
+ bool nearest_neighbor_;
gfx::PointF uv_top_left_;
gfx::PointF uv_bottom_right_;
float vertex_opacity_[4];
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698