Changeset 135929 in webkit
- Timestamp:
- Nov 27, 2012, 3:17:02 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/Platform/ChangeLog
r135881 r135929 1 2012-11-27 Eberhard Graether <egraether@google.com> 2 3 [chromium] Add WebLayerTreeViewClient API to request font atlas 4 https://bugs.webkit.org/show_bug.cgi?id=102958 5 6 Reviewed by James Robinson. 7 8 This change makes the font atlas creation accessible to the WebLayerTreeView. 9 10 * chromium/public/WebLayerTreeViewClient.h: 11 (WebKit): 12 (WebLayerTreeViewClient): 13 (WebKit::WebLayerTreeViewClient::createFontAtlas): 14 1 15 2012-11-27 Eberhard Graether <egraether@google.com> 2 16 -
trunk/Source/Platform/chromium/public/WebLayerTreeViewClient.h
r135801 r135929 27 27 #define WebLayerTreeViewClient_h 28 28 29 class SkBitmap; 30 29 31 namespace WebKit { 30 32 class WebCompositorOutputSurface; 31 33 class WebInputHandler; 32 34 class WebThread; 35 struct WebRect; 33 36 struct WebSize; 34 37 … … 91 94 virtual void scheduleComposite() = 0; 92 95 96 // Creates a font atlas to use for debug visualizations. The atlas is a bitmap 97 // containing glyph data, a table of ASCII character values to a subrectangle 98 // of the atlas representing the corresponding glyph, and the glyph height. 99 virtual void createFontAtlas(SkBitmap&, WebRect asciiToRectTable[128], int& fontHeight) { } 100 93 101 protected: 94 102 virtual ~WebLayerTreeViewClient() { } -
trunk/Source/WebKit/chromium/ChangeLog
r135927 r135929 1 2012-11-27 Eberhard Graether <egraether@google.com> 2 3 [chromium] Add WebLayerTreeViewClient API to request font atlas 4 https://bugs.webkit.org/show_bug.cgi?id=102958 5 6 Reviewed by James Robinson. 7 8 This change makes the font atlas creation accessible to the WebLayerTreeView. 9 10 * src/WebViewImpl.cpp: 11 (WebKit::WebViewImpl::createFontAtlas): 12 (WebKit): 13 * src/WebViewImpl.h: 14 (WebViewImpl): 15 1 16 2012-11-27 Joshua Bell <jsbell@chromium.org> 2 17 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r135881 r135929 4213 4213 } 4214 4214 4215 void WebViewImpl::createFontAtlas(SkBitmap& bitmap, WebRect asciiToRectTable[128], int& fontHeight) 4216 { 4217 TRACE_EVENT0("webkit", "WebViewImpl::loadFontAtlas"); 4218 bitmap = WebCore::CompositorHUDFontAtlas::generateFontAtlas(asciiToRectTable, fontHeight); 4219 } 4220 4215 4221 void WebViewImpl::updateLayerTreeViewport() 4216 4222 { -
trunk/Source/WebKit/chromium/src/WebViewImpl.h
r135881 r135929 326 326 virtual void didCompleteSwapBuffers(); 327 327 virtual void scheduleComposite(); 328 virtual void createFontAtlas(SkBitmap&, WebRect[128], int&); 328 329 329 330 // WebViewImpl
Note:
See TracChangeset
for help on using the changeset viewer.