[chromium] Remove canRecoverFromContextLoss attribute, it's unused
authorjamesr@google.com <jamesr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Mar 2012 21:42:28 +0000 (21:42 +0000)
committerjamesr@google.com <jamesr@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Mar 2012 21:42:28 +0000 (21:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=81158

Reviewed by Stephen White.

Source/WebCore:

Canvas accelerated no longer depends on the canRecoverFromContextLoss attribute after r110716.

* platform/graphics/GraphicsContext3D.h:
(WebCore::GraphicsContext3D::Attributes::Attributes):
(Attributes):
* platform/graphics/gpu/SharedGraphicsContext3D.cpp:
(WebCore::SharedGraphicsContext3DImpl::get):

Source/WebKit/chromium:

Deletes the canRecoverFromContextLoss attribute from WebCore::GraphicsContext3D::Attributes. This is still left in
WebGraphicsContext3D::Attributes, since chromium-side code still references it.

* src/GraphicsContext3DChromium.cpp:
(WebCore::GraphicsContext3D::create):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110757 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/GraphicsContext3D.h
Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp

index 11b1b98..5927133 100644 (file)
@@ -1,3 +1,18 @@
+2012-03-14  James Robinson  <jamesr@chromium.org>
+
+        [chromium] Remove canRecoverFromContextLoss attribute, it's unused
+        https://bugs.webkit.org/show_bug.cgi?id=81158
+
+        Reviewed by Stephen White.
+
+        Canvas accelerated no longer depends on the canRecoverFromContextLoss attribute after r110716.
+
+        * platform/graphics/GraphicsContext3D.h:
+        (WebCore::GraphicsContext3D::Attributes::Attributes):
+        (Attributes):
+        * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
+        (WebCore::SharedGraphicsContext3DImpl::get):
+
 2012-03-14  Jer Noble  <jer.noble@apple.com>
 
         Opening a URL in a MediaDocument does not propagate MIME type info to media element
index 455ffe2..3bb85f8 100644 (file)
@@ -439,7 +439,6 @@ public:
             , stencil(false)
             , antialias(true)
             , premultipliedAlpha(true)
-            , canRecoverFromContextLoss(true)
             , preserveDrawingBuffer(false)
             , noExtensions(false)
             , shareResources(true)
@@ -452,7 +451,6 @@ public:
         bool stencil;
         bool antialias;
         bool premultipliedAlpha;
-        bool canRecoverFromContextLoss;
         bool preserveDrawingBuffer;
         bool noExtensions;
         bool shareResources;
index 8dc8a59..e5d5f9a 100644 (file)
@@ -45,7 +45,6 @@ public:
             attributes.depth = false;
             attributes.stencil = true;
             attributes.antialias = false;
-            attributes.canRecoverFromContextLoss = false;
             attributes.shareResources = true;
             attributes.preferDiscreteGPU = true;
             m_context = GraphicsContext3D::create(attributes, 0);
index 8c2d08c..d224267 100644 (file)
@@ -1,3 +1,16 @@
+2012-03-14  James Robinson  <jamesr@chromium.org>
+
+        [chromium] Remove canRecoverFromContextLoss attribute, it's unused
+        https://bugs.webkit.org/show_bug.cgi?id=81158
+
+        Reviewed by Stephen White.
+
+        Deletes the canRecoverFromContextLoss attribute from WebCore::GraphicsContext3D::Attributes. This is still left in
+        WebGraphicsContext3D::Attributes, since chromium-side code still references it.
+
+        * src/GraphicsContext3DChromium.cpp:
+        (WebCore::GraphicsContext3D::create):
+
 2012-03-14  Stephen White  <senorblanco@chromium.org>
 
         [chromium] Fix accelerated Canvas2D with threaded compositing.
index 4bfa2e5..0d0c0c8 100644 (file)
@@ -1026,7 +1026,6 @@ PassRefPtr<GraphicsContext3D> GraphicsContext3D::create(GraphicsContext3D::Attri
     webAttributes.stencil = attrs.stencil;
     webAttributes.antialias = attrs.antialias;
     webAttributes.premultipliedAlpha = attrs.premultipliedAlpha;
-    webAttributes.canRecoverFromContextLoss = attrs.canRecoverFromContextLoss;
     webAttributes.noExtensions = attrs.noExtensions;
     webAttributes.shareResources = attrs.shareResources;
     webAttributes.preferDiscreteGPU = attrs.preferDiscreteGPU;