Changeset 100217 in webkit
- Timestamp:
- Nov 14, 2011, 4:51:31 PM (15 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
public/WebLayerTreeView.h (modified) (2 diffs)
-
src/WebLayerTreeView.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r100210 r100217 1 2011-11-14 Ian Vollick <vollick@chromium.org> 2 3 Expose compositeAndReadback in WebLayerTreeView 4 https://bugs.webkit.org/show_bug.cgi?id=72188 5 6 Reviewed by Darin Fisher. 7 8 * public/WebLayerTreeView.h: 9 * src/WebLayerTreeView.cpp: 10 (WebKit::WebLayerTreeView::compositeAndReadback): 11 1 12 2011-11-14 Raymond Toy <rtoy@google.com> 2 13 -
trunk/Source/WebKit/chromium/public/WebLayerTreeView.h
r98445 r100217 38 38 class WebLayer; 39 39 class WebLayerTreeViewClient; 40 struct WebRect; 40 41 struct WebSize; 41 42 … … 82 83 WEBKIT_EXPORT WebSize viewportSize() const; 83 84 85 // Composites and attempts to read back the result into the provided 86 // buffer. If it wasn't possible, e.g. due to context lost, will return 87 // false. Pixel format is 32bit (RGBA), and the provided buffer must be 88 // large enough contain viewportSize().width() * viewportSize().height() 89 // pixels. The WebLayerTreeView does not assume ownership of the buffer. 90 // The buffer is not modified if the false is returned. 91 WEBKIT_EXPORT bool compositeAndReadback(void *pixels, const WebRect&); 92 84 93 #if WEBKIT_IMPLEMENTATION 85 94 WebLayerTreeView(const WTF::PassRefPtr<WebCore::CCLayerTreeHost>&); -
trunk/Source/WebKit/chromium/src/WebLayerTreeView.cpp
r99033 r100217 28 28 29 29 #include "WebLayerTreeViewImpl.h" 30 #include "WebRect.h" 30 31 #include "WebSize.h" 31 32 #include "cc/CCLayerTreeHost.h" … … 85 86 } 86 87 88 bool WebLayerTreeView::compositeAndReadback(void *pixels, const WebRect& rect) 89 { 90 return m_private->compositeAndReadback(pixels, rect); 91 } 92 87 93 WebLayerTreeView::WebLayerTreeView(const PassRefPtr<CCLayerTreeHost>& node) 88 94 : m_private(node)
Note:
See TracChangeset
for help on using the changeset viewer.