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

Unified Diff: cc/output/ca_layer_overlay.cc

Issue 1912533002: [Merge to 2704] Disable nearest_neighbors quads for CoreAnimation compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/ca_layer_overlay.cc
diff --git a/cc/output/ca_layer_overlay.cc b/cc/output/ca_layer_overlay.cc
index 2dd235343037376119ca11f9746189e7ef65545c..e418934fd65a510bf023c78891dd912984289a56 100644
--- a/cc/output/ca_layer_overlay.cc
+++ b/cc/output/ca_layer_overlay.cc
@@ -83,6 +83,11 @@ CALayerResult FromTextureQuad(ResourceProvider* resource_provider,
unsigned resource_id = quad->resource_id();
if (!resource_provider->IsOverlayCandidate(resource_id))
return CA_LAYER_FAILED_TEXTURE_NOT_CANDIDATE;
+ // The filter has not yet been plumbed through the CoreAnimation compositor,
+ // so we can't use it for non-default minification/magnification filters.
+ // https://crbug.com/602103
+ if (quad->nearest_neighbor)
+ return CA_LAYER_FAILED_TEXTURE_NOT_CANDIDATE;
if (quad->y_flipped) {
// The anchor point is at the bottom-left corner of the CALayer. The
// transformation that flips the contents of the layer without changing its
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698