Lines Matching refs:mPrimitiveFields

53 #define RP_SET_AND_DIRTY(a, b) RP_SET(a, b, mPrimitiveFields.mMatrixOrPivotDirty = true)
175 return setFlag(CLIP_TO_BOUNDS, clipToBounds, &mPrimitiveFields.mClippingFlags); in setClipToBounds()
179 bool ret = setFlag(CLIP_TO_CLIP_BOUNDS, true, &mPrimitiveFields.mClippingFlags); in setClipBounds()
180 return RP_SET(mPrimitiveFields.mClipBounds, clipBounds) || ret; in setClipBounds()
184 return setFlag(CLIP_TO_CLIP_BOUNDS, false, &mPrimitiveFields.mClippingFlags); in setClipBoundsEmpty()
188 return RP_SET(mPrimitiveFields.mProjectBackwards, shouldProject); in setProjectBackwards()
192 return RP_SET(mPrimitiveFields.mProjectionReceiver, shouldReceive); in setProjectionReceiver()
195 bool isProjectionReceiver() const { return mPrimitiveFields.mProjectionReceiver; } in isProjectionReceiver()
198 return RP_SET(mPrimitiveFields.mClipMayBeComplex, isClipMayBeComplex); in setClipMayBeComplex()
201 bool isClipMayBeComplex() const { return mPrimitiveFields.mClipMayBeComplex; } in isClipMayBeComplex()
228 return RP_SET(mPrimitiveFields.mAlpha, alpha); in setAlpha()
231 float getAlpha() const { return mPrimitiveFields.mAlpha; } in getAlpha()
234 return RP_SET(mPrimitiveFields.mHasOverlappingRendering, hasOverlappingRendering); in setHasOverlappingRendering()
237 bool hasOverlappingRendering() const { return mPrimitiveFields.mHasOverlappingRendering; } in hasOverlappingRendering()
240 return RP_SET(mPrimitiveFields.mElevation, elevation); in setElevation()
244 float getElevation() const { return mPrimitiveFields.mElevation; } in getElevation()
247 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationX, translationX); in setTranslationX()
250 float getTranslationX() const { return mPrimitiveFields.mTranslationX; } in getTranslationX()
253 return RP_SET_AND_DIRTY(mPrimitiveFields.mTranslationY, translationY); in setTranslationY()
256 float getTranslationY() const { return mPrimitiveFields.mTranslationY; } in getTranslationY()
259 return RP_SET(mPrimitiveFields.mTranslationZ, translationZ); in setTranslationZ()
263 float getTranslationZ() const { return mPrimitiveFields.mTranslationZ; } in getTranslationZ()
283 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotation, rotation); in setRotation()
286 float getRotation() const { return mPrimitiveFields.mRotation; } in getRotation()
289 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotationX, rotationX); in setRotationX()
292 float getRotationX() const { return mPrimitiveFields.mRotationX; } in getRotationX()
295 return RP_SET_AND_DIRTY(mPrimitiveFields.mRotationY, rotationY); in setRotationY()
298 float getRotationY() const { return mPrimitiveFields.mRotationY; } in getRotationY()
300 bool setScaleX(float scaleX) { return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleX, scaleX); } in setScaleX()
302 float getScaleX() const { return mPrimitiveFields.mScaleX; } in getScaleX()
304 bool setScaleY(float scaleY) { return RP_SET_AND_DIRTY(mPrimitiveFields.mScaleY, scaleY); } in setScaleY()
306 float getScaleY() const { return mPrimitiveFields.mScaleY; } in getScaleY()
309 if (RP_SET(mPrimitiveFields.mPivotX, pivotX) || !mPrimitiveFields.mPivotExplicitlySet) { in setPivotX()
310 mPrimitiveFields.mMatrixOrPivotDirty = true; in setPivotX()
311 mPrimitiveFields.mPivotExplicitlySet = true; in setPivotX()
321 float getPivotX() const { return mPrimitiveFields.mPivotX; } in getPivotX()
324 if (RP_SET(mPrimitiveFields.mPivotY, pivotY) || !mPrimitiveFields.mPivotExplicitlySet) { in setPivotY()
325 mPrimitiveFields.mMatrixOrPivotDirty = true; in setPivotY()
326 mPrimitiveFields.mPivotExplicitlySet = true; in setPivotY()
332 float getPivotY() const { return mPrimitiveFields.mPivotY; } in getPivotY()
334 bool isPivotExplicitlySet() const { return mPrimitiveFields.mPivotExplicitlySet; } in isPivotExplicitlySet()
336 bool resetPivot() { return RP_SET_AND_DIRTY(mPrimitiveFields.mPivotExplicitlySet, false); } in resetPivot()
340 mPrimitiveFields.mMatrixOrPivotDirty = true; in setCameraDistance()
353 if (RP_SET(mPrimitiveFields.mLeft, left)) { in setLeft()
354 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeft()
355 if (!mPrimitiveFields.mPivotExplicitlySet) { in setLeft()
356 mPrimitiveFields.mMatrixOrPivotDirty = true; in setLeft()
363 int getLeft() const { return mPrimitiveFields.mLeft; } in getLeft()
366 if (RP_SET(mPrimitiveFields.mTop, top)) { in setTop()
367 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setTop()
368 if (!mPrimitiveFields.mPivotExplicitlySet) { in setTop()
369 mPrimitiveFields.mMatrixOrPivotDirty = true; in setTop()
376 int getTop() const { return mPrimitiveFields.mTop; } in getTop()
379 if (RP_SET(mPrimitiveFields.mRight, right)) { in setRight()
380 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setRight()
381 if (!mPrimitiveFields.mPivotExplicitlySet) { in setRight()
382 mPrimitiveFields.mMatrixOrPivotDirty = true; in setRight()
389 int getRight() const { return mPrimitiveFields.mRight; } in getRight()
392 if (RP_SET(mPrimitiveFields.mBottom, bottom)) { in setBottom()
393 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setBottom()
394 if (!mPrimitiveFields.mPivotExplicitlySet) { in setBottom()
395 mPrimitiveFields.mMatrixOrPivotDirty = true; in setBottom()
402 int getBottom() const { return mPrimitiveFields.mBottom; } in getBottom()
411 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop || in setLeftTopRightBottom()
412 right != mPrimitiveFields.mRight || bottom != mPrimitiveFields.mBottom) { in setLeftTopRightBottom()
413 mPrimitiveFields.mLeft = left; in setLeftTopRightBottom()
414 mPrimitiveFields.mTop = top; in setLeftTopRightBottom()
415 mPrimitiveFields.mRight = right; in setLeftTopRightBottom()
416 mPrimitiveFields.mBottom = bottom; in setLeftTopRightBottom()
417 mPrimitiveFields.mWidth = mPrimitiveFields.mRight - mPrimitiveFields.mLeft; in setLeftTopRightBottom()
418 mPrimitiveFields.mHeight = mPrimitiveFields.mBottom - mPrimitiveFields.mTop; in setLeftTopRightBottom()
419 if (!mPrimitiveFields.mPivotExplicitlySet) { in setLeftTopRightBottom()
420 mPrimitiveFields.mMatrixOrPivotDirty = true; in setLeftTopRightBottom()
429 mPrimitiveFields.mLeft += offset; in offsetLeftRight()
430 mPrimitiveFields.mRight += offset; in offsetLeftRight()
438 mPrimitiveFields.mTop += offset; in offsetTopBottom()
439 mPrimitiveFields.mBottom += offset; in offsetTopBottom()
445 int getWidth() const { return mPrimitiveFields.mWidth; } in getWidth()
447 int getHeight() const { return mPrimitiveFields.mHeight; } in getHeight()
461 LOG_ALWAYS_FATAL_IF(mPrimitiveFields.mMatrixOrPivotDirty, "Cannot get a dirty matrix!"); in getTransformMatrix()
465 int getClippingFlags() const { return mPrimitiveFields.mClippingFlags; } in getClippingFlags()
467 bool getClipToBounds() const { return mPrimitiveFields.mClippingFlags & CLIP_TO_BOUNDS; } in getClipToBounds()
469 const Rect& getClipBounds() const { return mPrimitiveFields.mClipBounds; } in getClipBounds()
475 outRect->doIntersect(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
478 outRect->set(mPrimitiveFields.mClipBounds); in getClippingRectForFlags()
482 bool getHasOverlappingRendering() const { return mPrimitiveFields.mHasOverlappingRendering; } in getHasOverlappingRendering()
484 const Outline& getOutline() const { return mPrimitiveFields.mOutline; } in getOutline()
486 const RevealClip& getRevealClip() const { return mPrimitiveFields.mRevealClip; } in getRevealClip()
488 bool getProjectBackwards() const { return mPrimitiveFields.mProjectBackwards; } in getProjectBackwards()
494 Outline& mutableOutline() { return mPrimitiveFields.mOutline; } in mutableOutline()
496 RevealClip& mutableRevealClip() { return mPrimitiveFields.mRevealClip; } in mutableRevealClip()
516 SkColor getSpotShadowColor() const { return mPrimitiveFields.mSpotShadowColor; } in getSpotShadowColor()
519 return RP_SET(mPrimitiveFields.mSpotShadowColor, shadowColor); in setSpotShadowColor()
522 SkColor getAmbientShadowColor() const { return mPrimitiveFields.mAmbientShadowColor; } in getAmbientShadowColor()
525 return RP_SET(mPrimitiveFields.mAmbientShadowColor, shadowColor); in setAmbientShadowColor()
530 return mPrimitiveFields.mWidth <= deviceInfo->maxTextureSize() && in fitsOnLayer()
531 mPrimitiveFields.mHeight <= deviceInfo->maxTextureSize(); in fitsOnLayer()
537 (!MathUtils::isZero(mPrimitiveFields.mAlpha) && mPrimitiveFields.mAlpha < 1 && in promotedToLayer()
538 mPrimitiveFields.mHasOverlappingRendering)); in promotedToLayer()
546 return RP_SET(mPrimitiveFields.mAllowForceDark, allow); in setAllowForceDark()
550 return mPrimitiveFields.mAllowForceDark; in getAllowForceDark()
577 } mPrimitiveFields; variable