Home
last modified time | relevance | path

Searched refs:SkMSec (Results 1 – 25 of 56) sorted by relevance

123

/external/skia/src/animator/
DSkAnimateActive.h26 void create(SkADrawable* scope, SkMSec time);
30 SkMSec getTime(SkMSec inTime, int animatorIndex);
51 SkMSec getRelativeTime(SkMSec time);
59 SkMSec fBegin;
60 SkMSec fStartTime;
61 SkMSec fDuration;
62 SkMSec fSave;
63 SkMSec fTicks;
72 SkMSec fMaxTime; // greatest of all animation durations; only used by immediate mode
DSkAnimateMaker.h53 void delayEnable(SkApply* apply, SkMSec time);
73 SkMSec getAppTime() const; // call caller to get current time
78 SkMSec getInTime() { return fDisplayList.getTime(); } in getInTime()
87 void notifyInvalTime(SkMSec time);
88 void postOnEnd(SkAnimateBase* animate, SkMSec end);
92 void setEnableTime(SkMSec appTime, SkMSec expectedTime);
107 SkMSec fAdjustedStart;
109 SkMSec fEnableTime;
114 SkMSec fMinimumInterval;
124 SkMSec fDebugTimeBase;
DSkAnimateMaker.cpp25 virtual SkMSec getMSecs() const { in getMSecs()
32 fHostEventSinkID(0), fMinimumInterval((SkMSec) -1), fPaint(paint), fParentMaker(nullptr), in SkAnimateMaker()
38 fDebugTimeBase = (SkMSec) -1; in SkAnimateMaker()
50 SkMSec SkAnimateMaker::adjustDelay(SkMSec expectedBase, SkMSec delay) {
51 SkMSec appTime = (*fTimeCallBack)();
124 void SkAnimateMaker::delayEnable(SkApply* apply, SkMSec time) { in delayEnable()
206 SkMSec SkAnimateMaker::getAppTime() const { in getAppTime()
250 void SkAnimateMaker::notifyInvalTime(SkMSec time) { in notifyInvalTime()
255 void SkAnimateMaker::postOnEnd(SkAnimateBase* animate, SkMSec end) { in postOnEnd()
310 void SkAnimateMaker::setEnableTime(SkMSec appTime, SkMSec expectedTime) { in setEnableTime()
[all …]
DSkDisplayApply.h40 SkDisplayTypes , SkMSec time);
62 bool interpolate(SkAnimateMaker& , SkMSec time);
78 SkMSec begin;
81 SkMSec interval;
93 SkMSec fLastTime; // used only to return script property time
DSkAnimateBase.h37 SkMSec getStart() const { return fStart; } in getStart()
50 SkMSec begin;
52 SkMSec dur;
64 SkMSec fStart; // corrected time when this apply was enabled
DSkAnimateActive.cpp143 SkMSec duration = animate->dur; in calcDurations()
162 SkMSec maxTime = state.fBegin + duration; in calcDurations()
167 void SkActive::create(SkADrawable* drawable, SkMSec time) { in create()
192 SkMSec time = 0; in immediate()
195 SkMSec final = fMaxTime; in immediate()
248 SkMSec SkActive::getTime(SkMSec inTime, int animatorIndex) { in getTime()
320 existing->fState[index].fDuration = (SkMSec) SkScalarMulDiv(fState[index].fDuration, in pickUp()
376 SkMSec duration = fState[index].fDuration; in setInterpolator()
417 SkMSec time = fMaker.getAppTime(); in start()
429 SkMSec future = fAnimators[index]->fStart + state.fStartTime; in start()
[all …]
DSkDisplayList.h29 bool draw(SkAnimateMaker& , SkMSec time);
39 SkMSec getTime() { return fInTime; } in getTime()
64 SkMSec fInTime;
DSkOperandInterpolator.h35 …bool setKeyFrame(int index, SkMSec time, const SkOperand values[], SkScalar blend = SK_Scalar1);
36 Result timeToValues(SkMSec time, SkOperand values[]) const;
DSkOperand.h28 SkMSec fMSec;
41 SkMSec getMSec() { SkASSERT(fType == SkType_MSec); return fOperand.fMSec; } in getMSec()
DSkDisplayApply.cpp58 SkApply::SkApply() : begin(0), dontDraw(false), interval((SkMSec) -1), mode((Mode) -1), /*pickup(fa… in SkApply()
108 SkDisplayTypes valuesType, SkMSec time) in applyValues()
219 if (interval != (SkMSec) -1) in dump()
306 SkMSec time = maker.getAppTime(); in enable()
540 SkMSec lastTime = (SkMSec) -1;
543 bool SkApply::interpolate(SkAnimateMaker& maker, SkMSec rawTime) { in interpolate()
548 SkMSec time = maker.getAppTime(); in interpolate()
549 if (lastTime == (SkMSec) -1) in interpolate()
585 SkMSec time = fActive->getTime(rawTime, inner); in interpolate()
595 SkMSec innerTime = fLastTime = state.getRelativeTime(time); in interpolate()
DSkOperandIterpolator.cpp37 bool SkOperandInterpolator::setKeyFrame(int index, SkMSec time, const SkOperand values[], SkScalar … in setKeyFrame()
42 bool success = ~index == SkTSearch<SkMSec>(&fTimes->fTime, index, time, sizeof(SkTimeCode)); in setKeyFrame()
57 SkInterpolatorBase::Result SkOperandInterpolator::timeToValues(SkMSec time, SkOperand values[]) con… in timeToValues()
/external/skia/include/utils/
DSkInterpolator.h38 bool getDuration(SkMSec* startTime, SkMSec* endTime) const;
62 Result timeToT(SkMSec time, SkScalar* T, int* index, bool* exact) const;
70 static SkScalar ComputeRelativeT(SkMSec time, SkMSec prevTime,
71 SkMSec nextTime, const SkScalar blend[4] = NULL);
77 SkMSec fTime;
104 bool setKeyFrame(int index, SkMSec time, const SkScalar values[],
114 Result timeToValues(SkMSec time, SkScalar values[] = NULL) const;
/external/skia/src/utils/
DSkInterpolator.cpp47 bool SkInterpolatorBase::getDuration(SkMSec* startTime, SkMSec* endTime) const { in getDuration()
61 SkScalar SkInterpolatorBase::ComputeRelativeT(SkMSec time, SkMSec prevTime, in ComputeRelativeT()
62 SkMSec nextTime, const SkScalar blend[4]) { in ComputeRelativeT()
70 SkInterpolatorBase::Result SkInterpolatorBase::timeToT(SkMSec time, SkScalar* T, in timeToT()
75 SkMSec startTime = 0, endTime = 0; // initialize to avoid warning in timeToT()
77 SkMSec totalTime = endTime - startTime; in timeToT()
78 SkMSec offsetTime = time - startTime; in timeToT()
83 (SkMSec) SkScalarFloorToInt(fraction * totalTime); in timeToT()
95 int index = SkTSearch<SkMSec>(&fTimes[0].fTime, fFrameCount, time, in timeToT()
117 SkMSec nextT = nextTime[0].fTime; in timeToT()
[all …]
/external/skia/include/core/
DSkTime.h37 static SkMSec GetMSecs() { return (SkMSec)(GetNSecs() * 1e-6); } in GetMSecs()
49 SkAutoTime(const char* label = NULL, SkMSec minToDump = 0) : fLabel(label) in fLabel()
56 SkMSec dur = SkTime::GetMSecs() - fNow; in ~SkAutoTime()
63 SkMSec fNow;
64 SkMSec fMinToDump;
/external/skia/include/images/
DSkMovie.h39 SkMSec duration();
49 bool setTime(SkMSec);
56 SkMSec fDuration;
63 virtual bool onSetTime(SkMSec) = 0;
71 SkMSec fCurrTime;
/external/skia/src/images/
DSkMovie.cpp14 #define UNINITIALIZED_MSEC ((SkMSec)-1)
29 SkMSec SkMovie::duration() in duration()
53 bool SkMovie::setTime(SkMSec time) in setTime()
55 SkMSec dur = this->duration(); in setTime()
DSkMovie_gif.cpp30 virtual bool onSetTime(SkMSec);
72 static SkMSec savedimage_duration(const SavedImage* image) in savedimage_duration()
91 SkMSec dur = 0; in onGetInfo()
102 bool SkGIFMovie::onSetTime(SkMSec time) in onSetTime()
107 SkMSec dur = 0; in onSetTime()
/external/skia/gm/
DSkAnimTimer.h81 SkMSec msec() const { return fCurrTime - fBaseTime; } in msec()
105 SkMSec fBaseTime;
106 SkMSec fCurrTime;
126 SkMSec now = SkTime::GetMSecs(); in setState()
/external/skia/include/views/
DSkEvent.h204 void postDelay(SkMSec delay);
214 void postTime(SkMSec time);
257 static void SignalQueueTimer(SkMSec delay);
273 SkMSec fTime;
279 static SkMSec EnqueueTime(SkEvent* evt, SkMSec time);
DSkTouchGesture.h58 SkMSec fPrevT, fLastT;
65 SkMSec fLastUpT;
/external/skia/include/animator/
DSkAnimator.h185 DifferenceType draw(SkCanvas* canvas, SkPaint* paint, SkMSec time);
198 DifferenceType draw(SkCanvas* canvas, SkMSec time);
314 SkMSec getInterval();
442 virtual SkMSec getMSecs() const = 0;
478 virtual void onEventPostTime(SkEvent*, SkEventSinkID, SkMSec time);
/external/skia/src/views/
DSkEvent.cpp294 void SkEvent::postDelay(SkMSec delay) { in postDelay()
317 void SkEvent::postTime(SkMSec time) { in postTime()
326 SkMSec queueDelay = SkEvent::EnqueueTime(this, time); in postTime()
384 SkMSec SkEvent::EnqueueTime(SkEvent* evt, SkMSec time) { in EnqueueTime()
407 SkMSec delay = globals.fDelayQHead->fTime - SkTime::GetMSecs(); in EnqueueTime()
439 SkMSec now = SkTime::GetMSecs(); in ServiceQueueTimer()
463 SkMSec time = evt ? evt->fTime - now : 0; in ServiceQueueTimer()
/external/skia/tests/
DStrokerTest.cpp46 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in cubicSetTest()
59 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in cubicPairSetTest()
74 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in quadSetTest()
87 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in quadPairSetTest()
137 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in DEF_TEST()
176 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in DEF_TEST()
216 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in DEF_TEST()
268 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in DEF_TEST()
326 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in DEF_TEST()
371 SkMSec limit = SkTime::GetMSecs() + MS_TEST_DURATION; in DEF_TEST()
Dskia_test.cpp42 SkMSec elapsed, in endTest()
98 const SkMSec start = SkTime::GetMSecs(); in operator ()()
100 SkMSec elapsed = SkTime::GetMSecs() - start; in operator ()()
/external/skia/samplecode/
DSampleHT.cpp50 SkMSec fTime;
61 void spawnAnimation(SkMSec now) { in spawnAnimation()
84 void setTime(SkMSec time) { fTime = time; } in setTime()
131 SkMSec fTime;

123