Home
last modified time | relevance | path

Searched refs:drawCmdList (Results 1 – 25 of 48) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/
H A Ddraw_cmd_test.cpp54 drawCmdList->SetWidth(10);
55 drawCmdList->SetHeight(20);
703 drawCmdList->ClearOp();
704 delete drawCmdList;
730 drawCmdList->ClearOp();
732 delete drawCmdList;
767 drawCmdList->SetWidth(0);
771 drawCmdList->SetWidth(10);
772 drawCmdList->SetHeight(10);
782 delete drawCmdList;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcanvas_modifier.cpp36 CHECK_NULL_VOID(drawCmdList); in onDraw()
43 …rsDrawCmdList->GetWidth(), rsDrawCmdList->GetHeight(), drawCmdList->GetWidth(), drawCmdList->GetHe… in onDraw()
44 drawCmdList->GetOpItemSize()); in onDraw()
46 drawCmdSize_.SetWidth(drawCmdList->GetWidth()); in onDraw()
47 drawCmdSize_.SetHeight(drawCmdList->GetHeight()); in onDraw()
48 rsDrawCmdList->SetWidth(drawCmdList->GetWidth()); in onDraw()
49 rsDrawCmdList->SetHeight(drawCmdList->GetHeight()); in onDraw()
53 dumpInfo.width = drawCmdList->GetWidth(); in onDraw()
54 dumpInfo.height = drawCmdList->GetHeight(); in onDraw()
63 CHECK_EQUAL_VOID(drawCmdList->IsEmpty(), true); in onDraw()
[all …]
H A Dcanvas_paint_method.cpp278 auto drawCmdList = recordingCanvas->GetDrawCmdList(); in GetImageData() local
283 auto ret = rosenRenderContext->GetPixelMap(sharedPixelMap, drawCmdList, &rect); in GetImageData()
285 if (!drawCmdList || drawCmdList->IsEmpty()) { in GetImageData()
295 drawCmdList->Playback(canvas, &rect); in GetImageData()
368 auto drawCmdList = recordingCanvas->GetDrawCmdList(); in DrawBitmap() local
369 CHECK_NULL_RETURN(drawCmdList, false); in DrawBitmap()
370 bool res = rosenRenderContext->GetBitmap(currentBitmap, drawCmdList); in DrawBitmap()
374 if (drawCmdList->IsEmpty()) { in DrawBitmap()
388 drawCmdList->Playback(currentCanvas); in DrawBitmap()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/
H A Drs_canvas_drawing_node_test.cpp110 std::shared_ptr<Drawing::DrawCmdList> drawCmdList; variable
112 bool res = drawingNode->GetBitmap(bitmap, drawCmdList, &rect);
118 drawingNode->GetBitmap(bitmap, drawCmdList, &rect);
121 drawCmdList = std::make_shared<Drawing::DrawCmdList>();
122 res = drawingNode->GetBitmap(bitmap, drawCmdList, &rect);
137 std::shared_ptr<Drawing::DrawCmdList> drawCmdList; variable
139 bool res = drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect);
143 drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect);
147 res = drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect);
152 drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/drawable/
H A Drs_property_drawable.h37 …rtyDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) : drawCmdList_(std::move(drawCmdL… in RSPropertyDrawable() argument
76 RSFrameOffsetDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSFrameOffsetDrawable() argument
77 : RSPropertyDrawable(std::move(drawCmdList)) in RSFrameOffsetDrawable()
90 RSClipToBoundsDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSClipToBoundsDrawable() argument
91 : RSPropertyDrawable(std::move(drawCmdList)) in RSClipToBoundsDrawable()
102 RSClipToFrameDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSClipToFrameDrawable() argument
103 : RSPropertyDrawable(std::move(drawCmdList)) in RSClipToFrameDrawable()
H A Drs_property_drawable_background.h74 …Drawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) : RSPropertyDrawable(std::move(drawC… in RSMaskDrawable() argument
86 RSBackgroundColorDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSBackgroundColorDrawable() argument
87 : RSPropertyDrawable(std::move(drawCmdList)) in RSBackgroundColorDrawable()
98 RSBackgroundShaderDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSBackgroundShaderDrawable() argument
99 : RSPropertyDrawable(std::move(drawCmdList)) in RSBackgroundShaderDrawable()
110 RSBackgroundImageDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSBackgroundImageDrawable() argument
111 : RSPropertyDrawable(std::move(drawCmdList)) in RSBackgroundImageDrawable()
H A Drs_property_drawable_foreground.h150 RSForegroundColorDrawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) in RSForegroundColorDrawable() argument
151 : RSPropertyDrawable(std::move(drawCmdList)) in RSForegroundColorDrawable()
191 …Drawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) : RSPropertyDrawable(std::move(drawC… in RSBorderDrawable() argument
204 …Drawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) : RSPropertyDrawable(std::move(drawC… in RSOutlineDrawable() argument
215 …Drawable(std::shared_ptr<Drawing::DrawCmdList>&& drawCmdList) : RSPropertyDrawable(std::move(drawC… in RSParticleDrawable() argument
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_canvas_drawing_render_node_test.cpp104 drawCmdList->SetWidth(1024);
105 drawCmdList->SetHeight(1090);
107 property->GetRef() = drawCmdList;
173 property->GetRef() = drawCmdList;
226 property->GetRef() = drawCmdList;
404 std::shared_ptr<Drawing::DrawCmdList> drawCmdList; variable
411 EXPECT_FALSE(rsCanvasDrawingRenderNode->GetPixelmap(pixelmap, &rect, tid, drawCmdList));
414 EXPECT_FALSE(rsCanvasDrawingRenderNode->GetPixelmap(pixelmap, &rect, tid, drawCmdList));
419 drawCmdList = std::make_shared<Drawing::DrawCmdList>(width, height);
423 EXPECT_FALSE(rsCanvasDrawingRenderNode->GetPixelmap(pixelmap, &rect, tid, drawCmdList));
[all …]
H A Drs_canvas_render_node_test.cpp338 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
339 drawCmdList->SetWidth(2024);
340 drawCmdList->SetHeight(2090);
342 propertyTwo->GetRef() = drawCmdList;
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rspropertydrawable_fuzzer/
H A Drspropertydrawable_fuzzer.cpp68 auto drawCmdList = Drawing::DrawCmdList::CreateFromData({ nullptr, 0 }, false); in DoSomethingInterestingWithMyAPI() local
69 DrawableV2::RSPropertyDrawable rsPropertyDrawable(std::move(drawCmdList)); in DoSomethingInterestingWithMyAPI()
81 DrawableV2::RSFrameOffsetDrawable rsFrameOffsetDrawable(std::move(drawCmdList)); in DoSomethingInterestingWithMyAPI()
85 DrawableV2::RSClipToBoundsDrawable rsClipToBoundsDrawable(std::move(drawCmdList)); in DoSomethingInterestingWithMyAPI()
89 DrawableV2::RSClipToFrameDrawable rsClipToFrameDrawable(std::move(drawCmdList)); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_canvas_drawing_node.cpp84 std::shared_ptr<Drawing::DrawCmdList> drawCmdList, const Drawing::Rect* rect) in GetBitmap() argument
115 if (drawCmdList == nullptr) { in GetBitmap()
120 drawCmdList->Playback(canvas, rect); in GetBitmap()
126 std::shared_ptr<Drawing::DrawCmdList> drawCmdList, const Drawing::Rect* rect) in GetPixelmap() argument
139 bool ret = renderServiceClient->GetPixelmap(GetId(), pixelmap, rect, drawCmdList); in GetPixelmap()
156 auto getPixelmapTask = [&node, &pixelmap, rect, &ret, &drawCmdList]() { in GetPixelmap()
H A Drs_canvas_drawing_node.h43 … std::shared_ptr<Drawing::DrawCmdList> drawCmdList = nullptr, const Drawing::Rect* rect = nullptr);
45 … std::shared_ptr<Drawing::DrawCmdList> drawCmdList = nullptr, const Drawing::Rect* rect = nullptr);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/
H A Ddraw_cmd_list.cpp501 if (!drawCmdList) { in PlaybackToDrawCmdList()
506 std::lock_guard<std::recursive_mutex> lock(drawCmdList->mutex_); in PlaybackToDrawCmdList()
507drawCmdList->drawOpItems_.insert(drawCmdList->drawOpItems_.end(), drawOpItems_.begin(), drawOpItem… in PlaybackToDrawCmdList()
517 std::lock_guard<std::mutex> lock(drawCmdList->recordCmdMutex_); in PlaybackToDrawCmdList()
518 drawCmdList->recordCmdVec_.swap(recordCmdVec_); in PlaybackToDrawCmdList()
522 std::lock_guard<std::mutex> lock(drawCmdList->imageObjectMutex_); in PlaybackToDrawCmdList()
523 drawCmdList->imageObjectVec_.swap(imageObjectVec_); in PlaybackToDrawCmdList()
528 drawCmdList->imageBaseObjVec_.swap(imageBaseObjVec_); in PlaybackToDrawCmdList()
533 drawCmdList->opAllocator_.Add(addr, size); in PlaybackToDrawCmdList()
535 drawCmdList->AddImageData(imageData.first, imageData.second); in PlaybackToDrawCmdList()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/
H A Drs_misc_drawable.cpp186 if (const auto& drawCmdList = property->GetRef()) { in OnUpdate() local
187 if (drawCmdList->GetWidth() > 0 && drawCmdList->GetHeight() > 0) { in OnUpdate()
188 stagingDrawCmdListVec_.push_back(drawCmdList); in OnUpdate()
210 for (auto &drawCmdList : drawCmdListVec_) { in OnPurge() local
211 if (drawCmdList) { in OnPurge()
212 drawCmdList->Purge(); in OnPurge()
221 for (const auto& drawCmdList : ptr->drawCmdListVec_) { in CreateDrawFunc() local
224 … RSPropertyDrawableUtils::GetGravityMatrix(ptr->gravity_, *rect, drawCmdList->GetWidth(), in CreateDrawFunc()
225 drawCmdList->GetHeight(), mat)) { in CreateDrawFunc()
228 drawCmdList->Playback(*canvas, rect); in CreateDrawFunc()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/
H A Drs_extended_modifier.h90 auto drawCmdList = RSExtendedModifierHelper::FinishDrawing(ctx); in UpdateToRender() local
91 bool isEmpty = drawCmdList == nullptr; in UpdateToRender()
95 if (drawCmdList) { in UpdateToRender()
96 drawCmdList->SetIsNeedUnmarshalOnDestruct(!node->IsRenderServiceNode()); in UpdateToRender()
101 node->GetId(), drawCmdList, property_->id_, UPDATE_TYPE_OVERWRITE); in UpdateToRender()
107 node->GetId(), drawCmdList, property_->id_, UPDATE_TYPE_OVERWRITE); in UpdateToRender()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/
H A Drs_canvas_drawing_render_node_drawable_test.cpp314 …std::shared_ptr<Drawing::DrawCmdList> drawCmdList = Drawing::DrawCmdList::CreateFromData(data, isC… variable
315 drawable->ProcessCPURenderInBackgroundThread(drawCmdList, ctx, id);
320 EXPECT_TRUE(drawCmdList->IsEmpty());
322 drawable->ProcessCPURenderInBackgroundThread(drawCmdList, ctx, id);
323 drawCmdList->AddDrawOp(std::move(drawOpItem));
324 EXPECT_FALSE(drawCmdList->IsEmpty());
327 drawable->ProcessCPURenderInBackgroundThread(drawCmdList, ctx, id);
393 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = nullptr; variable
394 bool res = drawable->GetPixelmap(pixelmap, rect, tid, drawCmdList);
397 res = drawable->GetPixelmap(pixelmap, rect, tid, drawCmdList);
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/drawable/
H A Drs_misc_drawable_test.cpp150 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
152 property->GetRef() = drawCmdList;
259 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
261 property->GetRef() = drawCmdList;
302 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
304 property->GetRef() = drawCmdList;
351 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
353 property->GetRef() = drawCmdList;
H A Drs_property_drawable_background_test.cpp390 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
392 property->GetRef() = drawCmdList;
400 property2->GetRef() = drawCmdList;
405 property3->GetRef() = drawCmdList;
410 property4->GetRef() = drawCmdList;
H A Drs_property_drawable_test.cpp66 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); variable
67 EXPECT_NE(drawCmdList, nullptr);
68 propertyDrawable->drawCmdList_ = drawCmdList;
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_canvas_drawing_render_node.cpp286 for (const auto& drawCmdList : it->second) { in ApplyDrawCmdModifier() local
287 drawCmdList->Playback(*context.canvas_); in ApplyDrawCmdModifier()
288 drawCmdList->ClearOp(); in ApplyDrawCmdModifier()
345 const uint64_t tid, std::shared_ptr<Drawing::DrawCmdList> drawCmdList) in GetPixelmap() argument
371 if (!drawCmdList) { in GetPixelmap()
409 drawCmdList->Playback(*canvas, rect); in GetPixelmap()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_unmarshal_thread.cpp213 auto drawCmdList = cmd->GetDrawCmdList(); in ReportTransactionDataStatistics() local
214 if (drawCmdList) { in ReportTransactionDataStatistics()
215 opCount += drawCmdList->GetOpItemSize(); in ReportTransactionDataStatistics()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_capture_recorder.cpp169 auto drawCmdList = recordingCanvas_->GetDrawCmdList(); in EndInstantCaptureDrawing() local
175 bool marshallingComplete = RSMarshallingHelper::Marshalling(*messageParcel, drawCmdList); in EndInstantCaptureDrawing()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsrenderserviceconnectionproxy_fuzzer/
H A Drsrenderserviceconnectionproxy_fuzzer.cpp118 std::shared_ptr<Drawing::DrawCmdList> drawCmdList = std::make_shared<Drawing::DrawCmdList>(); in DoSomethingInterestingWithMyAPI() local
186 rsRenderServiceConnectionProxy.GetPixelmap(id1, pixelmap, &rect, drawCmdList); in DoSomethingInterestingWithMyAPI()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_canvas_drawing_render_node.h59 … const uint64_t tid = UINT32_MAX, std::shared_ptr<Drawing::DrawCmdList> drawCmdList = nullptr);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsmarshallinghelper_fuzzer/
H A Drsmarshallinghelper_fuzzer.cpp441 …static std::shared_ptr<DrawCmdList> drawCmdList = DrawCmdList::CreateFromData(cmdListData, isCopy); in DoMarshallingHelper011() local
442 RSMarshallingHelper::Marshalling(parcel, drawCmdList); in DoMarshallingHelper011()
443 RSMarshallingHelper::Unmarshalling(parcel, drawCmdList); in DoMarshallingHelper011()

12