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:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87353
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-05-25 Gregg Tavares <gman@chromium.org>
+
+ 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 <keishi@webkit.org>
Reviewed by Kent Tamura.
attributes.antialias = false;
}
+ attributes.noExtensions = true;
RefPtr<GraphicsContext3D> context(GraphicsContext3D::create(attributes, hostWindow));
if (!context) {
, premultipliedAlpha(true)
, canRecoverFromContextLoss(true)
, preserveDrawingBuffer(false)
+ , noExtensions(false)
{
}
bool premultipliedAlpha;
bool canRecoverFromContextLoss;
bool preserveDrawingBuffer;
+ bool noExtensions;
};
enum RenderStyle {
, antialias(true)
, premultipliedAlpha(true)
, canRecoverFromContextLoss(true)
+ , noExtensions(false)
{
}
bool antialias;
bool premultipliedAlpha;
bool canRecoverFromContextLoss;
+ bool noExtensions;
};
class WebGraphicsContextLostCallback {
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;