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

Unified Diff: cc/resources/texture_mailbox.h

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add nearest_neighbor field to TextureMailbox. Created 6 years, 2 months 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
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 4a0b76afea04a9dda316d280c1482edd305dea68..f408e7ff85e41e64f8d3d9bd8a235103d5cbaa70 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -41,6 +41,8 @@ class CC_EXPORT TextureMailbox {
bool allow_overlay() const { return allow_overlay_; }
void set_allow_overlay(bool allow_overlay) { allow_overlay_ = allow_overlay; }
+ bool nearest_neighbor() const { return nearest_neighbor_; }
+ void set_nearest_neighbor(bool nearest_neighbor) { nearest_neighbor_ = nearest_neighbor; }
base::SharedMemory* shared_memory() const { return shared_memory_; }
gfx::Size shared_memory_size() const { return shared_memory_size_; }
@@ -51,6 +53,7 @@ class CC_EXPORT TextureMailbox {
base::SharedMemory* shared_memory_;
gfx::Size shared_memory_size_;
bool allow_overlay_;
+ bool nearest_neighbor_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698