summaryrefslogtreecommitdiff
path: root/libs/hwui/BakedOpState.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2016-01-15 16:15:30 -0800
committer Chris Craik <ccraik@google.com> 2016-02-02 17:10:25 -0800
commit6e068c0182f6f85bccb855a647510724d1c65a13 (patch)
tree8ee074307867bfcdc9c8a708aa6ae03f1d9b7ecc /libs/hwui/BakedOpState.cpp
parentd38308e4d0599836f9c5446ba9d6edbc0713c428 (diff)
Early kickoff of shadow tasks
bug:26562703 Change-Id: I7cdf18f2c662380bd31c7ffeefd5c3f569e5c1c6
Diffstat (limited to 'libs/hwui/BakedOpState.cpp')
-rw-r--r--libs/hwui/BakedOpState.cpp15
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())