Bug 82731

Summary: [chromium] Flaky animation unit test CCLayerTreeHostTestSynchronizeAnimationStartTimes
Product: WebKit Reporter: vollick
Component: WebKit Misc.Assignee: vollick
Status: RESOLVED FIXED    
Severity: Normal CC: danakj, jamesr, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description vollick 2012-03-30 07:24:32 PDT
Synchronized start times may be compared before synchronization has actually happened. Need to move this comparison into notifyAnimationStarted.
Comment 1 vollick 2012-03-30 07:27:38 PDT
Created attachment 134809 [details]
Patch
Comment 2 James Robinson 2012-03-30 10:37:04 PDT
Comment on attachment 134809 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=134809&action=review

R=me, but you don't need this extra pointer.

> Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp:1069
> +        , m_layerTreeHostImpl(0)

you don't need this, there's already a public layerTreeHost() getter on your grand-father class (CCLayerTreeHostTest).
Comment 3 vollick 2012-03-30 10:51:41 PDT
(In reply to comment #2)
> (From update of attachment 134809 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=134809&action=review
> 
> R=me, but you don't need this extra pointer.
> 
> > Source/WebKit/chromium/tests/CCLayerTreeHostTest.cpp:1069
> > +        , m_layerTreeHostImpl(0)
> 
> you don't need this, there's already a public layerTreeHost() getter on your grand-father class (CCLayerTreeHostTest).

I wasn't sure if there was a way to get the CCLayerTreeHostImpl associated with the CCLayerTreeHost obtained from layerTreeHost(). My best thought was to grab a pointer to it from one of the test hooks. Is there a better way?
Comment 4 James Robinson 2012-03-30 10:55:50 PDT
Oh sorry, I misread (haven't woken up yet I suppose).  Your approach seems good.
Comment 5 WebKit Review Bot 2012-03-30 12:06:15 PDT
Comment on attachment 134809 [details]
Patch

Clearing flags on attachment: 134809

Committed r112708: <http://trac.webkit.org/changeset/112708>
Comment 6 WebKit Review Bot 2012-03-30 12:06:19 PDT
All reviewed patches have been landed.  Closing bug.