diff options
| author | 2016-02-03 01:17:37 +0000 | |
|---|---|---|
| committer | 2016-02-03 01:17:37 +0000 | |
| commit | bcda2da5fe9ab9ee1fe765e1e80a49c12c86cdca (patch) | |
| tree | 82c746fde0f21b8022496fdc9afe43945f429175 /libs/hwui/BakedOpState.cpp | |
| parent | 7b5e869730fcee6fb2b88218c7899ef05ed5c075 (diff) | |
| parent | 6e068c0182f6f85bccb855a647510724d1c65a13 (diff) | |
Merge "Early kickoff of shadow tasks"
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()) |