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

Unified Diff: cc/layers/picture_layer.h

Issue 789433003: [cc] Add nearest neighbor filtering for PictureLayer. (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/blink/web_image_layer_impl.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 04c5f8fe2a837e1ea5c5d35961a7fdee54b5ea06..648d1c93f142ea1d3c313f9a840cec9c478e9f98 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -23,6 +23,8 @@ class CC_EXPORT PictureLayer : public Layer {
void ClearClient();
+ void SetNearestNeighbor(bool nearest_neighbor);
+
// Layer interface.
scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
void SetLayerTreeHost(LayerTreeHost* host) override;
@@ -69,6 +71,7 @@ class CC_EXPORT PictureLayer : public Layer {
int update_source_frame_number_;
bool can_use_lcd_text_for_update_;
bool is_mask_;
+ bool nearest_neighbor_;
DISALLOW_COPY_AND_ASSIGN(PictureLayer);
};
« no previous file with comments | « cc/blink/web_image_layer_impl.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698