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

Unified Diff: cc/output/gl_renderer.cc

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Created 3 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
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index b52405c82ee34b1517c8b71305f89b1ca886ed50..450422af61b7032f77fc3ee91aa9e85890fb919d 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -989,7 +989,7 @@ const TileDrawQuad* GLRenderer::CanPassBeDrawnDirectly(const RenderPass* pass) {
if (pass->quad_list.size() != 1)
return nullptr;
// If we need copy requests, then render pass has to exist.
- if (!pass->copy_requests.empty())
+ if (!pass->copy_requests.empty() || pass->force_render_surface)
reveman 2017/05/10 13:06:17 I'm not sure we want to avoid this optimization. I
wutao 2017/05/11 19:36:34 Agree. Removed.
return nullptr;
const DrawQuad* quad = *pass->quad_list.BackToFrontBegin();

Powered by Google App Engine
This is Rietveld 408576698