[chromium] remove unused fields from LayerRendererCapabilities
authorpiman@chromium.org <piman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2012 22:27:51 +0000 (22:27 +0000)
committerpiman@chromium.org <piman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 Aug 2012 22:27:51 +0000 (22:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=92906

Reviewed by James Robinson.

No new tests (just removing dead code).

* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::initialize):
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
(LayerRendererCapabilities):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.h

index 53134b4..cce8d6e 100644 (file)
@@ -1,3 +1,18 @@
+2012-08-01  Antoine Labour  <piman@chromium.org>
+
+        [chromium] remove unused fields from LayerRendererCapabilities
+        https://bugs.webkit.org/show_bug.cgi?id=92906
+
+        Reviewed by James Robinson.
+
+        No new tests (just removing dead code).
+
+        * platform/graphics/chromium/LayerRendererChromium.cpp:
+        (WebCore::LayerRendererChromium::initialize):
+        * platform/graphics/chromium/cc/CCLayerTreeHost.h:
+        (WebCore::LayerRendererCapabilities::LayerRendererCapabilities):
+        (LayerRendererCapabilities):
+
 2012-08-01  James Robinson  <jamesr@chromium.org>
 
         [chromium] Move compositor HUD font atlas generation out of compositor core
index 3231435..8f91d2f 100644 (file)
@@ -204,8 +204,6 @@ bool LayerRendererChromium::initialize()
 
     m_capabilities.usingPartialSwap = CCSettings::partialSwapEnabled() && extensions.contains("GL_CHROMIUM_post_sub_buffer");
 
-    m_capabilities.usingMapSub = extensions.contains("GL_CHROMIUM_map_sub");
-
     // Use the swapBuffers callback only with the threaded proxy.
     if (CCProxy::hasImplThread())
         m_capabilities.usingSwapCompleteCallback = extensions.contains("GL_CHROMIUM_swapbuffers_complete_callback");
@@ -219,10 +217,6 @@ bool LayerRendererChromium::initialize()
         ASSERT(extensions.contains("GL_ARB_texture_rectangle"));
     }
 
-    m_capabilities.usingTextureUsageHint = extensions.contains("GL_ANGLE_texture_usage");
-
-    m_capabilities.usingTextureStorageExtension = extensions.contains("GL_EXT_texture_storage");
-
     m_capabilities.usingGpuMemoryManager = extensions.contains("GL_CHROMIUM_gpu_memory_manager");
     if (m_capabilities.usingGpuMemoryManager)
         m_context->setMemoryAllocationChangedCallbackCHROMIUM(this);
index 03a0629..284bba6 100644 (file)
@@ -125,12 +125,9 @@ struct LayerRendererCapabilities {
         : bestTextureFormat(0)
         , contextHasCachedFrontBuffer(false)
         , usingPartialSwap(false)
-        , usingMapSub(false)
         , usingAcceleratedPainting(false)
         , usingSetVisibility(false)
         , usingSwapCompleteCallback(false)
-        , usingTextureUsageHint(false)
-        , usingTextureStorageExtension(false)
         , usingGpuMemoryManager(false)
         , usingDiscardFramebuffer(false)
         , usingEglImage(false)
@@ -139,12 +136,9 @@ struct LayerRendererCapabilities {
     GC3Denum bestTextureFormat;
     bool contextHasCachedFrontBuffer;
     bool usingPartialSwap;
-    bool usingMapSub;
     bool usingAcceleratedPainting;
     bool usingSetVisibility;
     bool usingSwapCompleteCallback;
-    bool usingTextureUsageHint;
-    bool usingTextureStorageExtension;
     bool usingGpuMemoryManager;
     bool usingDiscardFramebuffer;
     bool usingEglImage;