Searched refs:damage (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/libs/hwui/
H A DLayerUpdateQueue.cpp28 void LayerUpdateQueue::enqueueLayerWithDamage(RenderNode* renderNode, Rect damage) { argument
29 damage.roundOut();
30 damage.doIntersect(0, 0, renderNode->getWidth(), renderNode->getHeight());
31 if (!damage.isEmpty()) {
34 entry.damage.unionWith(damage);
38 mEntries.emplace_back(renderNode, damage);
H A DLayerUpdateQueue.h35 Entry(RenderNode* renderNode, const Rect& damage) argument
37 , damage(damage) {}
39 Rect damage; member in struct:android::uirenderer::LayerUpdateQueue::Entry
H A DFrameBuilder.cpp89 Rect layerDamage = layers.entries()[i].damage;
90 // TODO: ensure layer damage can't be larger than layer
/frameworks/base/libs/hwui/tests/unit/
H A DLayerUpdateQueueTests.cpp52 EXPECT_EQ(Rect(25, 25, 75, 75), queue.entries()[0].damage);
54 EXPECT_EQ(Rect(100, 100, 200, 200), queue.entries()[1].damage); // clipped to bounds
56 EXPECT_EQ(Rect(0, 0, 1, 1), queue.entries()[2].damage); // rounded out
69 EXPECT_EQ(Rect(10, 10, 40, 40), queue.entries()[0].damage);
/frameworks/native/include/gui/
H A DIGraphicBufferProducer.h337 void setSurfaceDamage(const Region& damage) { surfaceDamage = damage; } argument
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.h199 SkRect damage; member in struct:android::uirenderer::renderthread::CanvasContext::SwapHistory
H A DCanvasContext.cpp348 // to the damage history (happens below)
349 // So we need to damage
352 dirty.join(mSwapHistory[i].damage);
517 swap.damage = screenDirty;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWC2.cpp785 // TODO: Properly encode client target surface damage
967 Error Layer::setSurfaceDamage(const Region& damage) argument
969 // We encode default full-screen damage as INVALID_RECT upstream, but as 0
972 if (damage.isRect() && damage.getBounds() == Rect::INVALID_RECT) {
977 auto rectArray = damage.getArray(&rectCount);
H A DHWC2.h369 const android::Region& damage);
H A DHWC2On1Adapter.h215 hwc_region_t damage);
506 HWC2::Error setSurfaceDamage(hwc_region_t damage);
H A DHWC2On1Adapter.cpp886 int32_t acquireFence, int32_t /*dataspace*/, hwc_region_t /*damage*/)
893 // dataspace and damage can't be used by HWC1, so ignore them
2016 Error HWC2On1Adapter::Layer::setSurfaceDamage(hwc_region_t damage) argument
2018 mSurfaceDamage.resize(damage.numRects);
2019 std::copy_n(damage.rects, damage.numRects, mSurfaceDamage.begin());
/frameworks/base/core/java/android/view/
H A DView.java13564 // Propagate the damage rectangle to the parent view.
13568 final Rect damage = ai.mTmpInvalRect;
13569 damage.set(l, t, r, b);
13570 p.invalidateChild(this, damage);
13664 * Tells the parent view to damage this view's bounds.

Completed in 227 milliseconds