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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 789433003: [cc] Add nearest neighbor filtering for PictureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only SetNeedsDisplay|PushProperties if nearest_neighbor changed. 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
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 52d8433c93ca94c4edc5b2611dbad50b2093e5a0..77bdd3476684f6d8d68f4228d2c42751ac14568c 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -115,6 +115,8 @@ class CC_EXPORT PictureLayerImpl
gfx::Size* resource_size) const override;
void set_is_mask(bool is_mask) { is_mask_ = is_mask; }
+ void SetNearestNeighbor(bool nearest_neighbor);
+
size_t GPUMemoryUsageInBytes() const override;
void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override;
@@ -201,6 +203,8 @@ class CC_EXPORT PictureLayerImpl
bool only_used_low_res_last_append_quads_;
bool is_mask_;
+ bool nearest_neighbor_;
+
// Any draw properties derived from |transform|, |viewport|, and |clip|
// parameters in LayerTreeHostImpl::SetExternalDrawConstraints are not valid
// for prioritizing tiles during resourceless software draws. This is because

Powered by Google App Engine
This is Rietveld 408576698