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

Unified Diff: cc/layers/texture_layer_impl.cc

Issue 1959893002: cc: Avoid appending invisible TextureLayer quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/layers/texture_layer_impl.cc
diff --git a/cc/layers/texture_layer_impl.cc b/cc/layers/texture_layer_impl.cc
index 1474bbf19309b3065ca8e80013f9cde2e7409bd2..485d2c0e5fbb8f64febe30a2585fe7880f742780 100644
--- a/cc/layers/texture_layer_impl.cc
+++ b/cc/layers/texture_layer_impl.cc
@@ -165,6 +165,10 @@ void TextureLayerImpl::AppendQuads(RenderPass* render_pass,
if (visible_quad_rect.IsEmpty())
return;
+ if (!vertex_opacity_[0] && !vertex_opacity_[1] && !vertex_opacity_[2] &&
+ !vertex_opacity_[3])
+ return;
+
if (!texture_mailbox_.secure_output_only() ||
(layer_tree_impl()->OutputIsSecure() && !InsideCopyRequest())) {
TextureDrawQuad* quad =
« 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