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

Unified Diff: cc/output/ca_layer_overlay.cc

Issue 2183333002: Enable RenderPassDrawQuad promotion to CALayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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.h ('k') | cc/output/overlay_unittest.cc » ('j') | 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 8d4deb12ab2a90e3c8416500cd3e06a3d6fada6f..8117a682d844534237aba51151e47a6930fb0d63 100644
--- a/cc/output/ca_layer_overlay.cc
+++ b/cc/output/ca_layer_overlay.cc
@@ -17,8 +17,6 @@ namespace cc {
namespace {
-bool g_allow_rpdq_quad_conversion = false;
-
// This enum is used for histogram states and should only have new values added
// to the end before COUNT.
enum CALayerResult {
@@ -122,11 +120,7 @@ CALayerResult FromRenderPassQuad(ResourceProvider* resource_provider,
ca_layer_overlay->render_pass_id = quad->render_pass_id;
ca_layer_overlay->contents_rect = gfx::RectF(0, 0, 1, 1);
- // TODO(erikchen): Enable this when RenderPassDrawQuad promotion to CALayer
- // is fully functional. https://crbug.com/581526.
- if (g_allow_rpdq_quad_conversion)
- return CA_LAYER_SUCCESS;
- return CA_LAYER_FAILED_RENDER_PASS;
+ return CA_LAYER_SUCCESS;
}
CALayerResult FromStreamVideoQuad(ResourceProvider* resource_provider,
@@ -342,8 +336,4 @@ bool ProcessForCALayerOverlays(ResourceProvider* resource_provider,
return true;
}
-void EnableRenderPassDrawQuadForTesting() {
- g_allow_rpdq_quad_conversion = true;
-}
-
} // namespace cc
« no previous file with comments | « cc/output/ca_layer_overlay.h ('k') | cc/output/overlay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698