Searched defs:rects (Results 1 - 25 of 60) sorted by relevance

123

/external/skia/src/gpu/ops/
H A DGrRectOpFactory.cpp18 const SkRect rects[2]) {
20 SkASSERT(!rects[0].isEmpty() && !rects[1].isEmpty());
23 viewMatrix.mapRect(&devOutside, rects[0]);
24 viewMatrix.mapRect(&devInside, rects[1]);
16 MakeAAFillNestedRects(GrColor color, const SkMatrix& viewMatrix, const SkRect rects[2]) argument
H A DGrDrawAtlasOp.h21 const SkRect* rects, const SkColor* colors) {
23 new GrDrawAtlasOp(color, viewMatrix, spriteCount, xforms, rects, colors));
40 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors);
19 Make(GrColor color, const SkMatrix& viewMatrix, int spriteCount, const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) argument
H A DGrDrawAtlasOp.cpp74 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors)
77 SkASSERT(rects);
105 const SkRect& currRect = rects[spriteIndex];
73 GrDrawAtlasOp(GrColor color, const SkMatrix& viewMatrix, int spriteCount, const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) argument
/external/skia/tests/
H A DFlattenableFactoryToName.cpp28 SkIRect rects[2]; local
29 rects[0] = SkIRect::MakeXYWH(0, 150, 500, 200);
30 rects[1] = SkIRect::MakeXYWH(150, 0, 200, 500);
32 region.setRects(rects, 2);
H A DGpuRectanizerTest.cpp35 const SkTDArray<SkISize>& rects) {
37 for (i = 0; i < rects.count(); ++i) {
39 if (!rectanizer->addRect(rects[i].fWidth, rects[i].fHeight, &loc)) {
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { argument
51 test_rectanizer_inserts(reporter, &skylineRectanizer, rects);
54 static void test_pow2(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { argument
58 test_rectanizer_inserts(reporter, &pow2Rectanizer, rects);
62 SkTDArray<SkISize> rects; local
66 rects
33 test_rectanizer_inserts(skiatest::Reporter*, GrRectanizer* rectanizer, const SkTDArray<SkISize>& rects) argument
[all...]
H A DRTreeTest.cpp28 static bool verify_query(SkRect query, SkRect rects[], SkTDArray<int>& found) { argument
32 if (SkRect::Intersects(query, rects[i])) {
46 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, SkRect rects[], argument
52 REPORTER_ASSERT(reporter, verify_query(query, rects, hits));
74 SkAutoTMalloc<SkRect> rects(NUM_RECTS);
80 rects[j] = random_rect(rand);
83 rtree.insert(rects.get(), NUM_RECTS);
84 SkASSERT(rects); // SkRTree doesn't take ownership of rects.
86 run_queries(reporter, rand, rects, rtre
[all...]
H A DMaskCacheTest.cpp75 SkRect rects[2] = {rect}; local
80 SkCachedData* data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache);
89 SkMaskCache::Add(sigma, style, quality, rects, 1, mask, data, &cache);
96 data = SkMaskCache::FindAndRef(sigma, style, quality, rects, 1, &mask, &cache);
H A DRegionTest.cpp241 const SkIRect rects[] = { local
247 REPORTER_ASSERT(reporter, test_rects(rects, SK_ARRAY_COUNT(rects)));
H A DMatrixClipCollapseTest.cpp180 SkIRect rects[2] = { local
185 r.setRects(rects, 2);
/external/libdrm/tests/
H A Dupdatedraw.c66 drm_clip_rect_t rects[2]; local
68 rects[0].x1 = 0;
69 rects[0].y1 = 0;
70 rects[0].x2 = 10;
71 rects[0].y2 = 10;
73 rects[1].x1 = 10;
74 rects[1].y1 = 10;
75 rects[1].x2 = 20;
76 rects[1].y2 = 20;
81 update.data = (unsigned long long)(uintptr_t)&rects;
[all...]
/external/libmojo/mojo/public/cpp/bindings/tests/
H A Dtype_conversion_unittest.cc23 std::vector<RedmondRect> rects; member in struct:mojo::__anon10925::RedmondNamedRegion
73 region->rects = Array<test::RectPtr>::From(input.rects).PassStorage();
84 if (input->rects) {
85 region.rects.reserve(input->rects->size());
86 for (const auto& element : *input->rects)
87 region.rects.push_back(element.To<RedmondRect>());
158 Array<RectPtr> rects; local
160 std::vector<RedmondRect> redmond_rects = rects
[all...]
/external/skia/gm/
H A Ddrawatlascolor.cpp122 SkRect rects[numColors]; variable
130 rects[i] = target;
151 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
155 canvas->drawAtlas(atlas.get(), xforms, rects, quadColors, numColors,
H A Dimagealphathreshold.cpp30 SkIRect rects[2]; local
31 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
32 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
34 region.setRects(rects, 2);
/external/skia/samplecode/
H A DSampleMeasure.cpp43 SkRect* rects = autoRects.get(); local
51 int n = p.getTextWidths(text, len, widths, rects);
65 SkRect r = rects[j];
/external/skia/src/core/
H A DSkMaskCache.cpp105 const SkRect rects[], int count)
112 rects[0].roundOut(&ir);
113 fSizes[0] = SkSize::Make(rects[0].width(), rects[0].height());
115 fSizes[1] = SkSize::Make(rects[1].width(), rects[1].height());
116 fSizes[2] = SkSize::Make(rects[0].x() - rects[1].x(), rects[0].y() - rects[
104 RectsBlurKey(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count) argument
171 FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count, SkMask* mask, SkResourceCache* localCache) argument
185 Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count, const SkMask& mask, SkCachedData* data, SkResourceCache* localCache) argument
[all...]
H A DSkMaskFilter.cpp210 static int countNestedRects(const SkPath& path, SkRect rects[2]) { argument
211 if (path.isNestedFillRects(rects)) {
214 return path.isRect(&rects[0]);
237 SkRect rects[2]; local
240 rectCount = countNestedRects(devPath, rects);
245 switch (this->filterRectsToNine(rects, rectCount, matrix, clip.getBounds(), &patch)) {
/external/mesa3d/src/gallium/state_trackers/egl/common/
H A Dnative.h112 const int *rects; /* x, y, width, height */ member in struct:native_present_control
/external/pdfium/fpdfsdk/
H A Dcpdfsdk_baannothandler.cpp27 std::vector<CFX_FloatRect> rects; local
28 rects.push_back(pBAAnnot->GetRect());
30 rects.push_back(pPopupAnnot->GetRect());
32 // Make the rects round up to avoid https://crbug.com/662804
33 for (CFX_FloatRect& rect : rects)
36 pPageView->UpdateRects(rects);
H A Dcpdfsdk_pageview.cpp433 void CPDFSDK_PageView::UpdateRects(const std::vector<CFX_FloatRect>& rects) { argument
434 for (const auto& rc : rects)
/external/webrtc/webrtc/modules/desktop_capture/
H A Ddesktop_region_unittest.cc26 const DesktopRect rects[], int rects_size) {
31 EXPECT_TRUE(it.rect().equals(rects[i]))
34 << rects[i].left() << "-" << rects[i].right() << "."
35 << rects[i].top() << "-" << rects[i].bottom();
69 DesktopRect rects[4]; member in struct:webrtc::Case
95 r.AddRect(cases[i].rects[j]);
97 CompareRegion(r, cases[i].rects, cases[i].count);
101 // Try inserting rects i
25 CompareRegion(const DesktopRegion& region, const DesktopRect rects[], int rects_size) argument
316 DesktopRect rects[4]; member in struct:webrtc::Region
[all...]
H A Dscreen_capturer_x11.cc332 XRectangle* rects = XFixesFetchRegionAndBounds(display(), damage_region_, local
336 rects[i].x, rects[i].y, rects[i].width, rects[i].height));
338 XFree(rects);
361 // Full-screen polling, so calculate the invalid rects here, based on the
H A Ddesktop_region.cc35 DesktopRegion::DesktopRegion(const DesktopRect* rects, int count) { argument
36 AddRects(rects, count);
144 void DesktopRegion::AddRects(const DesktopRect* rects, int count) { argument
146 AddRect(rects[i]);
/external/mesa3d/src/gallium/state_trackers/egl/x11/
H A Dx11_screen.c353 int num_rects, const int *rects,
360 rectangles[i].x = rects[i * 4 + 0];
361 rectangles[i].y = rects[i * 4 + 1];
362 rectangles[i].width = rects[i * 4 + 2];
363 rectangles[i].height = rects[i * 4 + 3];
352 x11_drawable_copy_buffers_region(struct x11_screen *xscr, Drawable drawable, int num_rects, const int *rects, int src_buf, int dst_buf) argument
/external/deqp/modules/gles31/functional/
H A Des31fStencilTexturingTests.cpp67 static void genTestRects (vector<IVec4>& rects, int width, int height) argument
75 rects.push_back(IVec4(width-curWidth, height-curHeight, curWidth, curHeight));
89 static void rectsToTriangles (const vector<IVec4>& rects, int width, int height, vector<Vec2>& positions, vector<deUint16>& indices) argument
94 positions.resize(rects.size()*4);
95 indices.resize(rects.size()*6);
97 for (int rectNdx = 0; rectNdx < (int)rects.size(); rectNdx++)
99 const int rx = rects[rectNdx].x();
100 const int ry = rects[rectNdx].y();
101 const int rw = rects[rectNdx].z();
102 const int rh = rects[rectNd
138 vector<IVec4> rects; local
168 vector<IVec4> rects; local
[all...]
/external/libdrm/include/drm/
H A Dvmwgfx_drm.h603 * @rects: pointer to array of drm_vmw_rect
611 uint64_t rects; member in struct:drm_vmw_update_layout_arg

Completed in 1305 milliseconds

123