Home
last modified time | relevance | path

Searched refs:MakeWH (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/skia/tests/
DRecordPatternTest.cpp33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
73 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
74 recorder.drawRect(SkRect::MakeWH(600, 300), SkPaint()); in DEF_TEST()
88 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
94 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
95 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
113 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
123 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
124 recorder.drawRect(SkRect::MakeWH(100, 3000), SkPaint()); in DEF_TEST()
[all …]
DRecordDrawTest.cpp63 recorder.drawRect(SkRect::MakeWH(200, 300), SkPaint()); in DEF_TEST()
64 recorder.clipRect(SkRect::MakeWH(100, 200)); in DEF_TEST()
137 recorder.clipRect(SkRect::MakeWH(400, 500)); in DEF_TEST()
139 recorder.drawRect(SkRect::MakeWH(320, 240), SkPaint()); in DEF_TEST()
143 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); in DEF_TEST()
146 REPORTER_ASSERT(r, sloppy_rect_eq(SkRect::MakeWH(400, 480), bounds[i])); in DEF_TEST()
166 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds); in DEF_TEST()
216 recorder.clipRect(SkRect::MakeWH(20, 40)); in DEF_TEST()
217 recorder.drawRect(SkRect::MakeWH(20, 40), SkPaint()); in DEF_TEST()
226 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds); in DEF_TEST()
[all …]
DRecordReplaceDrawTest.cpp43 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), SkPaint()); in DEF_TEST()
44 canvas->clipRect(SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight))); in DEF_TEST()
103 canvas->drawRect(SkRect::MakeWH(SkIntToScalar(kWidth / 2), SkIntToScalar(kHeight / 2)), in test_replacements()
116 SkIRect::MakeWH(kWidth, kHeight), in test_replacements()
117 SkIRect::MakeWH(kWidth, kHeight), in test_replacements()
129 layer->setTexture(texture, SkIRect::MakeWH(kWidth, kHeight), false); in test_replacements()
DRecordOptsTest.cpp26 recorder.drawRect(SkRect::MakeWH(200, 200), SkPaint()); in DEF_TEST()
27 recorder.drawRect(SkRect::MakeWH(300, 300), SkPaint()); in DEF_TEST()
28 recorder.drawRect(SkRect::MakeWH(100, 100), SkPaint()); in DEF_TEST()
42 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST()
63 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST()
64 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
136 SkRect bounds = SkRect::MakeWH(100, 200); in DEF_TEST()
137 SkRect draw = SkRect::MakeWH(50, 60); in DEF_TEST()
216 SkRect bounds = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(200)); in DEF_TEST()
217 SkRect clip = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(60)); in DEF_TEST()
[all …]
DImageFilterCacheTest.cpp35 SkIRect clip = SkIRect::MakeWH(100, 100); in test_find_existing()
59 SkIRect clip1 = SkIRect::MakeWH(100, 100); in test_dont_find_if_diff_key()
60 SkIRect clip2 = SkIRect::MakeWH(200, 200); in test_dont_find_if_diff_key()
84 SkIRect clip = SkIRect::MakeWH(100, 100); in test_internal_purge()
109 SkIRect clip = SkIRect::MakeWH(100, 100); in test_explicit_purging()
136 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_TEST()
153 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in test_image_backed()
219 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DLayerDrawLooperTest.cpp69 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_frontToBack()
77 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_frontToBack()
109 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_backToFront()
117 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_backToFront()
149 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_mixed()
157 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_mixed()
DQuickRejectTest.cpp93 SkRect r = SkRect::MakeWH(10, 10); in test_layers()
102 REPORTER_ASSERT(reporter, true == canvas.quickReject(SkRect::MakeWH(10, 10))); in test_layers()
103 REPORTER_ASSERT(reporter, false == canvas.quickReject(SkRect::MakeWH(60, 60))); in test_layers()
DRecorderTest.cpp46 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); in DEF_TEST()
59 SkRect bounds = SkRect::MakeWH(320, 240); in DEF_TEST()
101 recorder.drawImageRect(image.get(), SkRect::MakeWH(100, 100), nullptr); in DEF_TEST()
DPictureShaderTest.cpp29 canvas.drawRect(SkRect::MakeWH(1,1), paint); in DEF_TEST()
40 canvas.drawRect(SkRect::MakeWH(1,1), paint); in DEF_TEST()
DSVGDeviceTest.cpp94 SkAutoTUnref<SkCanvas> svgCanvas(SkSVGCanvas::Create(SkRect::MakeWH(100, 100), in test_whitespace_pos()
107 SkAutoTUnref<SkCanvas> svgCanvas(SkSVGCanvas::Create(SkRect::MakeWH(100, 100), in test_whitespace_pos()
120 SkAutoTUnref<SkCanvas> svgCanvas(SkSVGCanvas::Create(SkRect::MakeWH(100, 100), in test_whitespace_pos()
DImageFilterTest.cpp238 SkRect rect = SkRect::Make(SkIRect::MakeWH(kBitmapSize, kBitmapSize)); in DEF_TEST()
267 SkRect r = SkRect::MakeWH(SkIntToScalar(kBitmapSize), in DEF_TEST()
323 SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(100, 100), nullptr); in test_crop_rects()
370 SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(32, 32), nullptr); in test_negative_blur_sigma()
379 SkImageFilter::Context negativeCTX(negativeScale, SkIRect::MakeWH(32, 32), nullptr); in test_negative_blur_sigma()
572 canvas.clipRect(SkRect::Make(SkIRect::MakeWH(tileSize, tileSize))); in draw_saveLayer_picture()
648 SkRect boundsSrc = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(100)); in DEF_TEST()
687 canvas->drawRect(SkRect::Make(SkIRect::MakeWH(4, 4)), whitePaint); in draw_blurred_rect()
769 SkRect rect = SkRect::Make(SkIRect::MakeWH(width, height)); in DEF_TEST()
797 SkRect bounds = SkRect::MakeWH(1, 10); in DEF_TEST()
[all …]
/external/skia/gm/
Drrects.cpp93 static const SkRect kMaxTileBound = SkRect::MakeWH(SkIntToScalar(kTileX), in onDraw()
96 static const SkRect kMaxImageBound = SkRect::MakeWH(SkIntToScalar(kImageWidth), in onDraw()
172 fRRects[0].setRect(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects()
173 fRRects[1].setOval(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects()
174 fRRects[2].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 10); in setUpRRects()
175 fRRects[3].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 5); in setUpRRects()
177 fRRects[4].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 1, 1); in setUpRRects()
178 fRRects[5].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.5f, 0.5f); in setUpRRects()
179 fRRects[6].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.2f, 0.2f); in setUpRRects()
182 fRRects[kNumSimpleCases].setRectRadii(SkRect::MakeWH(kTileY-2, kTileY-2), gRadii[0]); in setUpRRects()
[all …]
Dbigtileimagefilter.cpp57 SkRect bound = SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)); in onDraw()
60 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)), in onDraw()
61 SkRect::MakeWH(SkIntToScalar(kWidth), SkIntToScalar(kHeight)), in onDraw()
72 SkRect bound2 = SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)); in onDraw()
75 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)), in onDraw()
76 SkRect::MakeWH(SkIntToScalar(kBitmapSize), SkIntToScalar(kBitmapSize)), in onDraw()
Dextractbitmap.cpp61 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw()
65 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height())); in onDraw()
71 bitmap.extractSubset(&subset, SkIRect::MakeWH(bitmap.height(), y)); in onDraw()
Dlightingshader.cpp19 sk_tool_utils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
28 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
37 sk_tool_utils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
118 r = SkRect::MakeWH(SkIntToScalar(kTexSize), SkIntToScalar(kTexSize)); in onDraw()
Drecordopts.cpp59 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_rect_restore_sequence()
83 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(7), SkIntToScalar(7)), p); in draw_save_layer_draw_bitmap_restore_sequence()
87 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_bitmap_restore_sequence()
102 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_svg_opacity_and_filter_layer_sequence()
Dtexdata.cpp81 GrClip clip(SkRect::MakeWH(2*S, 2*S));
99 drawContext->drawRect(clip, paint, vm, SkRect::MakeWH(2*S, 2*S));
113 drawContext->drawRect(clip, paint, vm, SkRect::MakeWH(2*S, 2*S));
Dpictureshadertile.cpp80 canvas->drawRect(SkRect::MakeWH(pictureSize, pictureSize), paint); in draw_scene()
121 if (tile == SkRect::MakeWH(kPictureSize, kPictureSize)) { in onOnceBeforeDraw()
147 canvas->drawRect(SkRect::MakeWH(kFillSize, kFillSize), paint); in onDraw()
Dpictureshader.cpp150 canvas->drawRect(SkRect::MakeWH(fSceneSize, fSceneSize), paint); in drawScene()
157 canvas->drawRect(SkRect::MakeWH(fSceneSize, fSceneSize), paint); in drawScene()
167 canvas->drawRect(SkRect::MakeWH(fSceneSize, fSceneSize), paint); in drawScene()
185 SkRect tile = SkRect::MakeWH(100, 100);
/external/skia/bench/
DTileImageFilterBench.cpp41 SkRect::MakeWH(50, 50), in onDraw()
42 SkRect::MakeWH(WIDTH, HEIGHT), in onDraw()
53 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
58 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
DImageFilterDAGBench.cpp39 SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); in onDraw()
69 SkRect rect = SkRect::Make(SkIRect::MakeWH(400, 400)); in onDraw()
/external/skia/src/gpu/
DGrImageIDTextureAdjuster.cpp22 SkIRect::MakeWH(bmp->width(), bmp->height()), in GrBitmapTextureAdjuster()
36 SkIRect::MakeWH(fBmp->width(), fBmp->height())); in makeCopyKey()
53 : INHERITED(img->peekTexture(), SkIRect::MakeWH(img->width(), img->height()), in GrImageTextureAdjuster()
62 SkIRect::MakeWH(fImageBase->width(), fImageBase->height())); in makeCopyKey()
125 SkIRect::MakeWH(this->width(), this->height())); in GrImageTextureMaker()
DGrTestUtils.cpp106 gRects[0] = SkRect::MakeWH(1.f, 1.f); in TestRect()
107 gRects[1] = SkRect::MakeWH(1.0f, 256.0f); in TestRect()
108 gRects[2] = SkRect::MakeWH(256.0f, 1.0f); in TestRect()
122 gRects[0] = SkRect::MakeWH(128.f, 128.f); in TestSquare()
123 gRects[1] = SkRect::MakeWH(256.0f, 256.0f); in TestSquare()
133 SkRect rectangle = SkRect::MakeWH(10.f, 20.f); in TestRRectSimple()
DSkGrPixelRef.cpp69 srcRect = SkIRect::MakeWH(texture->width(), texture->height()); in copy_to_new_texture_pixelref()
71 SkASSERT(SkIRect::MakeWH(texture->width(), texture->height()).contains(*subset)); in copy_to_new_texture_pixelref()
177 bounds = SkIRect::MakeWH(this->info().width(), this->info().height()); in onReadPixels()
/external/skia/tools/VisualBench/
DWrappedBenchmark.h90 canvas->drawImageRect(image, SkIRect::MakeWH(w, h), in onBlitToScreen()
91 SkRect::MakeWH(SkIntToScalar(w), SkIntToScalar(h)), &blitPaint); in onBlitToScreen()
126 dst->getContext()->copySurface(dst, src, SkIRect::MakeWH(w, h), SkIPoint::Make(0, 0)); in onBlitToScreen()

12345678910