зеркало из https://github.com/mozilla/gecko-dev.git
Bug 827170 - back out a920571903da to see if it is what caused SVG reftests (android R4) to fail - no review, bustage on a CLOSED TREE
This commit is contained in:
Родитель
6bc93ea756
Коммит
3d7eb6e1ad
|
@ -193,19 +193,8 @@ ContainerRender(Container* aContainer,
|
|||
const gfx3DMatrix& transform = aContainer->GetEffectiveTransform();
|
||||
bool needsFramebuffer = aContainer->UseIntermediateSurface();
|
||||
if (needsFramebuffer) {
|
||||
nsIntRect framebufferRect = visibleRect;
|
||||
// we're about to create a framebuffer backed by textures to use as an intermediate
|
||||
// surface. What to do if its size (as given by framebufferRect) would exceed the
|
||||
// maximum texture size supported by the GL? The present code chooses the compromise
|
||||
// of just clamping the framebuffer's size to the max supported size.
|
||||
// This gives us a lower resolution rendering of the intermediate surface (children layers).
|
||||
// See bug 827170 for a discussion.
|
||||
GLint maxTexSize;
|
||||
aContainer->gl()->fGetIntegerv(LOCAL_GL_MAX_TEXTURE_SIZE, &maxTexSize);
|
||||
framebufferRect.width = std::min(framebufferRect.width, maxTexSize);
|
||||
framebufferRect.height = std::min(framebufferRect.height, maxTexSize);
|
||||
|
||||
LayerManagerOGL::InitMode mode = LayerManagerOGL::InitModeClear;
|
||||
nsIntRect framebufferRect = visibleRect;
|
||||
if (aContainer->GetEffectiveVisibleRegion().GetNumRects() == 1 &&
|
||||
(aContainer->GetContentFlags() & Layer::CONTENT_OPAQUE))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче