diff options
Diffstat (limited to 'libs/hwui/BakedOpState.cpp')
-rw-r--r-- | libs/hwui/BakedOpState.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libs/hwui/BakedOpState.cpp b/libs/hwui/BakedOpState.cpp index 87844f9840d7..a542c26b41b8 100644 --- a/libs/hwui/BakedOpState.cpp +++ b/libs/hwui/BakedOpState.cpp @@ -63,16 +63,11 @@ ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& s } } -ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot) { - transform = *snapshot.transform; - - // Since the op doesn't have known bounds, we conservatively set the mapped bounds - // to the current clipRect, and clipSideFlags to Full. - clipState = snapshot.mutateClipArea().serializeClip(allocator); - LOG_ALWAYS_FATAL_IF(!clipState, "clipState required"); - clippedBounds = clipState->rect; - clipSideFlags = OpClipSideFlags::Full; -} +ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot) + : transform(*snapshot.transform) + , clipState(snapshot.mutateClipArea().serializeClip(allocator)) + , clippedBounds(clipState->rect) + , clipSideFlags(OpClipSideFlags::Full) {} ResolvedRenderState::ResolvedRenderState(const ClipRect* viewportRect, const Rect& dstRect) : transform(Matrix4::identity()) |