Changeset 172244 in webkit


Ignore:
Timestamp:
Aug 7, 2014, 1:41:23 PM (11 years ago)
Author:
jeremyj-wk@apple.com
Message:

Disable implicit animations on video layer.
https://bugs.webkit.org/show_bug.cgi?id=135679

Reviewed by Eric Carlson.

Disable implicit animations on AVPlayerLayer except when setting fullscreen frame.
This prevents unwanted animations.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:

(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerLayer): disable implicit animations
(WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenFrame): allow implicit animations while changing fullscreen frame.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r172235 r172244  
     12014-08-06  Jeremy Jones  <jeremyj@apple.com>
     2
     3        Disable implicit animations on video layer.
     4        https://bugs.webkit.org/show_bug.cgi?id=135679
     5
     6        Reviewed by Eric Carlson.
     7
     8        Disable implicit animations on AVPlayerLayer except when setting fullscreen frame.
     9        This prevents unwanted animations.
     10
     11        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     12        (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerLayer): disable implicit animations
     13        (WebCore::MediaPlayerPrivateAVFoundationObjC::setVideoFullscreenFrame): allow implicit animations while changing fullscreen frame.
     14
    1152014-08-07  Gordon Sheridan  <gordon_sheridan@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r171895 r172244  
    5555#import "VideoTrackPrivateAVFObjC.h"
    5656#import "WebCoreAVFResourceLoader.h"
     57#import "WebCoreCALayerExtras.h"
    5758#import "WebCoreSystemInterface.h"
    5859#import <objc/runtime.h>
     
    596597
    597598#if PLATFORM(IOS)
     599    [m_videoLayer web_disableAllActions];
    598600    m_videoInlineLayer = adoptNS([[WebVideoContainerLayer alloc] init]);
    599601    [m_videoInlineLayer setFrame:CGRectMake(0, 0, defaultSize.width(), defaultSize.height())];
     
    10041006
    10051007    if (m_videoLayer) {
     1008        [m_videoLayer setStyle:nil]; // This enables actions, i.e. implicit animations.
    10061009        [CATransaction begin];
    1007         [CATransaction setDisableActions:YES];
    10081010        [m_videoLayer setFrame:CGRectMake(0, 0, frame.width(), frame.height())];
    10091011        [CATransaction commit];
     1012        [m_videoLayer web_disableAllActions];
    10101013    }
    10111014    syncTextTrackBounds();
Note: See TracChangeset for help on using the changeset viewer.