Bug 902462 - Enable SkiaGL on all GPUs, not just NVIDIA r=mattwoodrow
☠☠ backed out by 99219212d2ba ☠ ☠
authorJames Willcox <jwillcox@mozilla.com>
Tue, 23 Jul 2013 20:32:24 -0400
changeset 154604 25c8d8674c1fe0efa5220674930931ca36025842
parent 154603 7abe5be6f8d2e0a2a8382331ca7040bc80a99e04
child 154605 cf17bd948e44483cfcaf99abaf8a1504c2535554
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs902462
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 902462 - Enable SkiaGL on all GPUs, not just NVIDIA r=mattwoodrow
content/canvas/src/CanvasRenderingContext2D.cpp
--- a/content/canvas/src/CanvasRenderingContext2D.cpp
+++ b/content/canvas/src/CanvasRenderingContext2D.cpp
@@ -839,20 +839,17 @@ CanvasRenderingContext2D::EnsureTarget()
 #endif
 
         DemoteOldestContextIfNecessary();
 
         nsRefPtr<GLContext> glContext;
         nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
         nsString vendor;
 
-        if (!mForceSoftware &&
-            gfxInfo &&
-            NS_SUCCEEDED(gfxInfo->GetAdapterVendorID(vendor)) &&
-            StringBeginsWith(vendor, NS_LITERAL_STRING("NVIDIA")))
+        if (!mForceSoftware)
         {
           glContext = GLContextProvider::CreateOffscreen(gfxIntSize(size.width, size.height),
                                                          caps, GLContext::ContextFlagsNone);
         }
 
         if (glContext) {
           SkAutoTUnref<GrGLInterface> i(CreateGrGLInterfaceFromGLContext(glContext));
           mTarget = Factory::CreateDrawTargetSkiaWithGLContextAndGrGLInterface(glContext, i, size, format);