Searched refs:rects (Results 1 - 25 of 58) sorted by relevance

123

/external/skia/tests/
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<unsigned>& 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.cpp240 const SkIRect rects[] = { local
246 REPORTER_ASSERT(reporter, test_rects(rects, SK_ARRAY_COUNT(rects)));
/external/libdrm/tests/
H A Dupdatedraw.c65 drm_clip_rect_t rects[2]; local
67 rects[0].x1 = 0;
68 rects[0].y1 = 0;
69 rects[0].x2 = 10;
70 rects[0].y2 = 10;
72 rects[1].x1 = 10;
73 rects[1].y1 = 10;
74 rects[1].x2 = 20;
75 rects[1].y2 = 20;
80 update.data = (unsigned long long)(uintptr_t)&rects;
[all...]
/external/skia/src/core/
H A DSkMaskCache.cpp101 const SkRect rects[], int count)
108 rects[0].roundOut(&ir);
112 fSizes[3] = SkSize::Make(rects[0].x() - ir.x(), rects[0].y() - ir.y());
114 fSizes[i] = SkSize::Make(rects[i].width(), rects[i].height());
117 fSizes[2] = SkSize::Make(rects[0].x() - rects[1].x(), rects[0].y() - rects[
100 RectsBlurKey(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count) argument
164 FindAndRef(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count, SkMask* mask, SkResourceCache* localCache) argument
178 Add(SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count, const SkMask& mask, SkCachedData* data, SkResourceCache* localCache) argument
[all...]
H A DSkMaskCache.h30 const SkRect rects[], int count, SkMask* mask,
40 const SkRect rects[], int count, const SkMask& mask, SkCachedData* data,
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]);
238 SkRect rects[2]; local
241 rectCount = countNestedRects(devPath, rects);
246 switch (this->filterRectsToNine(rects, rectCount, matrix, clip.getBounds(), &patch)) {
/external/skia/gm/
H A Dimagealphathreshold.cpp34 SkIRect rects[2]; variable
35 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300);
36 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT);
38 region.setRects(rects, 2);
/external/skia/bench/
H A DRTreeBench.cpp39 SkAutoTMalloc<SkRect> rects(NUM_BUILD_RECTS);
41 rects[i] = fProc(rand, i, NUM_BUILD_RECTS);
46 tree.insert(rects.get(), NUM_BUILD_RECTS);
47 SkASSERT(rects != NULL); // It'd break this bench if the tree took ownership of rects.
72 SkAutoTMalloc<SkRect> rects(NUM_QUERY_RECTS);
74 rects[i] = fProc(rand, i, NUM_QUERY_RECTS);
76 fTree.insert(rects.get(), NUM_QUERY_RECTS);
/external/skia/samplecode/
H A DSampleMeasure.cpp44 SkRect* rects = autoRects.get(); local
52 int n = p.getTextWidths(text, len, widths, rects);
66 SkRect r = rects[j];
/external/pdfium/core/src/fxcrt/
H A Dfx_basic_coords.cpp119 CFX_FloatRect rects[4];
121 rects[nRects].left = left;
122 rects[nRects].right = s.left;
123 rects[nRects].bottom = bottom;
124 rects[nRects].top = top;
128 rects[nRects].left = s.left;
129 rects[nRects].right = right;
130 rects[nRects].bottom = s.top;
131 rects[nRects].top = top;
135 rects[nRect
[all...]
/external/skia/src/effects/
H A DSkBlurMaskFilter.cpp229 static bool draw_rects_into_mask(const SkRect rects[], int count, SkMask* mask) { argument
230 if (!prepare_to_draw_into_mask(rects[0], mask)) {
249 canvas.drawRect(rects[0], paint);
253 path.addRect(rects[0]);
254 path.addRect(rects[1]);
294 SkBlurQuality quality, const SkRect rects[], int count) {
295 return SkMaskCache::FindAndRef(sigma, style, quality, rects, count, mask);
299 SkBlurQuality quality, const SkRect rects[], int count) {
302 SkMaskCache::Add(sigma, style, quality, rects, count, *mask, cache);
308 SK_CONF_DECLARE( bool, c_analyticBlurRRect, "mask.filter.blur.analyticblurrrect", false, "Use the faster analytic blur approach for ninepatch rects" );
293 find_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count) argument
298 add_cached_rects(SkMask* mask, SkScalar sigma, SkBlurStyle style, SkBlurQuality quality, const SkRect rects[], int count) argument
451 filterRectsToNine(const SkRect rects[], int count, const SkMatrix& matrix, const SkIRect& clipBounds, NinePatch* patch) const argument
[all...]
/external/skia/src/gpu/
H A DGrAARectRenderer.h23 * This class wraps helper functions that draw AA rects (filled & stroked)
54 const SkRect rects[2]);
/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
H A Dx11_screen.h112 int num_rects, const int *rects,
/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/pdfium/core/include/fpdftext/
H A Dfpdf_text.h145 virtual void GetRectArray(CFX_RectArray& rects) const = 0;
168 virtual void GetRects(int index, CFX_RectArray& rects) const = 0;
/external/libvncserver/webclients/novnc/include/
H A Drfb.js84 rects : 0,
306 FBU.rects = 0;
335 s[0] + " rects");
343 s[1] + " rects");
903 if (FBU.rects > 0) {
959 if (FBU.rects === 0) {
966 FBU.rects = ws.rQshift16();
967 //Util.Debug("FramebufferUpdate, rects:" + FBU.rects);
976 while (FBU.rects >
[all...]
/external/opencv/
H A Dcvjni.cpp407 jobjectArray seqRectsToAndroidRects(JNIEnv* env, CvSeq *rects) { argument
408 if (rects == 0 || rects->total <= 0) {
425 jobjectArray ary = env->NewObjectArray(rects->total, jcls, 0);
431 for (int i = 0; i < rects->total; i++) {
433 CvRect *rect = (CvRect*)cvGetSeqElem(rects, i);
/external/libvncserver/x11vnc/
H A DmacosxCG.c73 static void macosxCG_callback(CGRectCount n, const CGRect *rects, void *dum) { argument
78 if (db > 1) fprintf(stderr, " : %g %g - %g %g\n", rects[i].origin.x, rects[i].origin.y, rects[i].size.width, rects[i].size.height);
79 collect_non_X_xdamage( (int) rects[i].origin.x, (int) rects[i].origin.y,
80 (int) rects[i].size.width, (int) rects[i].size.height, 1);
/external/mesa3d/include/EGL/
H A Deglmesaext.h139 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
142 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
/external/mesa3d/src/glx/
H A Ddri_glx.c220 drm_clip_rect_t * rects, int num_rects,
251 xrects[i].x = rects[i].x1 + x_off;
252 xrects[i].y = rects[i].y1 + y_off;
253 xrects[i].width = rects[i].x2 - rects[i].x1;
254 xrects[i].height = rects[i].y2 - rects[i].y1;
218 __glXReportDamage(__DRIdrawable * driDraw, int x, int y, drm_clip_rect_t * rects, int num_rects, GLboolean front_buffer, void *loaderPrivate) argument
/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
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_cmd.h127 SVGA3dRect **rects, uint32 numRects);

Completed in 616 milliseconds

123