Home
last modified time | relevance | path

Searched refs:damage (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/libs/hwui/
DLayerUpdateQueue.cpp28 void LayerUpdateQueue::enqueueLayerWithDamage(RenderNode* renderNode, Rect damage) { in enqueueLayerWithDamage() argument
29 damage.roundOut(); in enqueueLayerWithDamage()
30 damage.doIntersect(0, 0, renderNode->getWidth(), renderNode->getHeight()); in enqueueLayerWithDamage()
31 if (!damage.isEmpty()) { in enqueueLayerWithDamage()
34 entry.damage.unionWith(damage); in enqueueLayerWithDamage()
38 mEntries.emplace_back(renderNode, damage); in enqueueLayerWithDamage()
DLayerUpdateQueue.h38 Entry(RenderNode* renderNode, const Rect& damage) in Entry()
39 : renderNode(renderNode), damage(damage) {} in Entry()
41 Rect damage; member
/frameworks/base/libs/hwui/tests/unit/
DLayerUpdateQueueTests.cpp52 EXPECT_EQ(Rect(25, 25, 75, 75), queue.entries()[0].damage); in TEST()
54 EXPECT_EQ(Rect(100, 100, 200, 200), queue.entries()[1].damage); // clipped to bounds in TEST()
56 EXPECT_EQ(Rect(0, 0, 1, 1), queue.entries()[2].damage); // rounded out in TEST()
69 EXPECT_EQ(Rect(10, 10, 40, 40), queue.entries()[0].damage); in TEST()
DRenderNodeTests.cpp332 EXPECT_EQ(uirenderer::Rect(0, 0, 200, 400), info.layerUpdateQueue->entries().at(0).damage); in RENDERTHREAD_TEST()
/frameworks/native/services/surfaceflinger/tests/
DLayerTransaction_test.cpp117 auto queue = [&](int slot, const Region& damage, nsecs_t displayTime) { in TEST_F() argument
122 input.setSurfaceDamage(damage); in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp714 Error Layer::setSurfaceDamage(const Region& damage) in setSurfaceDamage() argument
720 if (damage.isRect() && mDamageRegion.isRect() && in setSurfaceDamage()
721 (damage.getBounds() == mDamageRegion.getBounds())) { in setSurfaceDamage()
724 mDamageRegion = damage; in setSurfaceDamage()
729 if (damage.isRect() && damage.getBounds() == Rect::INVALID_RECT) { in setSurfaceDamage()
733 const auto hwcRects = convertRegionToHwcRects(damage); in setSurfaceDamage()
DAidlComposerHal.h121 const std::vector<IComposerClient::Rect>& damage) override;
143 const std::vector<IComposerClient::Rect>& damage) override;
DComposerHal.h160 const std::vector<IComposerClient::Rect>& damage) = 0;
182 const std::vector<IComposerClient::Rect>& damage) = 0;
DHidlComposerHal.h229 const std::vector<IComposerClient::Rect>& damage) override;
251 const std::vector<IComposerClient::Rect>& damage) override;
DHWC2.h307 [[nodiscard]] virtual hal::Error setSurfaceDamage(const android::Region& damage) = 0;
357 hal::Error setSurfaceDamage(const android::Region& damage) override;
DHidlComposerHal.cpp571 const std::vector<IComposerClient::Rect>& damage) { in setClientTarget() argument
579 mWriter.setClientTarget(slot, handle, acquireFence, dataspace, damage); in setClientTarget()
697 const std::vector<IComposerClient::Rect>& damage) { in setLayerSurfaceDamage() argument
700 mWriter.setLayerSurfaceDamage(damage); in setLayerSurfaceDamage()
DAidlComposerHal.cpp546 const std::vector<IComposerClient::Rect>& damage) { in setClientTarget() argument
555 translate<AidlRect>(damage)); in setClientTarget()
682 const std::vector<IComposerClient::Rect>& damage) { in setLayerSurfaceDamage() argument
684 translate<AidlRect>(damage)); in setLayerSurfaceDamage()
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp352 void BufferLayerConsumer::mergeSurfaceDamage(const Region& damage) { in mergeSurfaceDamage() argument
353 if (damage.bounds() == Rect::INVALID_RECT || in mergeSurfaceDamage()
357 mCurrentSurfaceDamage |= damage; in mergeSurfaceDamage()
DBufferLayerConsumer.h138 void mergeSurfaceDamage(const Region& damage);
/frameworks/native/libs/gui/include/gui/
DIGraphicBufferProducer.h360 void setSurfaceDamage(const Region& damage) { surfaceDamage = damage; } in setSurfaceDamage()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp574 swap.damage = windowDirty; in draw()
577 swap.damage = SkRect::MakeWH(max, max); in draw()
979 dirty->join(mSwapHistory[i].damage); in computeDirtyRect()
DCanvasContext.h278 SkRect damage; member
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp111 const Rect& layerDamage = layers.entries()[i].damage; in renderLayersImpl()
320 const Rect& layerDamage = layers.entries()[i].damage; in recordLayers()
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.h98 int32_t dataspace, const std::vector<hwc_rect_t>& damage) override;
115 const std::vector<hwc_rect_t>& damage) override;
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h252 const std::vector<hwc_rect_t>& damage) override;
270 const std::vector<hwc_rect_t>& damage) override;
Dvr_hwc.cpp619 const std::vector<hwc_rect_t>& damage) { in setLayerSurfaceDamage() argument
629 hwc_layer->info.damaged_regions = damage; in setLayerSurfaceDamage()
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_displayhardware_fuzzer.cpp414 const Region damage{rhs}; in setSurfaceDamage() local
415 layer->setSurfaceDamage(damage); in setSurfaceDamage()
/frameworks/base/core/java/android/view/
DView.java19370 final Rect damage = ai.mTmpInvalRect; in invalidateInternal() local
19371 damage.set(l, t, r, b); in invalidateInternal()
19372 p.invalidateChild(this, damage); in invalidateInternal()