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

Unified Diff: cc/layers/texture_layer.cc

Issue 2451273003: cc : Snap texture layers to pixel boundary (Closed)
Patch Set: Created 4 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/layers/texture_layer.cc
diff --git a/cc/layers/texture_layer.cc b/cc/layers/texture_layer.cc
index ed62bc4b0ce66deb6047163612b80c1599b77b98..802fb8d6164526a248b550ecd605c055015d8618 100644
--- a/cc/layers/texture_layer.cc
+++ b/cc/layers/texture_layer.cc
@@ -201,6 +201,10 @@ bool TextureLayer::Update() {
return updated || !update_rect().IsEmpty();
}
+bool TextureLayer::IsSnapped() {
+ return true;
+}
+
void TextureLayer::PushPropertiesTo(LayerImpl* layer) {
Layer::PushPropertiesTo(layer);
TRACE_EVENT0("cc", "TextureLayer::PushPropertiesTo");

Powered by Google App Engine
This is Rietveld 408576698