Title: [136926] trunk/Source
Revision
136926
Author
[email protected]
Date
2012-12-06 23:24:23 -0800 (Thu, 06 Dec 2012)

Log Message

[chromium] Introduce setting for low latency rendering
https://bugs.webkit.org/show_bug.cgi?id=104011

Patch by Sami Kyostila <[email protected]> on 2012-12-06
Reviewed by James Robinson.

This low latency rendering setting will be used to enable alternate
render signaling and scheduling to reduce latency.

Source/Platform:

* chromium/public/WebLayerTreeView.h:
(WebKit::WebLayerTreeView::Settings::Settings):
(Settings):

Source/WebKit/chromium:

* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::WebSettingsImpl):
(WebKit::WebSettingsImpl::setLowLatencyRenderingEnabled):
(WebKit):
* src/WebSettingsImpl.h:
(WebSettingsImpl):
(WebKit::WebSettingsImpl::lowLatencyRenderingEnabled):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::setIsAcceleratedCompositingActive):

Modified Paths

Diff

Modified: trunk/Source/Platform/ChangeLog (136925 => 136926)


--- trunk/Source/Platform/ChangeLog	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/Platform/ChangeLog	2012-12-07 07:24:23 UTC (rev 136926)
@@ -1,3 +1,17 @@
+2012-12-06  Sami Kyostila  <[email protected]>
+
+        [chromium] Introduce setting for low latency rendering
+        https://bugs.webkit.org/show_bug.cgi?id=104011
+
+        Reviewed by James Robinson.
+
+        This low latency rendering setting will be used to enable alternate
+        render signaling and scheduling to reduce latency.
+
+        * chromium/public/WebLayerTreeView.h:
+        (WebKit::WebLayerTreeView::Settings::Settings):
+        (Settings):
+
 2012-12-06  James Robinson  <[email protected]>
 
         [chromium] Rename non-standard discard/ensureFramebufferCHROMIUM extensions so we can use real GL_EXT_discard_framebuffer

Modified: trunk/Source/Platform/chromium/public/WebLayerTreeView.h (136925 => 136926)


--- trunk/Source/Platform/chromium/public/WebLayerTreeView.h	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/Platform/chromium/public/WebLayerTreeView.h	2012-12-07 07:24:23 UTC (rev 136926)
@@ -51,6 +51,7 @@
             , showPlatformLayerTree(false)
             , showPaintRects(false)
             , renderVSyncEnabled(true)
+            , lowLatencyRenderingEnabled(false)
             , perTilePaintingEnabled(false)
             , partialSwapEnabled(false)
             , acceleratedAnimationEnabled(true)
@@ -67,6 +68,7 @@
         bool showPlatformLayerTree;
         bool showPaintRects;
         bool renderVSyncEnabled;
+        bool lowLatencyRenderingEnabled;
         bool perTilePaintingEnabled;
         bool partialSwapEnabled;
         bool acceleratedAnimationEnabled;

Modified: trunk/Source/WebKit/chromium/ChangeLog (136925 => 136926)


--- trunk/Source/WebKit/chromium/ChangeLog	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/WebKit/chromium/ChangeLog	2012-12-07 07:24:23 UTC (rev 136926)
@@ -1,3 +1,24 @@
+2012-12-06  Sami Kyostila  <[email protected]>
+
+        [chromium] Introduce setting for low latency rendering
+        https://bugs.webkit.org/show_bug.cgi?id=104011
+
+        Reviewed by James Robinson.
+
+        This low latency rendering setting will be used to enable alternate
+        render signaling and scheduling to reduce latency.
+
+        * public/WebSettings.h:
+        * src/WebSettingsImpl.cpp:
+        (WebKit::WebSettingsImpl::WebSettingsImpl):
+        (WebKit::WebSettingsImpl::setLowLatencyRenderingEnabled):
+        (WebKit):
+        * src/WebSettingsImpl.h:
+        (WebSettingsImpl):
+        (WebKit::WebSettingsImpl::lowLatencyRenderingEnabled):
+        * src/WebViewImpl.cpp:
+        (WebKit::WebViewImpl::setIsAcceleratedCompositingActive):
+
 2012-12-06  Kent Tamura  <[email protected]>
 
         [Chromium] Rename some init* functions to initialize*

Modified: trunk/Source/WebKit/chromium/public/WebSettings.h (136925 => 136926)


--- trunk/Source/WebKit/chromium/public/WebSettings.h	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/WebKit/chromium/public/WebSettings.h	2012-12-07 07:24:23 UTC (rev 136926)
@@ -123,6 +123,7 @@
     virtual void setLayoutFallbackWidth(int) = 0;
     virtual void setLoadsImagesAutomatically(bool) = 0;
     virtual void setLocalStorageEnabled(bool) = 0;
+    virtual void setLowLatencyRenderingEnabled(bool) = 0;
     virtual void setMaxUntiledLayerSize(WebSize) = 0;
     virtual void setMediaPlaybackRequiresUserGesture(bool) = 0;
     virtual void setMemoryInfoEnabled(bool) = 0;

Modified: trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp (136925 => 136926)


--- trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/WebKit/chromium/src/WebSettingsImpl.cpp	2012-12-07 07:24:23 UTC (rev 136926)
@@ -52,6 +52,7 @@
     , m_showPlatformLayerTree(false)
     , m_showPaintRects(false)
     , m_renderVSyncEnabled(true)
+    , m_lowLatencyRenderingEnabled(false)
     , m_viewportEnabled(false)
     , m_applyDeviceScaleFactorInCompositor(false)
     , m_gestureTapHighlightEnabled(true)
@@ -401,6 +402,11 @@
     m_renderVSyncEnabled = enabled;
 }
 
+void WebSettingsImpl::setLowLatencyRenderingEnabled(bool lowLatencyRenderingEnabled)
+{
+    m_lowLatencyRenderingEnabled = lowLatencyRenderingEnabled;
+}
+
 void WebSettingsImpl::setWebGLErrorsToConsoleEnabled(bool enabled)
 {
     m_settings->setWebGLErrorsToConsoleEnabled(enabled);

Modified: trunk/Source/WebKit/chromium/src/WebSettingsImpl.h (136925 => 136926)


--- trunk/Source/WebKit/chromium/src/WebSettingsImpl.h	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/WebKit/chromium/src/WebSettingsImpl.h	2012-12-07 07:24:23 UTC (rev 136926)
@@ -115,6 +115,7 @@
     virtual void setLayoutFallbackWidth(int);
     virtual void setLoadsImagesAutomatically(bool);
     virtual void setLocalStorageEnabled(bool);
+    virtual void setLowLatencyRenderingEnabled(bool);
     virtual void setMaxUntiledLayerSize(WebSize);
     virtual void setMediaPlaybackRequiresUserGesture(bool);
     virtual void setMemoryInfoEnabled(bool);
@@ -170,6 +171,7 @@
     bool showPlatformLayerTree() const { return m_showPlatformLayerTree; }
     bool showPaintRects() const { return m_showPaintRects; }
     bool renderVSyncEnabled() const { return m_renderVSyncEnabled; }
+    bool lowLatencyRenderingEnabled() const { return m_lowLatencyRenderingEnabled; }
     bool applyDeviceScaleFactorInCompositor() const { return m_applyDeviceScaleFactorInCompositor; }
     bool applyPageScaleFactorInCompositor() const;
     bool autoZoomFocusedNodeToLegibleScale() const { return m_autoZoomFocusedNodeToLegibleScale; }
@@ -186,6 +188,7 @@
     bool m_showPlatformLayerTree;
     bool m_showPaintRects;
     bool m_renderVSyncEnabled;
+    bool m_lowLatencyRenderingEnabled;
     bool m_viewportEnabled;
     bool m_applyDeviceScaleFactorInCompositor;
     bool m_gestureTapHighlightEnabled;

Modified: trunk/Source/WebKit/chromium/src/WebViewImpl.cpp (136925 => 136926)


--- trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-12-07 07:21:14 UTC (rev 136925)
+++ trunk/Source/WebKit/chromium/src/WebViewImpl.cpp	2012-12-07 07:24:23 UTC (rev 136926)
@@ -4003,6 +4003,7 @@
 
         WebLayerTreeView::Settings layerTreeViewSettings;
         layerTreeViewSettings.acceleratePainting = page()->settings()->acceleratedDrawingEnabled();
+        layerTreeViewSettings.lowLatencyRenderingEnabled = settingsImpl()->lowLatencyRenderingEnabled();
         layerTreeViewSettings.showDebugBorders = page()->settings()->showDebugBorders();
         layerTreeViewSettings.showFPSCounter = settingsImpl()->showFPSCounter();
         layerTreeViewSettings.showPlatformLayerTree = settingsImpl()->showPlatformLayerTree();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to