Support passing preferLowPowerToHighPerformance and failIfMajorPerformanceCaveat
[WebKit-https.git] / Source / WebCore / ChangeLog
index 9452229..ebed889 100644 (file)
@@ -1,3 +1,30 @@
+2016-08-18  Dean Jackson  <dino@apple.com>
+
+        Support passing preferLowPowerToHighPerformance and failIfMajorPerformanceCaveat
+        https://bugs.webkit.org/show_bug.cgi?id=160982
+        <rdar://problem/27915946>
+
+        Reviewed by Simon Fraser.
+
+        Update WebGLContextAttributes to be compliant with the specification,
+        by adding preferLowPowerToHighPerformance and failIfMajorPerformanceCaveat.
+        They are not implemented yet, so asking the created context what
+        values it used should give the default.
+
+        Test: fast/canvas/webgl/context-creation-attributes.html
+
+        * html/canvas/WebGLContextAttributes.cpp:
+        (WebCore::WebGLContextAttributes::preferLowPowerToHighPerformance):
+        (WebCore::WebGLContextAttributes::setPreferLowPowerToHighPerformance):
+        (WebCore::WebGLContextAttributes::failIfMajorPerformanceCaveat):
+        (WebCore::WebGLContextAttributes::setFailIfMajorPerformanceCaveat):
+        * html/canvas/WebGLContextAttributes.h:
+        * html/canvas/WebGLContextAttributes.idl:
+        * html/canvas/WebGLRenderingContextBase.cpp:
+        (WebCore::WebGLRenderingContextBase::create): Deleted.
+        * platform/graphics/GraphicsContext3D.h:
+        (WebCore::GraphicsContext3D::Attributes::Attributes): Deleted.
+
 2016-08-18  Anders Carlsson  <andersca@apple.com>
 
         Move an NPAPI-only function from WebCore to WebKit