Changeset 82608 in webkit


Ignore:
Timestamp:
Mar 31, 2011 1:05:05 PM (13 years ago)
Author:
Adam Roben
Message:

Update WKCACFViewLayerTreeHost for changes to WKCACFView API

This should not result in any change in behavior.

Fixes <http://webkit.org/b/57560> WKCACFViewLayerTreeHost needs to tell WKCACFView where to
render

Reviewed by Darin Adler.

  • platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp: Updated API declarations.

(WebCore::WKCACFViewLayerTreeHost::WKCACFViewLayerTreeHost): Tell WKCACFView it should
render into the window we give it.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r82605 r82608  
     12011-03-31  Adam Roben  <aroben@apple.com>
     2
     3        Update WKCACFViewLayerTreeHost for changes to WKCACFView API
     4
     5        This should not result in any change in behavior.
     6
     7        Fixes <http://webkit.org/b/57560> WKCACFViewLayerTreeHost needs to tell WKCACFView where to
     8        render
     9
     10        Reviewed by Darin Adler.
     11
     12        * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp: Updated API declarations.
     13        (WebCore::WKCACFViewLayerTreeHost::WKCACFViewLayerTreeHost): Tell WKCACFView it should
     14        render into the window we give it.
     15
    1162011-03-31  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
    217
  • trunk/Source/WebCore/platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp

    r76858 r82608  
    4343#endif
    4444
    45 SOFT_LINK(WebKitQuartzCoreAdditions, WKCACFViewCreate, WKCACFViewRef, __cdecl, (), ())
     45enum WKCACFViewDrawingDestination {
     46    kWKCACFViewDrawingDestinationWindow = 0,
     47    kWKCACFViewDrawingDestinationImage,
     48};
     49typedef enum WKCACFViewDrawingDestination WKCACFViewDrawingDestination;
     50
     51SOFT_LINK(WebKitQuartzCoreAdditions, WKCACFViewCreate, WKCACFViewRef, __cdecl, (WKCACFViewDrawingDestination destination), (destination))
    4652SOFT_LINK(WebKitQuartzCoreAdditions, WKCACFViewSetLayer, void, __cdecl, (WKCACFViewRef view, CACFLayerRef layer), (view, layer))
    4753SOFT_LINK(WebKitQuartzCoreAdditions, WKCACFViewUpdate, void, __cdecl, (WKCACFViewRef view, HWND window, const CGRect* bounds), (view, window, bounds))
     
    6470
    6571WKCACFViewLayerTreeHost::WKCACFViewLayerTreeHost()
    66     : m_view(AdoptCF, WKCACFViewCreate())
     72    : m_view(AdoptCF, WKCACFViewCreate(kWKCACFViewDrawingDestinationWindow))
    6773    , m_viewNeedsUpdate(true)
    6874{
Note: See TracChangeset for help on using the changeset viewer.