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

Unified Diff: cc/output/overlay_unittest.cc

Issue 2351343002: Disable CA compositor if there are too many quads. (Closed)
Patch Set: Only look at RPDQs. Created 4 years, 3 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 | « cc/output/ca_layer_overlay.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_unittest.cc
diff --git a/cc/output/overlay_unittest.cc b/cc/output/overlay_unittest.cc
index 75310c9029b70cee1714ff72e4c037b34297f52e..e77346f44c7a397644ed95a14b025f917bf89f76 100644
--- a/cc/output/overlay_unittest.cc
+++ b/cc/output/overlay_unittest.cc
@@ -1883,5 +1883,22 @@ TEST_F(CALayerOverlayRPDQTest, RenderPassDrawQuadUnsupportedFilter) {
EXPECT_EQ(0U, ca_layer_list_.size());
}
+TEST_F(CALayerOverlayRPDQTest, TooManyRenderPassDrawQuads) {
+ filters_.Append(FilterOperation::CreateBlurFilter(0.8f));
+ int count = 35;
+
+ for (int i = 0; i < count; ++i) {
+ RenderPassDrawQuad* quad =
+ pass_->CreateAndAppendDrawQuad<RenderPassDrawQuad>();
+ quad->SetNew(pass_->shared_quad_state_list.back(), kOverlayRect,
+ kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(),
+ gfx::Size(), filters_, gfx::Vector2dF(1, 1), gfx::PointF(),
+ background_filters_);
+ }
+
+ ProcessForOverlays();
+ EXPECT_EQ(0U, ca_layer_list_.size());
+}
+
} // namespace
} // namespace cc
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698