Home
last modified time | relevance | path

Searched refs:maker (Results 1 – 25 of 106) sorted by relevance

12345

/external/skia/src/animator/
DSkDisplayApply.cpp73 void SkApply::activate(SkAnimateMaker& maker) { in activate() argument
82 fActive = new SkActive(*this, maker); in activate()
84 maker.appendActive(fActive); in activate()
163 SkDisplayable* SkApply::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
166 SkApply* result = (SkApply*) INHERITED::deepCopy(maker); in deepCopy()
170 SkAnimateBase* anim = (SkAnimateBase*) (*animPtr)->deepCopy(maker); in deepCopy()
172 maker->helperAdd(anim); in deepCopy()
186 bool SkApply::draw(SkAnimateMaker& maker) { in draw() argument
192 enable(maker); in draw()
194 activate(maker); in draw()
[all …]
DSkDrawSaveLayer.cpp33 bool SkSaveLayer::draw(SkAnimateMaker& maker) in draw() argument
38 SkPaint* save = maker.fPaint; in draw()
44 maker.fCanvas->saveLayer(&bounds->fRect, &realPaint); in draw()
47 maker.fCanvas->saveLayer(&bounds->fRect, save); in draw()
48 SkPaint local = SkPaint(*maker.fPaint); in draw()
49 maker.fPaint = &local; in draw()
50 bool result = INHERITED::draw(maker); in draw()
51 maker.fPaint = save; in draw()
52 maker.fCanvas->restore(); in draw()
57 void SkSaveLayer::dump(SkAnimateMaker* maker) in dump() argument
[all …]
DSkDrawGroup.cpp84 SkDisplayable* SkGroup::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
85 SkDisplayable* copy = INHERITED::deepCopy(maker); in deepCopy()
88 SkDisplayable* deeperCopy = displayable->deepCopy(maker); in deepCopy()
89 ((SkGroup*)copy)->addChild(*maker, deeperCopy); in deepCopy()
105 bool SkGroup::draw(SkAnimateMaker& maker) { in draw() argument
106 bool conditionTrue = ifCondition(maker, this, condition); in draw()
117 maker.validate(); in draw()
118 result |= drawable->draw(maker); in draw()
119 maker.validate(); in draw()
125 void SkGroup::dump(SkAnimateMaker* maker) { in dump() argument
[all …]
DSkDrawGradient.cpp54 void SkDrawGradient::dumpRest(SkAnimateMaker* maker) { in dumpRest() argument
55 dumpAttrs(maker); in dumpRest()
65 color->dump(maker); in dumpRest()
68 dumpChildren(maker, closedYet); //dumps the matrix if it has one in dumpRest()
72 void SkDrawGradient::onEndElement(SkAnimateMaker& maker) { in onEndElement() argument
75 maker.setErrorCode(SkDisplayXMLParserError::kGradientOffsetsDontMatchColors); in onEndElement()
79 maker.setErrorCode(SkDisplayXMLParserError::kGradientOffsetsMustStartWithZero); in onEndElement()
83 maker.setErrorCode(SkDisplayXMLParserError::kGradientOffsetsMustEndWithOne); in onEndElement()
88 maker.setErrorCode(SkDisplayXMLParserError::kGradientOffsetsMustIncrease); in onEndElement()
92 maker.setErrorCode(SkDisplayXMLParserError::kGradientOffsetsMustBeNoMoreThanOne); in onEndElement()
[all …]
DSkDisplayMovie.cpp54 SkDisplayable* SkDisplayMovie::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
55 SkDisplayMovie* copy = (SkDisplayMovie*) INHERITED::deepCopy(maker); in deepCopy()
74 bool SkDisplayMovie::draw(SkAnimateMaker& maker) { in draw() argument
78 enable(maker); in draw()
79 maker.fCanvas->save(); in draw()
80 SkPaint local = SkPaint(*maker.fPaint); in draw()
81 bool result = fMovie.draw(maker.fCanvas, &local, in draw()
82 maker.fDisplayList.getTime()) != SkAnimator::kNotDifferent; in draw()
83 maker.fDisplayList.fInvalBounds.join(fMovie.fMaker->fDisplayList.fInvalBounds); in draw()
84 maker.fCanvas->restore(); in draw()
[all …]
DSkDisplayInclude.cpp47 void SkInclude::onEndElement(SkAnimateMaker& maker) { in onEndElement() argument
48 maker.fInInclude = true; in onEndElement()
49 if (src.size() == 0 || maker.decodeURI(src.c_str()) == false) { in onEndElement()
50 if (maker.getErrorCode() != SkXMLParserError::kNoError || maker.getNativeCode() != -1) { in onEndElement()
51 maker.setInnerError(&maker, src); in onEndElement()
52 maker.setErrorCode(SkDisplayXMLParserError::kInInclude); in onEndElement()
54 maker.setErrorNoun(src); in onEndElement()
55 maker.setErrorCode(SkDisplayXMLParserError::kIncludeNameUnknownOrMissing); in onEndElement()
58 maker.fInInclude = false; in onEndElement()
DSkDisplayAdd.cpp40 SkDisplayable* SkAdd::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
45 SkAdd* copy = (SkAdd*) INHERITED::deepCopy(maker); in deepCopy()
51 bool SkAdd::draw(SkAnimateMaker& maker) { in draw() argument
55 use->draw(maker); in draw()
60 void SkAdd::dump(SkAnimateMaker* maker) { in dump() argument
61 dumpBase(maker); in dump()
62 dumpAttrs(maker); in dump()
71 use->dump(maker); in dump()
74 dumpEnd(maker); in dump()
78 bool SkAdd::enable(SkAnimateMaker& maker ) { in enable() argument
[all …]
DSkAnimateField.cpp36 void SkAnimate::dump(SkAnimateMaker* maker) { in dump() argument
37 INHERITED::dump(maker); //from animateBase in dump()
65 bool SkAnimate::resolveCommon(SkAnimateMaker& maker) { in resolveCommon() argument
68 INHERITED::onEndElement(maker); in resolveCommon()
69 return maker.hasError() == false; in resolveCommon()
72 void SkAnimate::onEndElement(SkAnimateMaker& maker) { in onEndElement() argument
73 bool resolved = resolveCommon(maker); in onEndElement()
75 maker.setErrorNoun(field); in onEndElement()
76 maker.setErrorCode(SkDisplayXMLParserError::kFieldNotInTarget); in onEndElement()
83 fFieldInfo->setValue(maker, &fValues, 0, 0, NULL, outType, to); in onEndElement()
[all …]
DSkDrawTo.cpp35 bool SkDrawTo::draw(SkAnimateMaker& maker) { in draw() argument
39 SkCanvas* save = maker.fCanvas; in draw()
40 maker.fCanvas = &canvas; in draw()
41 INHERITED::draw(maker); in draw()
42 maker.fCanvas = save; in draw()
48 void SkDrawTo::dump(SkAnimateMaker* maker) { in dump() argument
49 dumpBase(maker); in dump()
50 dumpAttrs(maker); in dump()
53 dumpDrawables(maker); in dump()
DSkDisplayPost.cpp66 void SkPost::dump(SkAnimateMaker* maker) { in dump() argument
67 dumpBase(maker); in dump()
90 } else if (fSinkID != maker->getAnimator()->getSinkID() && fSinkID != 0) { in dump()
159 dumpEnd(maker); in dump()
166 bool SkPost::enable(SkAnimateMaker& maker ) { in enable() argument
167 if (maker.hasError()) in enable()
179 maker.setErrorCode(SkDisplayXMLParserError::kErrorAddingDataToPost); in enable()
185 if (maker.fDumpPosts) { in enable()
187 dump(&maker); in enable()
191 SkMSec time = maker.getAppTime(); in enable()
[all …]
DSkDrawPath.cpp48 bool SkDrawPath::addChild(SkAnimateMaker& maker, SkDisplayable* child) { in addChild() argument
53 maker.setErrorCode(SkDisplayXMLParserError::kErrorAddingToPath); in addChild()
69 bool SkDrawPath::draw(SkAnimateMaker& maker) { in draw() argument
71 SkBoundableAuto boundable(this, maker); in draw()
72 maker.fCanvas->drawPath(path, *maker.fPaint); in draw()
81 void SkDrawPath::dump(SkAnimateMaker* maker) { in dump() argument
82 dumpBase(maker); in dump()
83 dumpAttrs(maker); in dump()
91 (*part)->dump(maker); in dump()
95 dumpEnd(maker); in dump()
[all …]
DSkDrawPaint.cpp91 bool SkDrawPaint::add(SkAnimateMaker* maker, SkDisplayable* child) { in add() argument
94 if (part->add() && maker) in add()
95 maker->setErrorCode(SkDisplayXMLParserError::kErrorAddingToPaint); in add()
99 SkDisplayable* SkDrawPaint::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
102 SkDrawPaint* copy = (SkDrawPaint*) INHERITED::deepCopy(maker); in deepCopy()
104 tempColor = (SkDrawColor*) color->deepCopy(maker); in deepCopy()
111 bool SkDrawPaint::draw(SkAnimateMaker& maker) { in draw() argument
112 SkPaint* paint = maker.fPaint; in draw()
118 void SkDrawPaint::dump(SkAnimateMaker* maker) { in dump() argument
119 dumpBase(maker); in dump()
[all …]
DSkDisplayBounds.cpp27 bool SkDisplayBounds::draw(SkAnimateMaker& maker) { in draw() argument
28 maker.fDisplayList.fUnionBounds = SkToBool(inval); in draw()
29 maker.fDisplayList.fDrawBounds = false; in draw()
31 bool result = INHERITED::draw(maker); in draw()
32 maker.fDisplayList.fUnionBounds = false; in draw()
33 maker.fDisplayList.fDrawBounds = true; in draw()
35 SkIRect& rect = maker.fDisplayList.fInvalBounds; in draw()
36 maker.fDisplayList.fHasUnion = true; in draw()
DSkDrawRectangle.cpp48 bool SkDrawRect::draw(SkAnimateMaker& maker) { in draw() argument
49 SkBoundableAuto boundable(this, maker); in draw()
50 maker.fCanvas->drawRect(fRect, *maker.fPaint); in draw()
55 void SkDrawRect::dump(SkAnimateMaker* maker) { in dump() argument
56 dumpBase(maker); in dump()
129 bool SkRoundRect::draw(SkAnimateMaker& maker) { in draw() argument
130 SkBoundableAuto boundable(this, maker); in draw()
131 maker.fCanvas->drawRoundRect(fRect, rx, ry, *maker.fPaint); in draw()
136 void SkRoundRect::dump(SkAnimateMaker* maker) { in dump() argument
137 dumpBase(maker); in dump()
DSkDump.cpp39 bool SkDump::enable(SkAnimateMaker& maker ) { in enable() argument
41 return evaluate(maker); in enable()
44 hasAttr |= maker.fDumpEvents = true; in enable()
46 hasAttr |= maker.fDumpPosts = true; in enable()
48 hasAttr |= maker.fDumpGConditions = true; in enable()
50 maker.fEvents.dump(maker); in enable()
52 maker.dump(name.c_str()); in enable()
54 maker.fDisplayList.dump(&maker); in enable()
58 bool SkDump::evaluate(SkAnimateMaker &maker) { in evaluate() argument
59 SkAnimatorScript scriptEngine(maker, NULL, SkType_Int); in evaluate()
DSkDrawBitmap.cpp34 bool SkBaseBitmap::draw(SkAnimateMaker& maker) { in draw() argument
35 SkBoundableAuto boundable(this, maker); in draw()
36 maker.fCanvas->drawBitmap(fBitmap, x, y, maker.fPaint); in draw()
67 void SkDrawBitmap::dump(SkAnimateMaker* maker) { in dump() argument
68 dumpBase(maker); in dump()
69 dumpAttrs(maker); in dump()
142 SkDisplayable* SkImageBaseBitmap::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
143 SkDisplayable* copy = INHERITED::deepCopy(maker); in deepCopy()
152 bool SkImageBaseBitmap::draw(SkAnimateMaker& maker) { in draw() argument
155 return INHERITED::draw(maker); in draw()
[all …]
DSkAnimateSet.cpp39 void SkSet::dump(SkAnimateMaker* maker) { in dump() argument
40 INHERITED::dump(maker); in dump()
50 void SkSet::refresh(SkAnimateMaker& maker) { in refresh() argument
51 fFieldInfo->setValue(maker, &fValues, 0, fFieldInfo->fCount, NULL, in refresh()
55 void SkSet::onEndElement(SkAnimateMaker& maker) { in onEndElement() argument
56 if (resolveCommon(maker) == false) in onEndElement()
59 maker.setErrorCode(SkDisplayXMLParserError::kFieldNotInTarget); in onEndElement()
85 …fFieldInfo->setValue(maker, &fValues, fFieldOffset, comps, this, outType, formula.size() > 0 ? for… in onEndElement()
DSkDisplayEvent.cpp85 void SkDisplayEvent::dumpEvent(SkAnimateMaker* maker) { in dumpEvent() argument
86 dumpBase(maker); in dumpEvent()
115 bool SkDisplayEvent::enableEvent(SkAnimateMaker& maker) in enableEvent() argument
117 maker.fActiveEvent = this; in enableEvent()
123 if (maker.fDumpEvents) { in enableEvent()
125 dumpEvent(&maker); in enableEvent()
128 SkDisplayList& displayList = maker.fDisplayList; in enableEvent()
135 if (displayable->enable(maker)) in enableEvent()
137 if (maker.hasError()) in enableEvent()
171 void SkDisplayEvent::onEndElement(SkAnimateMaker& maker) in onEndElement() argument
[all …]
DSkAnimateBase.cpp61 SkDisplayable* SkAnimateBase::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
62 SkAnimateBase* result = (SkAnimateBase*) INHERITED::deepCopy(maker); in deepCopy()
74 void SkAnimateBase::dump(SkAnimateMaker* maker) { in dump() argument
75 dumpBase(maker); in dump()
139 void SkAnimateBase::onEndElement(SkAnimateMaker& maker) { in onEndElement() argument
141 setTarget(maker); in onEndElement()
158 SkAnimatorScript::EvaluateInt(maker, this, scriptStr.c_str(), &fFieldOffset); in onEndElement()
209 void SkAnimateBase::setTarget(SkAnimateMaker& maker) { in setTarget() argument
211 SkAnimatorScript engine(maker, this, SkType_Displayable); in setTarget()
217 else if (maker.find(target.c_str(), (SkDisplayable**) &fTarget) == false) { in setTarget()
[all …]
DSkDrawTextBox.cpp46 void SkDrawTextBox::dump(SkAnimateMaker* maker) in dump() argument
48 dumpBase(maker); in dump()
49 dumpAttrs(maker); in dump()
70 bool SkDrawTextBox::draw(SkAnimateMaker& maker) in draw() argument
77 SkBoundableAuto boundable(this, maker); in draw()
78 box.draw(maker.fCanvas, fText.c_str(), fText.size(), *maker.fPaint); in draw()
DSkDrawText.cpp38 bool SkText::draw(SkAnimateMaker& maker) { in draw() argument
39 SkBoundableAuto boundable(this, maker); in draw()
40 maker.fCanvas->drawText(text.c_str(), text.size(), x, y, *maker.fPaint); in draw()
45 void SkText::dump(SkAnimateMaker* maker) { in dump() argument
46 INHERITED::dump(maker); in dump()
DSkDisplayType.cpp74 SkDisplayable* SkDisplayType::CreateInstance(SkAnimateMaker* maker, SkDisplayTypes type) { in CreateInstance() argument
203 SkExtras** end = maker->fExtras.end(); in CreateInstance()
204 for (SkExtras** extraPtr = maker->fExtras.begin(); extraPtr < end; extraPtr++) { in CreateInstance()
227 const SkMemberInfo* SkDisplayType::GetMembers(SkAnimateMaker* maker, in GetMembers() argument
359 if (maker) { in GetMembers()
360 SkExtras** end = maker->fExtras.end(); in GetMembers()
361 for (SkExtras** extraPtr = maker->fExtras.begin(); extraPtr < end; extraPtr++) { in GetMembers()
373 const SkMemberInfo* SkDisplayType::GetMember(SkAnimateMaker* maker, in GetMember() argument
376 const SkMemberInfo* info = GetMembers(maker, type, &infoCount); in GetMember()
529 SkDisplayTypes SkDisplayType::Find(SkAnimateMaker* maker, const SkMemberInfo* match) { in Find() argument
[all …]
DSkDisplayable.cpp70 SkDisplayable* SkDisplayable::deepCopy(SkAnimateMaker* maker) { in deepCopy() argument
76 SkDisplayable* copy = SkDisplayType::CreateInstance(maker, type); in deepCopy()
111 if (SkDisplayType::IsDisplayable(maker, info->fType)) { in deepCopy()
115 SkDisplayable* deeper = (*displayable)->deepCopy(maker); in deepCopy()
137 void SkDisplayable::dump(SkAnimateMaker* maker) { in dump() argument
138 dumpBase(maker); in dump()
140 this->dumpAttrs(maker); in dump()
141 this->dumpChildren(maker); in dump()
145 void SkDisplayable::dumpAttrs(SkAnimateMaker* maker) { in dumpAttrs() argument
151 SkDisplayable* blankCopy = SkDisplayType::CreateInstance(maker, type); in dumpAttrs()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMapMakerTest.java46 MapMaker maker = new MapMaker(); in testInitialCapacity_negative() local
48 maker.initialCapacity(-1); in testInitialCapacity_negative()
56 MapMaker maker = new MapMaker().initialCapacity(16); in xtestInitialCapacity_setTwice() local
59 maker.initialCapacity(16); in xtestInitialCapacity_setTwice()
67 MapMaker maker = new MapMaker().expireAfterWrite(1, HOURS); in testExpiration_setTwice() local
70 maker.expireAfterWrite(1, HOURS); in testExpiration_setTwice()
77 MapMaker maker = new MapMaker().maximumSize(16); in testMaximumSize_setTwice() local
80 maker.maximumSize(16); in testMaximumSize_setTwice()
/external/guava/guava-tests/test/com/google/common/collect/
DComputingConcurrentHashMapTest.java55 MapMaker maker, Function<? super K, ? extends V> computingFunction) { in makeComputingMap() argument
57 maker, computingFunction); in makeComputingMap()
61 MapMaker maker, Function<? super K, ? extends V> computingFunction) { in makeAdaptedMap() argument
63 maker, computingFunction); in makeAdaptedMap()
67 MapMaker maker = new MapMaker(); in createMapMaker() local
68 maker.useCustomMap = true; in createMapMaker()
69 return maker; in createMapMaker()
107 for (MapMaker maker : allEvictingMakers()) { in testRecordReadOnCompute()
109 makeComputingMap(maker.concurrencyLevel(1), computingFunction); in testRecordReadOnCompute()
164 MapMaker maker = createMapMaker().concurrencyLevel(1); in testComputePartiallyCollectedKey() local
[all …]

12345