Lines Matching refs:mPrimitiveFields

50 #define RP_SET_AND_DIRTY(a, b) RP_SET(a, b, mPrimitiveFields.mMatrixOrPivotDirty = true)
190 return setFlag(CLIP_TO_BOUNDS, clipToBounds, &mPrimitiveFields.mClippingFlags); in setClipToBounds()
194 bool ret = setFlag(CLIP_TO_CLIP_BOUNDS, true, &mPrimitiveFields.mClippingFlags); in setClipBounds()
195 return RP_SET(mPrimitiveFields.mClipBounds, clipBounds) || ret; in setClipBounds()
199 return setFlag(CLIP_TO_CLIP_BOUNDS, false, &mPrimitiveFields.mClippingFlags); in setClipBoundsEmpty()
203 return RP_SET(mPrimitiveFields.mProjectBackwards, shouldProject); in setProjectBackwards()
207 return RP_SET(mPrimitiveFields.mProjectionReceiver, shouldRecieve); in setProjectionReceiver()
211 return mPrimitiveFields.mProjectionReceiver; in isProjectionReceiver()
241 return RP_SET(mPrimitiveFields.mAlpha, alpha); in setAlpha()
245 return mPrimitiveFields.mAlpha; in getAlpha()
249 return RP_SET(mPrimitiveFields.mHasOverlappingRendering, hasOverlappingRendering); in setHasOverlappingRendering()
253 return mPrimitiveFields.mHasOverlappingRendering; in hasOverlappingRendering()
257 return RP_SET(mPrimitiveFields.mElevation, elevation); in setElevation()
262 return mPrimitiveFields.mElevation; in getElevation()
266 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationX, translationX); in setTranslationX()
270 return mPrimitiveFields.mTranslationX; in getTranslationX()
274 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationY, translationY); in setTranslationY()
278 return mPrimitiveFields.mTranslationY; in getTranslationY()
282 return RP_SET(mPrimitiveFields.mTranslationZ, translationZ); in setTranslationZ()
287 return mPrimitiveFields.mTranslationZ; in getTranslationZ()
320 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotation, rotation); in setRotation()
324 return mPrimitiveFields.mRotation; in getRotation()
328 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotationX, rotationX); in setRotationX()
332 return mPrimitiveFields.mRotationX; in getRotationX()
336 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotationY, rotationY); in setRotationY()
340 return mPrimitiveFields.mRotationY; in getRotationY()
344 return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleX, scaleX); in setScaleX()
348 return mPrimitiveFields.mScaleX; in getScaleX()
352 return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleY, scaleY); in setScaleY()
356 return mPrimitiveFields.mScaleY; in getScaleY()
360 if (RP_SET(mPrimitiveFields.mPivotX, pivotX) in setPivotX()
361 || !mPrimitiveFields.mPivotExplicitlySet) { in setPivotX()
362 mPrimitiveFields.mMatrixOrPivotDirty = true; in setPivotX()
363 mPrimitiveFields.mPivotExplicitlySet = true; in setPivotX()
374 return mPrimitiveFields.mPivotX; in getPivotX()
378 if (RP_SET(mPrimitiveFields.mPivotY, pivotY) in setPivotY()
379 || !mPrimitiveFields.mPivotExplicitlySet) { in setPivotY()
380 mPrimitiveFields.mMatrixOrPivotDirty = true; in setPivotY()
381 mPrimitiveFields.mPivotExplicitlySet = true; in setPivotY()
388 return mPrimitiveFields.mPivotY; in getPivotY()
392 return mPrimitiveFields.mPivotExplicitlySet; in isPivotExplicitlySet()
397 mPrimitiveFields.mMatrixOrPivotDirty = true; in setCameraDistance()
410 if (RP_SET(mPrimitiveFields.mLeft, left)) { in setLeft()
411 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
412 if (!mPrimitiveFields.mPivotExplicitlySet) { in setLeft()
413 mPrimitiveFields.mMatrixOrPivotDirty = true; in setLeft()
421 return mPrimitiveFields.mLeft; in getLeft()
425 if (RP_SET(mPrimitiveFields.mTop, top)) { in setTop()
426 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setTop()
427 if (!mPrimitiveFields.mPivotExplicitlySet) { in setTop()
428 mPrimitiveFields.mMatrixOrPivotDirty = true; in setTop()
436 return mPrimitiveFields.mTop; in getTop()
440 if (RP_SET(mPrimitiveFields.mRight, right)) { in setRight()
441 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
442 if (!mPrimitiveFields.mPivotExplicitlySet) { in setRight()
443 mPrimitiveFields.mMatrixOrPivotDirty = true; in setRight()
451 return mPrimitiveFields.mRight; in getRight()
455 if (RP_SET(mPrimitiveFields.mBottom, bottom)) { in setBottom()
456 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setBottom()
457 if (!mPrimitiveFields.mPivotExplicitlySet) { in setBottom()
458 mPrimitiveFields.mMatrixOrPivotDirty = true; in setBottom()
466 return mPrimitiveFields.mBottom; in getBottom()
476 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop in setLeftTopRightBottom()
477 || right != mPrimitiveFields.mRight || bottom != mPrimitiveFields.mBottom) { in setLeftTopRightBottom()
478 mPrimitiveFields.mLeft = left; in setLeftTopRightBottom()
479 mPrimitiveFields.mTop = top; in setLeftTopRightBottom()
480 mPrimitiveFields.mRight = right; in setLeftTopRightBottom()
481 mPrimitiveFields.mBottom = bottom; in setLeftTopRightBottom()
482 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
483 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setLeftTopRightBottom()
484 if (!mPrimitiveFields.mPivotExplicitlySet) { in setLeftTopRightBottom()
485 mPrimitiveFields.mMatrixOrPivotDirty = true; in setLeftTopRightBottom()
494 mPrimitiveFields.mLeft += offset; in offsetLeftRight()
495 mPrimitiveFields.mRight += offset; in offsetLeftRight()
503 mPrimitiveFields.mTop += offset; in offsetTopBottom()
504 mPrimitiveFields.mBottom += offset; in offsetTopBottom()
511 return mPrimitiveFields.mWidth; in getWidth()
515 return mPrimitiveFields.mHeight; in getHeight()
532 LOG_ALWAYS_FATAL_IF(mPrimitiveFields.mMatrixOrPivotDirty, "Cannot get a dirty matrix!"); in getTransformMatrix()
537 return mPrimitiveFields.mClippingFlags; in getClippingFlags()
541 return mPrimitiveFields.mClippingFlags & CLIP_TO_BOUNDS; in getClipToBounds()
548 outRect->intersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
551 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
556 return mPrimitiveFields.mHasOverlappingRendering; in getHasOverlappingRendering()
560 return mPrimitiveFields.mOutline; in getOutline()
564 return mPrimitiveFields.mRevealClip; in getRevealClip()
568 return mPrimitiveFields.mProjectBackwards; in getProjectBackwards()
576 return mPrimitiveFields.mOutline; in mutableOutline()
580 return mPrimitiveFields.mRevealClip; in mutableRevealClip()
609 && mPrimitiveFields.mWidth <= maxTextureSize in promotedToLayer()
610 && mPrimitiveFields.mHeight <= maxTextureSize in promotedToLayer()
612 || (!MathUtils::isZero(mPrimitiveFields.mAlpha) in promotedToLayer()
613 && mPrimitiveFields.mAlpha < 1 in promotedToLayer()
614 && mPrimitiveFields.mHasOverlappingRendering)); in promotedToLayer()
643 } mPrimitiveFields; variable