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

Unified Diff: cc/output/direct_renderer.cc

Issue 14417014: cc: Add tile-free software compositing mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests and optimize quad generation Created 7 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 e0cedb6f757c64470563b96afa050454992ce4af..c712d75e7a34a4e759163f75202c273ba18f2e7c 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -133,6 +133,9 @@ void DirectRenderer::SetEnlargePassTextureAmountForTesting(
void DirectRenderer::DecideRenderPassAllocationsForFrame(
const RenderPassList& render_passes_in_draw_order) {
+ if (!resource_provider_)
+ return;
+
base::hash_map<RenderPass::Id, const RenderPass*> render_passes_in_frame;
for (size_t i = 0; i < render_passes_in_draw_order.size(); ++i)
render_passes_in_frame.insert(std::pair<RenderPass::Id, const RenderPass*>(
@@ -317,6 +320,9 @@ bool DirectRenderer::UseRenderPass(DrawingFrame* frame,
return true;
}
+ if (!resource_provider_)
enne (OOO) 2013/05/07 06:11:22 Does this line imply that you can't have render pa
aelias_OOO_until_Jul13 2013/05/07 23:51:47 Yes, for now. We may revisit and add support late
enne (OOO) 2013/05/09 17:35:43 Ok. You're the one making the requirements here a
+ return false;
+
CachedResource* texture = render_pass_textures_.get(render_pass->id);
DCHECK(texture);

Powered by Google App Engine
This is Rietveld 408576698