Changeset 135929 in webkit


Ignore:
Timestamp:
Nov 27, 2012, 3:17:02 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Add WebLayerTreeViewClient API to request font atlas
https://bugs.webkit.org/show_bug.cgi?id=102958

Patch by Eberhard Graether <egraether@google.com> on 2012-11-27
Reviewed by James Robinson.

This change makes the font atlas creation accessible to the WebLayerTreeView.

Source/Platform:

  • chromium/public/WebLayerTreeViewClient.h:

(WebKit):
(WebLayerTreeViewClient):
(WebKit::WebLayerTreeViewClient::createFontAtlas):

Source/WebKit/chromium:

  • src/WebViewImpl.cpp:

(WebKit::WebViewImpl::createFontAtlas):
(WebKit):

  • src/WebViewImpl.h:

(WebViewImpl):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r135881 r135929  
     12012-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
    1152012-11-27  Eberhard Graether  <egraether@google.com>
    216
  • trunk/Source/Platform/chromium/public/WebLayerTreeViewClient.h

    r135801 r135929  
    2727#define WebLayerTreeViewClient_h
    2828
     29class SkBitmap;
     30
    2931namespace WebKit {
    3032class WebCompositorOutputSurface;
    3133class WebInputHandler;
    3234class WebThread;
     35struct WebRect;
    3336struct WebSize;
    3437
     
    9194    virtual void scheduleComposite() = 0;
    9295
     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
    93101protected:
    94102    virtual ~WebLayerTreeViewClient() { }
  • trunk/Source/WebKit/chromium/ChangeLog

    r135927 r135929  
     12012-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
    1162012-11-27  Joshua Bell  <jsbell@chromium.org>
    217
  • trunk/Source/WebKit/chromium/src/WebViewImpl.cpp

    r135881 r135929  
    42134213}
    42144214
     4215void 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
    42154221void WebViewImpl::updateLayerTreeViewport()
    42164222{
  • trunk/Source/WebKit/chromium/src/WebViewImpl.h

    r135881 r135929  
    326326    virtual void didCompleteSwapBuffers();
    327327    virtual void scheduleComposite();
     328    virtual void createFontAtlas(SkBitmap&, WebRect[128], int&);
    328329
    329330    // WebViewImpl
Note: See TracChangeset for help on using the changeset viewer.