diff options
Diffstat (limited to 'cc/texture_layer_impl.cc')
-rw-r--r-- | cc/texture_layer_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/texture_layer_impl.cc b/cc/texture_layer_impl.cc index 291ea46..81c58cc 100644 --- a/cc/texture_layer_impl.cc +++ b/cc/texture_layer_impl.cc @@ -42,7 +42,8 @@ void TextureLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQu appendDebugBorderQuad(quadSink, sharedQuadState, appendQuadsData); gfx::Rect quadRect(gfx::Point(), contentBounds()); - quadSink.append(TextureDrawQuad::create(sharedQuadState, quadRect, m_externalTextureResource, m_premultipliedAlpha, m_uvRect, m_flipped).PassAs<DrawQuad>(), appendQuadsData); + gfx::Rect opaqueRect(contentsOpaque() ? quadRect : gfx::Rect()); + quadSink.append(TextureDrawQuad::create(sharedQuadState, quadRect, opaqueRect, m_externalTextureResource, m_premultipliedAlpha, m_uvRect, m_flipped).PassAs<DrawQuad>(), appendQuadsData); } void TextureLayerImpl::didDraw(ResourceProvider* resourceProvider) |