WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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-
Details
Formatted Diff
Diff
Patch
(1.95 KB, patch)
2012-12-12 14:20 PST
,
Pratik Solanki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pratik Solanki
Comment 1
2012-12-12 13:33:44 PST
Created
attachment 179118
[details]
Patch
Early Warning System Bot
Comment 2
2012-12-12 13:44:47 PST
Comment on
attachment 179118
[details]
Patch
Attachment 179118
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/15284606
Early Warning System Bot
Comment 3
2012-12-12 13:53:54 PST
Comment on
attachment 179118
[details]
Patch
Attachment 179118
[details]
did not pass qt-wk2-ews (qt): Output:
http://queues.webkit.org/results/15285461
Pratik Solanki
Comment 4
2012-12-12 14:20:26 PST
Created
attachment 179124
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug