Home
last modified time | relevance | path

Searched refs:damage (Results 1 – 21 of 21) 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.cpp328 EXPECT_EQ(uirenderer::Rect(0, 0, 200, 400), info.layerUpdateQueue->entries().at(0).damage); in RENDERTHREAD_TEST()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestProperties.cpp573 hwc_region_t damage; in update() local
576 damage.numRects = regionScalar.size(); in update()
578 if (damage.numRects > 0) { in update()
579 hwc_rect_t* rects = new hwc_rect_t[damage.numRects]; in update()
585 for (size_t i = 0; i < damage.numRects; i++) { in update()
592 damage.rects = static_cast<hwc_rect_t const*>(rects); in update()
594 damage.rects = nullptr; in update()
597 mSurfaceDamages.push_back(damage); in update()
DHwc2Test.cpp812 hwc_region_t damage, hwc2_error_t* outErr = nullptr) in setClientTarget() argument
819 acquireFence, static_cast<int>(dataspace), damage)); in setClientTarget()
1696 hwc_region_t damage = { }; in setClientTarget() local
1704 dataspace, damage)); in setClientTarget()
3721 const hwc_region_t damage = { }; in TEST_F() local
3775 acquireFence, dataspace, damage)); in TEST_F()
3800 const hwc_region_t damage = { }; in TEST_F() local
3814 dataspace, damage, &err)); in TEST_F()
/frameworks/native/libs/gui/include/gui/
DIGraphicBufferProducer.h373 void setSurfaceDamage(const Region& damage) { surfaceDamage = damage; } in setSurfaceDamage()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp841 Error Layer::setSurfaceDamage(const Region& damage) in setSurfaceDamage() argument
843 if (damage.isRect() && mDamageRegion.isRect() && in setSurfaceDamage()
844 (damage.getBounds() == mDamageRegion.getBounds())) { in setSurfaceDamage()
847 mDamageRegion = damage; in setSurfaceDamage()
852 if (damage.isRect() && damage.getBounds() == Rect::INVALID_RECT) { in setSurfaceDamage()
857 auto rectArray = damage.getArray(&rectCount); in setSurfaceDamage()
DComposerHal.h137 const std::vector<IComposerClient::Rect>& damage) = 0;
159 const std::vector<IComposerClient::Rect>& damage) = 0;
352 const std::vector<IComposerClient::Rect>& damage) override;
373 const std::vector<IComposerClient::Rect>& damage) override;
DComposerHal.cpp565 const std::vector<IComposerClient::Rect>& damage) in setClientTarget() argument
585 mWriter.setClientTarget(slot, handle, acquireFence, dataspace, damage); in setClientTarget()
720 const std::vector<IComposerClient::Rect>& damage) in setLayerSurfaceDamage() argument
724 mWriter.setLayerSurfaceDamage(damage); in setLayerSurfaceDamage()
DHWC2.h374 [[clang::warn_unused_result]] virtual Error setSurfaceDamage(const android::Region& damage) = 0;
412 Error setSurfaceDamage(const android::Region& damage) override;
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp372 void BufferLayerConsumer::mergeSurfaceDamage(const Region& damage) { in mergeSurfaceDamage() argument
373 if (damage.bounds() == Rect::INVALID_RECT || in mergeSurfaceDamage()
377 mCurrentSurfaceDamage |= damage; in mergeSurfaceDamage()
DBufferLayerConsumer.h144 void mergeSurfaceDamage(const Region& damage);
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.h95 int32_t dataspace, const std::vector<hwc_rect_t>& damage) override;
109 const std::vector<hwc_rect_t>& damage) override;
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h248 const std::vector<hwc_rect_t>& damage) override;
267 const std::vector<hwc_rect_t>& damage) override;
Dvr_hwc.cpp697 const std::vector<hwc_rect_t>& damage) { in setLayerSurfaceDamage() argument
707 hwc_layer->info.damaged_regions = damage; in setLayerSurfaceDamage()
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h238 SkRect damage; member
DCanvasContext.cpp468 swap.damage = windowDirty; in draw()
731 dirty->join(mSwapHistory[i].damage); in computeDirtyRect()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp109 const Rect& layerDamage = layers.entries()[i].damage; in renderLayersImpl()
/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp6177 auto queue = [&](int slot, const Region& damage, nsecs_t displayTime) { in TEST_F() argument
6182 input.setSurfaceDamage(damage); in TEST_F()
/frameworks/base/core/java/android/view/
DView.java18159 final Rect damage = ai.mTmpInvalRect; in invalidateInternal() local
18160 damage.set(l, t, r, b); in invalidateInternal()
18161 p.invalidateChild(this, damage); in invalidateInternal()