RESOLVED FIXED 97275
Duplicate code in GraphicsContext3D::validateAttributes() and GraphicsContext3D::validateDepthStencil()
https://bugs.webkit.org/show_bug.cgi?id=97275
Summary Duplicate code in GraphicsContext3D::validateAttributes() and GraphicsContext...
Pratik Solanki
Reported 2012-09-20 17:35:36 PDT
Both GraphicsContext3D::validateAttributes() and GraphicsContext3D::validateDepthStencil() have this code if (m_attrs.antialias) { bool isValidVendor = true; // Currently in Mac we only turn on antialias if vendor is NVIDIA, // or if ATI and on 10.7.2 and above. const char* vendor = reinterpret_cast<const char*>(::glGetString(GL_VENDOR)); if (!vendor || (!std::strstr(vendor, "NVIDIA") && !(std::strstr(vendor, "ATI") && systemAllowsMultisamplingOnATICards()))) isValidVendor = false; if (!isValidVendor || !extensions->supports("GL_ANGLE_framebuffer_multisample") || isGLES2Compliant()) m_attrs.antialias = false; else extensions->ensureEnabled("GL_ANGLE_framebuffer_multisample"); } And validateAttributes() calls validateDepthStencil() so we are calling this twice? Can the code be shared? Or does on copy need to be deleted?
Attachments
Patch (1.87 KB, patch)
2012-12-12 13:33 PST, Pratik Solanki
webkit-ews: commit-queue-
Patch (1.95 KB, patch)
2012-12-12 14:20 PST, Pratik Solanki
no flags
Pratik Solanki
Comment 1 2012-12-12 13:33:44 PST
Early Warning System Bot
Comment 2 2012-12-12 13:44:47 PST
Early Warning System Bot
Comment 3 2012-12-12 13:53:54 PST
Pratik Solanki
Comment 4 2012-12-12 14:20:26 PST
Pratik Solanki
Comment 5 2012-12-13 10:18:07 PST
Comment on attachment 179124 [details] Patch Clearing flags on attachment: 179124 Committed r137606: <http://trac.webkit.org/changeset/137606>
Pratik Solanki
Comment 6 2012-12-13 10:18:09 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.