Changeset 77012 in webkit


Ignore:
Timestamp:
Jan 28, 2011 4:06:49 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-01-28 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

Add CoreAnimationRenderer class
https://bugs.webkit.org/show_bug.cgi?id=53343

  • Shared/mac/CoreAnimationRenderer.h: Added.
  • Shared/mac/CoreAnimationRenderer.mm: Added.

(WebKit::CoreAnimationRenderer::CoreAnimationRenderer):
Initialize the underlying CARenderer object and hook up a notification observer.

(WebKit::CoreAnimationRenderer::~CoreAnimationRenderer):
Assert that the client is null. It has been set to null by the call to invalidate().

(WebKit::CoreAnimationRenderer::setBounds):
Update the bounds on the CARenderer and the root layer.

(WebKit::CoreAnimationRenderer::render):
Ask the renderer to render and return the next frame time.

(WebKit::CoreAnimationRenderer::invalidate):
Remove the change observer and reset the client.

(WebKit::CoreAnimationRenderer::rendererDidChange):
Call the client member function.

  • WebKit2.xcodeproj/project.pbxproj: Add new files.
Location:
trunk/Source/WebKit2
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r77007 r77012  
     12011-01-28  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Add CoreAnimationRenderer class
     6        https://bugs.webkit.org/show_bug.cgi?id=53343
     7
     8        * Shared/mac/CoreAnimationRenderer.h: Added.
     9        * Shared/mac/CoreAnimationRenderer.mm: Added.
     10
     11        (WebKit::CoreAnimationRenderer::CoreAnimationRenderer):
     12        Initialize the underlying CARenderer object and hook up a notification observer.
     13
     14        (WebKit::CoreAnimationRenderer::~CoreAnimationRenderer):
     15        Assert that the client is null. It has been set to null by the call to invalidate().
     16
     17        (WebKit::CoreAnimationRenderer::setBounds):
     18        Update the bounds on the CARenderer and the root layer.
     19
     20        (WebKit::CoreAnimationRenderer::render):
     21        Ask the renderer to render and return the next frame time.
     22
     23        (WebKit::CoreAnimationRenderer::invalidate):
     24        Remove the change observer and reset the client.
     25
     26        (WebKit::CoreAnimationRenderer::rendererDidChange):
     27        Call the client member function.
     28
     29        * WebKit2.xcodeproj/project.pbxproj:
     30        Add new files.
     31
    1322011-01-28  Anders Carlsson  <andersca@apple.com>
    233
  • trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj

    r76974 r77012  
    177177                1A9636BC12F348490078A062 /* ShareableSurface.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A9636BA12F348490078A062 /* ShareableSurface.cpp */; };
    178178                1A9636BD12F348490078A062 /* ShareableSurface.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9636BB12F348490078A062 /* ShareableSurface.h */; };
     179                1A9639F712F38ECD0078A062 /* CoreAnimationRenderer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A9639F512F38ECD0078A062 /* CoreAnimationRenderer.h */; };
     180                1A9639F812F38ECD0078A062 /* CoreAnimationRenderer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1A9639F612F38ECD0078A062 /* CoreAnimationRenderer.mm */; };
    179181                1AA1CC5D100FA1A10078DEBC /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA1CC5C100FA1A10078DEBC /* QuartzCore.framework */; };
    180182                1AA1CD07100FA1BA0078DEBC /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA1CD06100FA1BA0078DEBC /* Carbon.framework */; };
     
    923925                1A9636BA12F348490078A062 /* ShareableSurface.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ShareableSurface.cpp; sourceTree = "<group>"; };
    924926                1A9636BB12F348490078A062 /* ShareableSurface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShareableSurface.h; sourceTree = "<group>"; };
     927                1A9639F512F38ECD0078A062 /* CoreAnimationRenderer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CoreAnimationRenderer.h; sourceTree = "<group>"; };
     928                1A9639F612F38ECD0078A062 /* CoreAnimationRenderer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CoreAnimationRenderer.mm; sourceTree = "<group>"; };
    925929                1AA1C79A100E7FC50078DEBC /* WebCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = WebCore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
    926930                1AA1C7DE100E846E0078DEBC /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = JavaScriptCore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
     
    23602364                        children = (
    23612365                                1A6F9FB611E1408500DB1371 /* CommandLineMac.cpp */,
     2366                                1A9639F512F38ECD0078A062 /* CoreAnimationRenderer.h */,
     2367                                1A9639F612F38ECD0078A062 /* CoreAnimationRenderer.mm */,
    23622368                                C02BFF1D1251502E009CCBEA /* NativeWebKeyboardEventMac.mm */,
    23632369                                C574A57F12E66681002DFE98 /* PasteboardTypes.h */,
     
    31093115                                BFA6179F12F0B99D0033E0CA /* WKViewPrivate.h in Headers */,
    31103116                                1A9636BD12F348490078A062 /* ShareableSurface.h in Headers */,
     3117                                1A9639F712F38ECD0078A062 /* CoreAnimationRenderer.h in Headers */,
    31113118                        );
    31123119                        runOnlyForDeploymentPostprocessing = 0;
     
    35773584                                6501BD1A12F1243400E9F248 /* WKBundleInspector.cpp in Sources */,
    35783585                                1A9636BC12F348490078A062 /* ShareableSurface.cpp in Sources */,
     3586                                1A9639F812F38ECD0078A062 /* CoreAnimationRenderer.mm in Sources */,
    35793587                        );
    35803588                        runOnlyForDeploymentPostprocessing = 0;
Note: See TracChangeset for help on using the changeset viewer.