Index: cc/direct_renderer.cc |
diff --git a/cc/direct_renderer.cc b/cc/direct_renderer.cc |
index c0efca4eb45aa6953e30841350389d88ab647914..aba56144849c815b18cae77e6833bd3a7e3711c2 100644 |
--- a/cc/direct_renderer.cc |
+++ b/cc/direct_renderer.cc |
@@ -135,7 +135,9 @@ void DirectRenderer::decideRenderPassAllocationsForFrame(const RenderPassList& r |
CachedResource* texture = passIterator->second; |
DCHECK(texture); |
- if (texture->id() && (texture->size() != requiredSize || texture->format() != requiredFormat)) |
+ bool sizeAppropriate = texture->size().width() >= requiredSize.width() && |
+ texture->size().height() >= requiredSize.height(); |
+ if (texture->id() && (!sizeAppropriate || texture->format() != requiredFormat)) |
danakj
2012/11/20 00:26:33
I'm worried about the texture cacheing code. It ma
danakj
2012/11/20 00:36:41
Is it true that in order for the size of the rende
enne (OOO)
2012/11/20 00:39:45
Yeah, I think contentsChangedSinceLastFrame will c
danakj
2012/11/20 00:41:36
Ya, Okay I've convinced myself that we'll be alrig
|
texture->Free(); |
} |