/frameworks/native/include/private/ui/ |
D | RegionHelper.h | 53 RECT const* rects; member 58 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { } in region() 60 : rects(_r), count(_c), dx(), dy() { } in region() 62 : rects(_r), count(_c), dx(_dx), dy(_dy) { } in region() 172 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; in Spanner() 173 SpannerBase::lhs_tail = lhs.rects->bottom + lhs.dy; in Spanner() 176 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; in Spanner() 177 SpannerBase::rhs_tail = rhs.rects->bottom + rhs.dy; in Spanner() 204 RECT const * rects = reg.rects; in advance() local 205 RECT const * const end = rects + count; in advance() [all …]
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
D | PaintCompat.java | 100 final Pair<Rect, Rect> rects = obtainEmptyRects(); in hasGlyph() local 101 paint.getTextBounds(TOFU_STRING, 0, TOFU_STRING.length(), rects.first); in hasGlyph() 102 paint.getTextBounds(string, 0, length, rects.second); in hasGlyph() 103 return !rects.first.equals(rects.second); in hasGlyph() 107 Pair<Rect, Rect> rects = sRectThreadLocal.get(); in obtainEmptyRects() local 108 if (rects == null) { in obtainEmptyRects() 109 rects = new Pair<>(new Rect(), new Rect()); in obtainEmptyRects() 110 sRectThreadLocal.set(rects); in obtainEmptyRects() 112 rects.first.setEmpty(); in obtainEmptyRects() 113 rects.second.setEmpty(); in obtainEmptyRects() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Path.java | 47 public Region rects; field in Path 67 if (src.rects != null) { in Path() 68 rects = new Region(src.rects); in Path() 81 if (rects != null) rects.setEmpty(); in reset() 96 if (rects != null) rects.setEmpty(); in rewind() 112 if (rects != null && src.rects != null) { in set() 113 rects.set(src.rects); in set() 114 } else if (rects != null && src.rects == null) { in set() 115 rects.setEmpty(); in set() 116 } else if (src.rects != null) { in set() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaProfileRenderer.cpp | 28 void SkiaProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { in drawRects() argument 30 SkRect rect = SkRect::MakeLTRB(rects[index + 0], rects[index + 1], rects[index + 2], in drawRects() 31 rects[index + 3]); in drawRects()
|
D | SkiaProfileRenderer.h | 30 void drawRects(const float* rects, int count, const SkPaint& paint) override;
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2TestProperties.cpp | 550 const hwc_rect_t& rect = curr.rects[i]; in dump() 579 hwc_rect_t* rects = new hwc_rect_t[damage.numRects]; in update() local 580 if (!rects) { in update() 586 rects[i].left = regionScalar[i].left * mBufferArea.width; in update() 587 rects[i].top = regionScalar[i].top * mBufferArea.height; in update() 588 rects[i].right = regionScalar[i].right * mBufferArea.width; in update() 589 rects[i].bottom = regionScalar[i].bottom * mBufferArea.height; in update() 592 damage.rects = static_cast<hwc_rect_t const*>(rects); in update() 594 damage.rects = nullptr; in update() 604 if (surfaceDamage.numRects > 0 && surfaceDamage.rects) in freeSurfaceDamages() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | Region.cpp | 215 std::vector<int32_t> rects; in Region_createFromParcel() local 216 p->readInt32Vector(&rects); in Region_createFromParcel() 218 if ((rects.size() % 4) != 0) { in Region_createFromParcel() 223 for (size_t x = 0; x + 4 <= rects.size(); x += 4) { in Region_createFromParcel() 224 region->op(rects[x], rects[x+1], rects[x+2], rects[x+3], SkRegion::kUnion_Op); in Region_createFromParcel() 239 std::vector<int32_t> rects; in Region_writeToParcel() local 243 rects.push_back(r.fLeft); in Region_writeToParcel() 244 rects.push_back(r.fTop); in Region_writeToParcel() 245 rects.push_back(r.fRight); in Region_writeToParcel() 246 rects.push_back(r.fBottom); in Region_writeToParcel() [all …]
|
/frameworks/base/libs/hwui/ |
D | ProfileRenderer.cpp | 27 void ProfileRenderer::drawRects(const float* rects, int count, const SkPaint& paint) { in drawRects() argument 28 mRenderer.drawRects(rects, count, &paint); in drawRects()
|
D | RecordingCanvas.cpp | 302 void RecordingCanvas::drawSimpleRects(const float* rects, int vertexCount, const SkPaint* paint) { in drawSimpleRects() argument 303 if (rects == nullptr) return; in drawSimpleRects() 313 float l = rects[index + 0]; in drawSimpleRects() 314 float t = rects[index + 1]; in drawSimpleRects() 315 float r = rects[index + 2]; in drawSimpleRects() 316 float b = rects[index + 3]; in drawSimpleRects() 341 Vector<float> rects; in drawRegion() local 345 rects.push(r.fLeft); in drawRegion() 346 rects.push(r.fTop); in drawRegion() 347 rects.push(r.fRight); in drawRegion() [all …]
|
D | BakedOpRenderer.cpp | 190 void BakedOpRenderer::drawRects(const float* rects, int count, const SkPaint* paint) { in drawRects() argument 196 float l = rects[index + 0]; in drawRects() 197 float t = rects[index + 1]; in drawRects() 198 float r = rects[index + 2]; in drawRects() 199 float b = rects[index + 3]; in drawRects()
|
D | IProfileRenderer.h | 26 virtual void drawRects(const float* rects, int count, const SkPaint& paint) = 0;
|
D | ProfileRenderer.h | 31 void drawRects(const float* rects, int count, const SkPaint& paint) override;
|
D | BakedOpRenderer.h | 103 void drawRects(const float* rects, int count, const SkPaint* paint);
|
/frameworks/base/libs/hwui/renderthread/ |
D | EglManager.cpp | 400 EGLint rects[4]; in damageFrame() local 401 frame.map(dirty, rects); in damageFrame() 402 if (!eglSetDamageRegionKHR(mEglDisplay, frame.mSurface, rects, 1)) { in damageFrame() 421 EGLint rects[4]; in swapBuffers() local 422 frame.map(screenDirty, rects); in swapBuffers() 423 eglSwapBuffersWithDamageKHR(mEglDisplay, frame.mSurface, rects, in swapBuffers()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | IconMenuView.java | 449 final ArrayList<Rect> rects = mHorizontalDividerRects; in onDraw() local 450 for (int i = rects.size() - 1; i >= 0; i--) { in onDraw() 451 drawable.setBounds(rects.get(i)); in onDraw() 459 final ArrayList<Rect> rects = mVerticalDividerRects; in onDraw() local 460 for (int i = rects.size() - 1; i >= 0; i--) { in onDraw() 461 drawable.setBounds(rects.get(i)); in onDraw()
|
/frameworks/native/libs/hwc2on1adapter/ |
D | HWC2On1Adapter.cpp | 1571 hwc_rect_t* rects = mNextAvailableRect; in GetRects() local 1574 return rects; in GetRects() 1888 hwc_rect_t* rects = GetRects(1); in prepareFramebufferTarget() local 1889 rects[0].left = 0; in prepareFramebufferTarget() 1890 rects[0].top = 0; in prepareFramebufferTarget() 1891 rects[0].right = width; in prepareFramebufferTarget() 1892 rects[0].bottom = height; in prepareFramebufferTarget() 1893 hwc1Target.visibleRegionScreen.rects = rects; in prepareFramebufferTarget() 1956 std::copy_n(damage.rects, damage.numRects, mSurfaceDamage.begin()); in setSurfaceDamage() 2023 !std::equal(mVisibleRegion.begin(), mVisibleRegion.end(), visible.rects, in setVisibleRegion() [all …]
|
/frameworks/native/opengl/include/EGL/ |
D | eglext.h | 282 … PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 284 …APIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 446 …LSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 448 …RY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 900 …LSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 902 …RY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); 1021 …APBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1023 …eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1029 …PBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects); 1031 …glSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
|
/frameworks/base/libs/hwui/renderstate/ |
D | OffscreenBufferPool.cpp | 76 const android::Rect* rects = safeRegion.getArray(&count); in updateMeshFromRegion() local 84 const android::Rect* r = &rects[i]; in updateMeshFromRegion()
|
/frameworks/native/libs/nativewindow/include/system/ |
D | window.h | 828 const android_native_rect_t* rects, size_t numRects) in native_window_set_surface_damage() argument 831 rects, numRects); in native_window_set_surface_damage()
|
/frameworks/native/vulkan/libvulkan/ |
D | swapchain.cpp | 1340 android_native_rect_t* rects = nullptr; in QueuePresentKHR() local 1375 allocator->pUserData, rects, in QueuePresentKHR() 1380 rects = new_rects; in QueuePresentKHR() 1399 android_native_rect_t* cur_rect = &rects[r]; in QueuePresentKHR() 1405 native_window_set_surface_damage(window, rects, rcount); in QueuePresentKHR() 1497 if (rects) { in QueuePresentKHR() 1498 allocator->pfnFree(allocator->pUserData, rects); in QueuePresentKHR()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcColorEquiv.cpp | 365 layer->visibleRegionScreen.rects = &layer->displayFrame; in main() 379 layer->visibleRegionScreen.rects = &layer->displayFrame; in main()
|
/frameworks/native/libs/gui/ |
D | Surface.cpp | 1089 android_native_rect_t* rects = va_arg(args, android_native_rect_t*); in dispatchSetSurfaceDamage() local 1091 setSurfaceDamage(rects, numRects); in dispatchSetSurfaceDamage() 1518 void Surface::setSurfaceDamage(android_native_rect_t* rects, size_t numRects) { in setSurfaceDamage() argument 1534 Rect rect(rects[r].left, rects[r].bottom, rects[r].right, rects[r].top); in setSurfaceDamage()
|
/frameworks/base/libs/hwui/debug/ |
D | nullegl.cpp | 155 EGLBoolean eglSwapBuffersWithDamageKHR(EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint re… in eglSwapBuffersWithDamageKHR() argument
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer_hwc1.cpp | 624 disp.framebufferTarget->visibleRegionScreen.rects = in createWorkList() 1003 l->visibleRegionScreen.rects = NULL; in setDefaultState() 1055 visibleRegion.rects = reinterpret_cast<hwc_rect_t const *>( in setVisibleRegionScreen() 1068 surfaceDamage.rects = NULL; in setSurfaceDamage() 1072 surfaceDamage.rects = reinterpret_cast<hwc_rect_t const *>( in setSurfaceDamage()
|
/frameworks/native/opengl/libs/EGL/ |
D | eglApi.cpp | 1338 EGLint *rects, EGLint n_rects) in eglSwapBuffersWithDamageKHR() argument 1376 int x = rects[offset]; in eglSwapBuffersWithDamageKHR() 1377 int y = rects[offset + 1]; in eglSwapBuffersWithDamageKHR() 1378 int width = rects[offset + 2]; in eglSwapBuffersWithDamageKHR() 1379 int height = rects[offset + 3]; in eglSwapBuffersWithDamageKHR() 1391 rects, n_rects); in eglSwapBuffersWithDamageKHR() 2148 EGLint *rects, EGLint n_rects) in eglSetDamageRegionKHR() argument 2167 rects, n_rects); in eglSetDamageRegionKHR()
|