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

Unified Diff: cc/output/direct_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/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 19c0e4ab7ed6e054300ae4ae83e7a62e014fcc85..dccd57c902728a6b267b3b2bfc44e12c7f962fcc 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -618,6 +618,9 @@ bool DirectRenderer::UseRenderPass(const RenderPass* render_pass) {
texture->Allocate(
size, ResourceProvider::TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER,
BackbufferFormat(), current_frame()->current_render_pass->color_space);
+ } else {
+ if (render_pass->force_render_surface)
reveman 2017/05/10 13:06:17 I'm not sure we can do this without also checking
wutao 2017/05/11 19:36:34 Tested in some animation and the render_pass->dama
+ return false;
}
DCHECK(texture->id());

Powered by Google App Engine
This is Rietveld 408576698