Lines Matching refs:mPrimitiveFields

51 #define RP_SET_AND_DIRTY(a, b) RP_SET(a, b, mPrimitiveFields.mMatrixOrPivotDirty = true)
191 return setFlag(CLIP_TO_BOUNDS, clipToBounds, &mPrimitiveFields.mClippingFlags); in setClipToBounds()
195 bool ret = setFlag(CLIP_TO_CLIP_BOUNDS, true, &mPrimitiveFields.mClippingFlags); in setClipBounds()
196 return RP_SET(mPrimitiveFields.mClipBounds, clipBounds) || ret; in setClipBounds()
200 return setFlag(CLIP_TO_CLIP_BOUNDS, false, &mPrimitiveFields.mClippingFlags); in setClipBoundsEmpty()
204 return RP_SET(mPrimitiveFields.mProjectBackwards, shouldProject); in setProjectBackwards()
208 return RP_SET(mPrimitiveFields.mProjectionReceiver, shouldReceive); in setProjectionReceiver()
212 return mPrimitiveFields.mProjectionReceiver; in isProjectionReceiver()
242 return RP_SET(mPrimitiveFields.mAlpha, alpha); in setAlpha()
246 return mPrimitiveFields.mAlpha; in getAlpha()
250 return RP_SET(mPrimitiveFields.mHasOverlappingRendering, hasOverlappingRendering); in setHasOverlappingRendering()
254 return mPrimitiveFields.mHasOverlappingRendering; in hasOverlappingRendering()
258 return RP_SET(mPrimitiveFields.mElevation, elevation); in setElevation()
263 return mPrimitiveFields.mElevation; in getElevation()
267 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationX, translationX); in setTranslationX()
271 return mPrimitiveFields.mTranslationX; in getTranslationX()
275 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationY, translationY); in setTranslationY()
279 return mPrimitiveFields.mTranslationY; in getTranslationY()
283 return RP_SET(mPrimitiveFields.mTranslationZ, translationZ); in setTranslationZ()
288 return mPrimitiveFields.mTranslationZ; in getTranslationZ()
321 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotation, rotation); in setRotation()
325 return mPrimitiveFields.mRotation; in getRotation()
329 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotationX, rotationX); in setRotationX()
333 return mPrimitiveFields.mRotationX; in getRotationX()
337 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotationY, rotationY); in setRotationY()
341 return mPrimitiveFields.mRotationY; in getRotationY()
345 return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleX, scaleX); in setScaleX()
349 return mPrimitiveFields.mScaleX; in getScaleX()
353 return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleY, scaleY); in setScaleY()
357 return mPrimitiveFields.mScaleY; in getScaleY()
361 if (RP_SET(mPrimitiveFields.mPivotX, pivotX) in setPivotX()
362 || !mPrimitiveFields.mPivotExplicitlySet) { in setPivotX()
363 mPrimitiveFields.mMatrixOrPivotDirty = true; in setPivotX()
364 mPrimitiveFields.mPivotExplicitlySet = true; in setPivotX()
375 return mPrimitiveFields.mPivotX; in getPivotX()
379 if (RP_SET(mPrimitiveFields.mPivotY, pivotY) in setPivotY()
380 || !mPrimitiveFields.mPivotExplicitlySet) { in setPivotY()
381 mPrimitiveFields.mMatrixOrPivotDirty = true; in setPivotY()
382 mPrimitiveFields.mPivotExplicitlySet = true; in setPivotY()
389 return mPrimitiveFields.mPivotY; in getPivotY()
393 return mPrimitiveFields.mPivotExplicitlySet; in isPivotExplicitlySet()
398 mPrimitiveFields.mMatrixOrPivotDirty = true; in setCameraDistance()
411 if (RP_SET(mPrimitiveFields.mLeft, left)) { in setLeft()
412 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
413 if (!mPrimitiveFields.mPivotExplicitlySet) { in setLeft()
414 mPrimitiveFields.mMatrixOrPivotDirty = true; in setLeft()
422 return mPrimitiveFields.mLeft; in getLeft()
426 if (RP_SET(mPrimitiveFields.mTop, top)) { in setTop()
427 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setTop()
428 if (!mPrimitiveFields.mPivotExplicitlySet) { in setTop()
429 mPrimitiveFields.mMatrixOrPivotDirty = true; in setTop()
437 return mPrimitiveFields.mTop; in getTop()
441 if (RP_SET(mPrimitiveFields.mRight, right)) { in setRight()
442 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
443 if (!mPrimitiveFields.mPivotExplicitlySet) { in setRight()
444 mPrimitiveFields.mMatrixOrPivotDirty = true; in setRight()
452 return mPrimitiveFields.mRight; in getRight()
456 if (RP_SET(mPrimitiveFields.mBottom, bottom)) { in setBottom()
457 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setBottom()
458 if (!mPrimitiveFields.mPivotExplicitlySet) { in setBottom()
459 mPrimitiveFields.mMatrixOrPivotDirty = true; in setBottom()
467 return mPrimitiveFields.mBottom; in getBottom()
477 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop in setLeftTopRightBottom()
478 || right != mPrimitiveFields.mRight || bottom != mPrimitiveFields.mBottom) { in setLeftTopRightBottom()
479 mPrimitiveFields.mLeft = left; in setLeftTopRightBottom()
480 mPrimitiveFields.mTop = top; in setLeftTopRightBottom()
481 mPrimitiveFields.mRight = right; in setLeftTopRightBottom()
482 mPrimitiveFields.mBottom = bottom; in setLeftTopRightBottom()
483 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
484 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setLeftTopRightBottom()
485 if (!mPrimitiveFields.mPivotExplicitlySet) { in setLeftTopRightBottom()
486 mPrimitiveFields.mMatrixOrPivotDirty = true; in setLeftTopRightBottom()
495 mPrimitiveFields.mLeft += offset; in offsetLeftRight()
496 mPrimitiveFields.mRight += offset; in offsetLeftRight()
504 mPrimitiveFields.mTop += offset; in offsetTopBottom()
505 mPrimitiveFields.mBottom += offset; in offsetTopBottom()
512 return mPrimitiveFields.mWidth; in getWidth()
516 return mPrimitiveFields.mHeight; in getHeight()
533 LOG_ALWAYS_FATAL_IF(mPrimitiveFields.mMatrixOrPivotDirty, "Cannot get a dirty matrix!"); in getTransformMatrix()
538 return mPrimitiveFields.mClippingFlags; in getClippingFlags()
542 return mPrimitiveFields.mClippingFlags & CLIP_TO_BOUNDS; in getClipToBounds()
546 return mPrimitiveFields.mClipBounds; in getClipBounds()
553 outRect->doIntersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
556 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
561 return mPrimitiveFields.mHasOverlappingRendering; in getHasOverlappingRendering()
565 return mPrimitiveFields.mOutline; in getOutline()
569 return mPrimitiveFields.mRevealClip; in getRevealClip()
573 return mPrimitiveFields.mProjectBackwards; in getProjectBackwards()
581 return mPrimitiveFields.mOutline; in mutableOutline()
585 return mPrimitiveFields.mRevealClip; in mutableRevealClip()
613 return mPrimitiveFields.mWidth <= deviceInfo->maxTextureSize() in fitsOnLayer()
614 && mPrimitiveFields.mHeight <= deviceInfo->maxTextureSize(); in fitsOnLayer()
621 || (!MathUtils::isZero(mPrimitiveFields.mAlpha) in promotedToLayer()
622 && mPrimitiveFields.mAlpha < 1 in promotedToLayer()
623 && mPrimitiveFields.mHasOverlappingRendering)); in promotedToLayer()
650 } mPrimitiveFields; variable