Title: [87353] trunk
Revision
87353
Author
[email protected]
Date
2011-05-25 20:32:07 -0700 (Wed, 25 May 2011)

Log Message

2011-05-25  Gregg Tavares  <[email protected]>

        Reviewed by Kenneth Russell.

        Add 'noExtensions' option to Web/GraphicsContext3D attributes.
        https://bugs.webkit.org/show_bug.cgi?id=61460

        * Source/WebCore/html/canvas/WebGLRenderingContext.cpp:
        * Source/WebCore/platform/graphics/GraphicsContext3D.h:
        * Source/WebKit/chromium/public/WebGraphicsContext3D.h:
        * Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:

Modified Paths

Diff

Modified: trunk/ChangeLog (87352 => 87353)


--- trunk/ChangeLog	2011-05-26 03:13:31 UTC (rev 87352)
+++ trunk/ChangeLog	2011-05-26 03:32:07 UTC (rev 87353)
@@ -1,3 +1,15 @@
+2011-05-25  Gregg Tavares  <[email protected]>
+
+        Reviewed by Kenneth Russell.
+
+        Add 'noExtensions' option to Web/GraphicsContext3D attributes.
+        https://bugs.webkit.org/show_bug.cgi?id=61460
+
+        * Source/WebCore/html/canvas/WebGLRenderingContext.cpp:
+        * Source/WebCore/platform/graphics/GraphicsContext3D.h:
+        * Source/WebKit/chromium/public/WebGraphicsContext3D.h:
+        * Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp:
+
 2011-05-24  Keishi Hattori  <[email protected]>
 
         Reviewed by Kent Tamura.

Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp (87352 => 87353)


--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp	2011-05-26 03:13:31 UTC (rev 87352)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp	2011-05-26 03:32:07 UTC (rev 87353)
@@ -369,6 +369,7 @@
             attributes.antialias = false;
     }
 
+    attributes.noExtensions = true;
     RefPtr<GraphicsContext3D> context(GraphicsContext3D::create(attributes, hostWindow));
 
     if (!context) {

Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h (87352 => 87353)


--- trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h	2011-05-26 03:13:31 UTC (rev 87352)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h	2011-05-26 03:32:07 UTC (rev 87353)
@@ -427,6 +427,7 @@
             , premultipliedAlpha(true)
             , canRecoverFromContextLoss(true)
             , preserveDrawingBuffer(false)
+            , noExtensions(false)
         {
         }
 
@@ -437,6 +438,7 @@
         bool premultipliedAlpha;
         bool canRecoverFromContextLoss;
         bool preserveDrawingBuffer;
+        bool noExtensions;
     };
 
     enum RenderStyle {

Modified: trunk/Source/WebKit/chromium/public/WebGraphicsContext3D.h (87352 => 87353)


--- trunk/Source/WebKit/chromium/public/WebGraphicsContext3D.h	2011-05-26 03:13:31 UTC (rev 87352)
+++ trunk/Source/WebKit/chromium/public/WebGraphicsContext3D.h	2011-05-26 03:32:07 UTC (rev 87353)
@@ -85,6 +85,7 @@
             , antialias(true)
             , premultipliedAlpha(true)
             , canRecoverFromContextLoss(true)
+            , noExtensions(false)
         {
         }
 
@@ -94,6 +95,7 @@
         bool antialias;
         bool premultipliedAlpha;
         bool canRecoverFromContextLoss;
+        bool noExtensions;
     };
 
     class WebGraphicsContextLostCallback {

Modified: trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp (87352 => 87353)


--- trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp	2011-05-26 03:13:31 UTC (rev 87352)
+++ trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp	2011-05-26 03:32:07 UTC (rev 87353)
@@ -109,6 +109,7 @@
     webAttributes.antialias = attrs.antialias;
     webAttributes.premultipliedAlpha = attrs.premultipliedAlpha;
     webAttributes.canRecoverFromContextLoss = attrs.canRecoverFromContextLoss;
+    webAttributes.noExtensions = attrs.noExtensions;
     OwnPtr<WebKit::WebGraphicsContext3D> webContext = adoptPtr(WebKit::webKitClient()->createGraphicsContext3D());
     if (!webContext)
         return false;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to