Searched refs:BakedOpState (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/libs/hwui/
H A DLayerBuilder.h31 class BakedOpState;
63 typedef void (*BakedOpReceiver)(void*, const BakedOpState&);
88 void deferUnmergeableOp(LinearAllocator& allocator, BakedOpState* op, batchid_t batchId);
93 BakedOpState* op, batchid_t batchId, mergeid_t mergeId);
116 std::vector<BakedOpState*> activeUnclippedSaveLayers;
118 void onDeferOp(LinearAllocator& allocator, const BakedOpState* bakedState);
H A DBakedOpState.cpp17 #include "BakedOpState.h"
110 BakedOpState* BakedOpState::tryConstruct(LinearAllocator& allocator,
113 BakedOpState* bakedState = allocator.create_trivial<BakedOpState>(
123 BakedOpState* BakedOpState::tryConstructUnbounded(LinearAllocator& allocator,
126 return allocator.create_trivial<BakedOpState>(allocator, snapshot, recordedOp);
129 BakedOpState* BakedOpState
[all...]
H A DBakedOpState.h44 const BakedOpState*const* states;
104 class BakedOpState { class in namespace:android::uirenderer
106 static BakedOpState* tryConstruct(LinearAllocator& allocator,
109 static BakedOpState* tryConstructUnbounded(LinearAllocator& allocator,
119 static BakedOpState* tryStrokeableOpConstruct(LinearAllocator& allocator,
122 static BakedOpState* tryShadowOpConstruct(LinearAllocator& allocator,
125 static BakedOpState* directConstruct(LinearAllocator& allocator,
142 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, function in class:android::uirenderer::BakedOpState
150 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) function in class:android::uirenderer::BakedOpState
156 BakedOpState(LinearAllocato function in class:android::uirenderer::BakedOpState
162 BakedOpState(const ClipRect* clipRect, const Rect& dstRect, const RecordedOp& recordedOp) function in class:android::uirenderer::BakedOpState
[all...]
H A DBakedOpDispatcher.h20 #include "BakedOpState.h"
44 static void on##Type(BakedOpRenderer& renderer, const Type& op, const BakedOpState& state);
H A DLayerBuilder.cpp19 #include "BakedOpState.h"
31 BatchBase(batchid_t batchId, BakedOpState* op, bool merging)
41 for (const BakedOpState* op : mOps) {
52 const std::vector<BakedOpState*>& getOps() const { return mOps; }
61 std::vector<BakedOpState*> mOps;
67 OpBatch(batchid_t batchId, BakedOpState* op)
71 void batchOp(BakedOpState* op) {
79 MergingOpBatch(batchid_t batchId, BakedOpState* op)
125 bool canMergeWith(BakedOpState* op) const {
135 const BakedOpState* lh
[all...]
H A DFrameBuilder.h19 #include "BakedOpState.h"
34 class BakedOpState;
92 * Defines a LUT of lambdas which allow a recorded BakedOpState to use state->op->opId to
97 * StaticDispatcher::onBitmapOp(Renderer& renderer, const BitmapOp& op, const BakedOpState& state);
100 [](void* renderer, const BakedOpState& state) { \
108 * Defines a LUT of lambdas which allow merged arrays of BakedOpState* to be passed to a
184 BakedOpState* tryBakeOpState(const RecordedOp& recordedOp) {
185 return BakedOpState::tryConstruct(mAllocator, *mCanvasState.writableSnapshot(), recordedOp);
187 BakedOpState* tryBakeUnboundedOpState(const RecordedOp& recordedOp) {
188 return BakedOpState
[all...]
H A DFrameBuilder.cpp285 BakedOpState* bakedOpState = tryBakeOpState(*drawLayerOp);
458 BakedOpState* bakedOpState = BakedOpState::tryShadowOpConstruct(
471 SkPath transformedMaskPath; // on stack, since BakedOpState makes a deep copy
561 BakedOpState* FrameBuilder::deferStrokeableOp(const RecordedOp& op, batchid_t batchId,
562 BakedOpState::StrokeBehavior strokeBehavior) {
564 BakedOpState* bakedState = BakedOpState::tryStrokeableOpConstruct(
593 static bool hasMergeableClip(const BakedOpState& state) {
599 BakedOpState* bakedStat
[all...]
H A DBakedOpDispatcher.cpp48 const BakedOpState& firstState = *(opList.states[0]);
62 const BakedOpState& state = *(opList.states[i]);
94 const BakedOpState& firstState = *(opList.states[0]);
125 const BakedOpState& state = *opList.states[i];
198 const TextOp& op, const BakedOpState& textOpState) {
265 static void renderText(BakedOpRenderer& renderer, const TextOp& op, const BakedOpState& state,
323 const BakedOpState& state = *(opList.states[i]);
331 const BakedOpState& state = *(opList.states[i]);
346 static void renderVertexBuffer(BakedOpRenderer& renderer, const BakedOpState& state,
366 static void renderConvexPath(BakedOpRenderer& renderer, const BakedOpState
[all...]
H A DBakedOpRenderer.h19 #include "BakedOpState.h"
80 void renderGlop(const BakedOpState& state, const Glop& glop) {
85 void renderFunctor(const FunctorOp& op, const BakedOpState& state);
H A DFontRenderer.h48 class BakedOpState;
60 const BakedOpState* bakedState,
84 const BakedOpState* bakedState;
H A DBakedOpRenderer.cpp355 void BakedOpRenderer::renderFunctor(const FunctorOp& op, const BakedOpState& state) {
H A DAndroid.mk124 BakedOpState.cpp \
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpStateTests.cpp19 #include <BakedOpState.h>
178 TEST(BakedOpState, tryConstruct) {
188 EXPECT_NE(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, successOp))
194 EXPECT_EQ(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, rejectOp))
201 TEST(BakedOpState, tryShadowOpConstruct) {
208 BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1234);
216 BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1234);
226 TEST(BakedOpState, tryStrokeableOpConstruc
[all...]
H A DFrameBuilderTests.cpp19 #include <BakedOpState.h>
66 virtual void on##Type(const Type&, const BakedOpState&) { \
94 static void on##Type(TestRendererBase& renderer, const Type& op, const BakedOpState& state) { \
119 void onRectOp(const RectOp& op, const BakedOpState& state) override {
122 void onBitmapOp(const BitmapOp& op, const BakedOpState& state) override {
148 void onPointsOp(const PointsOp& op, const BakedOpState& state) override {
193 void onBitmapOp(const BitmapOp& op, const BakedOpState& state) override {
196 void onRectOp(const RectOp& op, const BakedOpState& state) override {
229 void onRectOp(const RectOp& op, const BakedOpState& state) override {
255 void onRectOp(const RectOp& op, const BakedOpState
[all...]
H A DBakedOpDispatcherTests.cpp53 typedef void (*TestBakedOpReceiver)(BakedOpRenderer&, const BakedOpState&);
60 auto state = BakedOpState::tryConstruct(allocator, *snapshot, *op);
72 [](BakedOpRenderer& renderer, const BakedOpState& state) { \

Completed in 500 milliseconds