/frameworks/base/libs/hwui/ |
LayerBuilder.h | 31 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);
|
BakedOpState.cpp | 17 #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::tryStrokeableOpConstruct(LinearAllocator& allocator [all...] |
BakedOpState.h | 44 const BakedOpState*const* states; 104 class BakedOpState { 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, 150 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) 156 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const ShadowOp* shadowOpPtr [all...] |
BakedOpDispatcher.h | 20 #include "BakedOpState.h" 44 static void on##Type(BakedOpRenderer& renderer, const Type& op, const BakedOpState& state);
|
LayerBuilder.cpp | 19 #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* lhs = op [all...] |
FrameBuilder.h | 19 #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::tryConstructUnbounded(mAllocator, *mCanvasState.writableSnapshot(), recordedOp) [all...] |
FrameBuilder.cpp | 285 BakedOpState* bakedOpState = tryBakeOpState(*drawLayerOp); 286 if (bakedOpState) { 288 currentLayer().deferUnmergeableOp(mAllocator, bakedOpState, OpBatchType::Bitmap); 458 BakedOpState* bakedOpState = BakedOpState::tryShadowOpConstruct( 460 if (CC_LIKELY(bakedOpState)) { 461 currentLayer().deferUnmergeableOp(mAllocator, bakedOpState, OpBatchType::Shadow); 471 SkPath transformedMaskPath; // on stack, since BakedOpState makes a deep cop [all...] |
BakedOpDispatcher.cpp | 48 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& state [all...] |
BakedOpRenderer.h | 19 #include "BakedOpState.h" 80 void renderGlop(const BakedOpState& state, const Glop& glop) { 85 void renderFunctor(const FunctorOp& op, const BakedOpState& state);
|
FontRenderer.h | 52 class BakedOpState; 64 const BakedOpState* bakedState, 88 const BakedOpState* bakedState;
|
BakedOpRenderer.cpp | 355 void BakedOpRenderer::renderFunctor(const FunctorOp& op, const BakedOpState& state) {
|
Android.mk | 129 BakedOpState.cpp \
|
/frameworks/base/libs/hwui/tests/unit/ |
BakedOpStateTests.cpp | 19 #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, tryStrokeableOpConstruct) [all...] |
FrameBuilderTests.cpp | 19 #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& state) override [all...] |
BakedOpDispatcherTests.cpp | 53 typedef void (*TestBakedOpReceiver)(BakedOpRenderer&, const BakedOpState&); 60 auto state = BakedOpState::tryConstruct(allocator, *snapshot, *op); 72 [](BakedOpRenderer& renderer, const BakedOpState& state) { \
|