Changeset 126933 in webkit
- Timestamp:
- Aug 28, 2012, 3:14:40 PM (14 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
public/WebWidget.h (modified) (3 diffs)
-
src/WebPagePopupImpl.cpp (modified) (1 diff)
-
src/WebPagePopupImpl.h (modified) (1 diff)
-
src/WebPopupMenuImpl.cpp (modified) (1 diff)
-
src/WebPopupMenuImpl.h (modified) (1 diff)
-
src/WebViewImpl.cpp (modified) (3 diffs)
-
src/WebViewImpl.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r126932 r126933 1 2012-08-28 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r126344. 4 http://trac.webkit.org/changeset/126344 5 https://bugs.webkit.org/show_bug.cgi?id=95253 6 7 This change is no longer needed (Requested by abarth on 8 #webkit). 9 10 * public/WebWidget.h: 11 (WebKit::WebWidget::paint): 12 * src/WebPagePopupImpl.cpp: 13 (WebKit::WebPagePopupImpl::paint): 14 * src/WebPagePopupImpl.h: 15 (WebPagePopupImpl): 16 * src/WebPopupMenuImpl.cpp: 17 (WebKit::WebPopupMenuImpl::paint): 18 * src/WebPopupMenuImpl.h: 19 * src/WebViewImpl.cpp: 20 (WebKit::WebViewImpl::paint): 21 * src/WebViewImpl.h: 22 (WebViewImpl): 23 1 24 2012-08-28 Dominic Mazzoni <dmazzoni@google.com> 2 25 -
trunk/Source/WebKit/chromium/public/WebWidget.h
r126344 r126933 42 42 #define WEBKIT_HAS_NEW_FULLSCREEN_API 1 43 43 #define WEBWIDGET_HAS_SETCOMPOSITORSURFACEREADY 1 44 #define WEBWIDGET_HAS_PAINT_OPTIONS 145 44 46 45 namespace WebKit { … … 92 91 virtual void layout() { } 93 92 94 enum PaintOptions {95 // Attempt to fulfill the painting request by reading back from the96 // compositor, assuming we're using a compositor to render.97 ReadbackFromCompositorIfAvailable,98 99 // Force the widget to rerender onto the canvas using software. This100 // mode ignores 3d transforms and ignores GPU-resident content, such101 // as video, canvas, and WebGL.102 //103 // Note: This option exists on OS(ANDROID) and will hopefully be104 // removed once the link disambiguation feature renders using105 // the compositor.106 ForceSoftwareRenderingAndIgnoreGPUResidentContent,107 };108 109 93 // Called to paint the rectangular region within the WebWidget 110 94 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call … … 114 98 // processed, it should be assumed that another call to layout is 115 99 // warranted before painting again). 116 virtual void paint(WebCanvas*, const WebRect& viewPort , PaintOptions = ReadbackFromCompositorIfAvailable) { }100 virtual void paint(WebCanvas*, const WebRect& viewPort) { } 117 101 118 102 // In non-threaded compositing mode, triggers compositing of the current -
trunk/Source/WebKit/chromium/src/WebPagePopupImpl.cpp
r126344 r126933 226 226 } 227 227 228 void WebPagePopupImpl::paint(WebCanvas* canvas, const WebRect& rect , PaintOptions)228 void WebPagePopupImpl::paint(WebCanvas* canvas, const WebRect& rect) 229 229 { 230 230 PageWidgetDelegate::paint(m_page.get(), 0, canvas, rect, PageWidgetDelegate::Opaque); -
trunk/Source/WebKit/chromium/src/WebPagePopupImpl.h
r126344 r126933 73 73 virtual void composite(bool) OVERRIDE; 74 74 virtual void layout() OVERRIDE; 75 virtual void paint(WebCanvas*, const WebRect& , PaintOptions = ReadbackFromCompositorIfAvailable) OVERRIDE;75 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; 76 76 virtual void resize(const WebSize&) OVERRIDE; 77 77 virtual void close() OVERRIDE; -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.cpp
r126344 r126933 194 194 } 195 195 196 void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect , PaintOptions)196 void WebPopupMenuImpl::paint(WebCanvas* canvas, const WebRect& rect) 197 197 { 198 198 if (!m_widget) -
trunk/Source/WebKit/chromium/src/WebPopupMenuImpl.h
r126344 r126933 74 74 virtual void animate(double frameBeginTime) OVERRIDE; 75 75 virtual void layout() OVERRIDE; 76 virtual void paint(WebCanvas*, const WebRect& , PaintOptions = ReadbackFromCompositorIfAvailable) OVERRIDE;76 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; 77 77 virtual void themeChanged() OVERRIDE; 78 78 virtual void setCompositorSurfaceReady() OVERRIDE; -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r126841 r126933 1739 1739 #endif 1740 1740 1741 void WebViewImpl::paint(WebCanvas* canvas, const WebRect& rect, PaintOptions option) 1742 { 1743 #if !OS(ANDROID) 1744 // ReadbackFromCompositorIfAvailable is the only option available on non-Android. 1745 // Ideally, Android would always use ReadbackFromCompositorIfAvailable as well. 1746 ASSERT(option == ReadbackFromCompositorIfAvailable); 1747 #endif 1748 1749 if (option == ReadbackFromCompositorIfAvailable && isAcceleratedCompositingActive()) { 1741 void WebViewImpl::paint(WebCanvas* canvas, const WebRect& rect) 1742 { 1743 if (isAcceleratedCompositingActive()) { 1750 1744 #if USE(ACCELERATED_COMPOSITING) 1751 1745 // If a canvas was passed in, we use it to grab a copy of the … … 1759 1753 #endif 1760 1754 } else { 1761 FrameView* view = page()->mainFrame()->view();1762 PaintBehavior oldPaintBehavior = view->paintBehavior();1763 if (isAcceleratedCompositingActive()) {1764 ASSERT(option == ForceSoftwareRenderingAndIgnoreGPUResidentContent);1765 view->setPaintBehavior(oldPaintBehavior | PaintBehaviorFlattenCompositingLayers);1766 }1767 1768 1755 double paintStart = currentTime(); 1769 1756 PageWidgetDelegate::paint(m_page.get(), pageOverlays(), canvas, rect, isTransparent() ? PageWidgetDelegate::Translucent : PageWidgetDelegate::Opaque); … … 1772 1759 WebKit::Platform::current()->histogramCustomCounts("Renderer4.SoftwarePaintDurationMS", (paintEnd - paintStart) * 1000, 0, 120, 30); 1773 1760 WebKit::Platform::current()->histogramCustomCounts("Renderer4.SoftwarePaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30); 1774 1775 if (isAcceleratedCompositingActive()) {1776 ASSERT(option == ForceSoftwareRenderingAndIgnoreGPUResidentContent);1777 view->setPaintBehavior(oldPaintBehavior);1778 }1779 1761 } 1780 1762 } -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r126841 r126933 145 145 virtual void animate(double); 146 146 virtual void layout(); // Also implements WebLayerTreeViewClient::layout() 147 virtual void paint(WebCanvas*, const WebRect& , PaintOptions = ReadbackFromCompositorIfAvailable);147 virtual void paint(WebCanvas*, const WebRect&); 148 148 virtual void themeChanged(); 149 149 virtual void composite(bool finish);
Note:
See TracChangeset
for help on using the changeset viewer.