Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
DDeviceTest.cpp52 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
61 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
68 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
96 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
123 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
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()
218 recorder.clipRect(SkRect::MakeWH(20, 40)); in DEF_TEST()
219 recorder.drawRect(SkRect::MakeWH(20, 40), SkPaint()); in DEF_TEST()
228 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds); in DEF_TEST()
[all …]
DPipeTest.cpp56 SkCanvas* wc = serializer.beginWrite(SkRect::MakeWH(100, 100), &stream); in DEF_TEST()
64 wc = serializer.beginWrite(SkRect::MakeWH(100, 100), &stream); in DEF_TEST()
107 SkCanvas* wc = serializer.beginWrite(SkRect::MakeWH(100, 100), &stream); in DEF_TEST()
117 SkCanvas* c = rec.beginRecording(SkRect::MakeWH(100, 100)); in DEF_TEST()
127 SkCanvas* wc = serializer.beginWrite(SkRect::MakeWH(100, 100), &stream); in DEF_TEST()
135 wc = serializer.beginWrite(SkRect::MakeWH(100, 100), &stream); in DEF_TEST()
159 SkCanvas* c = rec.beginRecording(SkRect::MakeWH(100, 100)); in DEF_TEST()
182 SkCanvas* wc = serializer.beginWrite(SkRect::MakeWH(100, 100), &stream); in DEF_TEST()
DLayerDrawLooperTest.cpp67 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_frontToBack()
75 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_frontToBack()
106 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_backToFront()
114 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_backToFront()
145 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_mixed()
153 canvas.drawRect(SkRect::MakeWH(50.0f, 50.0f), paint); in test_mixed()
DRecordOptsTest.cpp27 recorder.drawRect(SkRect::MakeWH(200, 200), SkPaint()); in DEF_TEST()
28 recorder.drawRect(SkRect::MakeWH(300, 300), SkPaint()); in DEF_TEST()
29 recorder.drawRect(SkRect::MakeWH(100, 100), SkPaint()); in DEF_TEST()
43 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST()
64 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST()
65 recorder.clipRect(SkRect::MakeWH(100, 100)); in DEF_TEST()
137 SkRect bounds = SkRect::MakeWH(100, 200); in DEF_TEST()
138 SkRect draw = SkRect::MakeWH(50, 60); in DEF_TEST()
228 SkRect bounds = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(200)); in DEF_TEST()
229 SkRect clip = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(60)); in DEF_TEST()
[all …]
DPictureTest.cpp67 canvas->drawRect(SkRect::MakeWH(10, 10), SkPaint ()); in test_analysis()
85 canvas->drawRect(SkRect::MakeWH(10, 10), paint); in test_analysis()
116 SkRect rect = SkRect::MakeWH(50, 50); in rand_op()
274 canvas->drawRect(SkRect::MakeWH(10, 10), paint); in test_gpu_veto()
290 canvas->drawRect(SkRect::MakeWH(100, 100), SkPaint()); in test_gpu_veto()
302 canvas->drawRect(SkRect::MakeWH(100, 100), SkPaint()); in test_gpu_veto()
397 SkRect clipRect = SkRect::MakeWH(2, 2); in create_imbalance()
398 SkRect drawRect = SkRect::MakeWH(10, 10); in create_imbalance()
462 SkRect r = SkRect::MakeWH(5, 5); in DEF_TEST()
587 SkRect rect = SkRect::MakeWH(50, 50); in test_peephole()
[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()
139 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_TEST()
156 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in test_image_backed()
259 const SkIRect& full = SkIRect::MakeWH(kFullSize, kFullSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
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, SkRect::MakeWH(100, 100), nullptr); in DEF_TEST()
DSpecialImageTest.cpp117 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); in test_image()
144 SkIRect::MakeWH(kFullSize, kFullSize), in DEF_TEST()
166 SkIRect::MakeWH(kFullSize, kFullSize), in test_specialimage_image()
216 SkIRect::MakeWH(kFullSize, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
246 SkIRect::MakeWH(kFullSize, kFullSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
279 SkIRect::MakeWH(kFullSize, kFullSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
318 SkIRect::MakeWH(kFullSize, kFullSize), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DImageFilterTest.cpp491 SkRect rect = SkRect::Make(SkIRect::MakeWH(kBitmapSize, kBitmapSize)); in DEF_TEST()
520 SkRect r = SkRect::MakeWH(SkIntToScalar(kBitmapSize), in DEF_TEST()
545 SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(100, 100), nullptr, noColorSpace); in test_crop_rects()
563 sk_sp<SkSpecialImage> imgSrc(SkSpecialImage::MakeFromRaster(SkIRect::MakeWH(width, height), in test_negative_blur_sigma()
568 SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(32, 32), nullptr, noColorSpace); in test_negative_blur_sigma()
578 SkImageFilter::Context negativeCTX(negativeScale, SkIRect::MakeWH(32, 32), nullptr, in test_negative_blur_sigma()
647 SkImageFilter::Context ctx(SkMatrix::I(), SkIRect::MakeWH(32, 32), nullptr, noColorSpace); in test_zero_blur_sigma()
790 canvas.clipRect(SkRect::Make(SkIRect::MakeWH(tileSize, tileSize))); in draw_saveLayer_picture()
925 SkRect boundsSrc = SkRect::MakeWH(SkIntToScalar(100), SkIntToScalar(100)); in DEF_TEST()
939 SkRect bounds = SkRect::MakeWH(100, 100); in DEF_TEST()
[all …]
DQuickRejectTest.cpp100 SkRect r = SkRect::MakeWH(10, 10); in test_layers()
109 REPORTER_ASSERT(reporter, true == canvas.quickReject(SkRect::MakeWH(10, 10))); in test_layers()
110 REPORTER_ASSERT(reporter, false == canvas.quickReject(SkRect::MakeWH(60, 60))); in test_layers()
176 canvas.quickReject(SkRect::MakeWH(100.0f, 100.0f)); in DEF_TEST()
/external/skia/gm/
Drrects.cpp78 const SkRect kMaxTileBound = SkRect::MakeWH(SkIntToScalar(kTileX), in onDraw()
81 const SkRect kMaxImageBound = SkRect::MakeWH(SkIntToScalar(kImageWidth), in onDraw()
154 fRRects[0].setRect(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects()
155 fRRects[1].setOval(SkRect::MakeWH(kTileX-2, kTileY-2)); in setUpRRects()
156 fRRects[2].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 10); in setUpRRects()
157 fRRects[3].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 10, 5); in setUpRRects()
159 fRRects[4].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 1, 1); in setUpRRects()
160 fRRects[5].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.5f, 0.5f); in setUpRRects()
161 fRRects[6].setRectXY(SkRect::MakeWH(kTileX-2, kTileY-2), 0.2f, 0.2f); in setUpRRects()
164 fRRects[kNumSimpleCases].setRectRadii(SkRect::MakeWH(kTileY-2, kTileY-2), gRadii[0]); in setUpRRects()
[all …]
Dcirculararcs.cpp139 {SkRect::MakeWH(kS, kS), 0, 0},
141 {SkRect::MakeWH(-kS, kS), 0, 90},
143 {SkRect::MakeWH(kS, -kS), 0, 90},
145 {SkRect::MakeWH( 0, 0), 0, 90},
149 {SkRect::MakeWH(kS, kS), 810.f, 90.f},
151 {SkRect::MakeWH(kS, kS), -810.f, 90.f},
153 {SkRect::MakeWH(kS, kS), 0.f, 360.f},
155 {SkRect::MakeWH(kS, kS), 0.f, -360.f},
157 {SkRect::MakeWH(kS, kS), 0.f, 540.f},
159 {SkRect::MakeWH(kS, kS), 0.f, -540.f},
[all …]
Dlocalmatriximageshader.cpp37 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint);
45 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint);
54 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint);
57 canvas->drawIRect(SkIRect::MakeWH(250, 250), paint);
Doccludedrrectblur.cpp96 SkRect r = SkRect::MakeWH(kSize, kSize); in draw_45()
117 SkIRect r = SkIRect::MakeWH(64, 64); in draw_45_simple()
135 r = SkIRect::MakeWH(kWidth, 64); in draw_90()
137 r = SkIRect::MakeWH(64, kWidth); in draw_90()
158 r = SkIRect::MakeWH(kLength, kWidth); in draw_90_simple()
160 r = SkIRect::MakeWH(kWidth, kLength); in draw_90_simple()
204 r = SkIRect::MakeWH(kLength, kWidth); in draw_30_60()
206 r = SkIRect::MakeWH(kWidth, kLength); in draw_30_60()
244 SkIRect r = SkIRect::MakeWH(420, 420); in onDraw()
260 SkIRect r = SkIRect::MakeWH(32, 32); in onDraw()
Dextractbitmap.cpp60 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw()
64 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height())); in onDraw()
70 bitmap.extractSubset(&subset, SkIRect::MakeWH(bitmap.height(), y)); in onDraw()
Dshadowutils.cpp27 paths.push_back().addRoundRect(SkRect::MakeWH(50, 50), 10, 10); in draw_paths()
29 oddRRect.setNinePatch(SkRect::MakeWH(50, 50), 9, 13, 6, 16); in draw_paths()
31 paths.push_back().addRect(SkRect::MakeWH(50, 50)); in draw_paths()
34 paths.push_back().addOval(SkRect::MakeWH(20, 60)); in draw_paths()
Dlightingshader.cpp20 sk_tool_utils::create_hemi_normal_map(&hemi, SkIRect::MakeWH(texSize, texSize)); in make_hemi_normalmap()
29 sk_tool_utils::create_frustum_normal_map(&frustum, SkIRect::MakeWH(texSize, texSize)); in make_frustum_normalmap()
38 sk_tool_utils::create_tetra_normal_map(&tetra, SkIRect::MakeWH(texSize, texSize)); in make_tetra_normalmap()
119 r = SkRect::MakeWH(SkIntToScalar(kTexSize), SkIntToScalar(kTexSize)); in onDraw()
Drecordopts.cpp57 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_rect_restore_sequence()
81 canvas.drawRect(SkRect::MakeWH(SkIntToScalar(7), SkIntToScalar(7)), p); in draw_save_layer_draw_bitmap_restore_sequence()
85 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_save_layer_draw_bitmap_restore_sequence()
100 SkRect targetRect(SkRect::MakeWH(SkIntToScalar(kTestRectSize), SkIntToScalar(kTestRectSize))); in draw_svg_opacity_and_filter_layer_sequence()
Dbug5252.cpp17 clip1.addOval(SkRect::MakeWH(225, 200));
21 clip2.addRect(SkRect::MakeWH(220, 200));
/external/skia/bench/
DDrawLatticeBench.cpp66 SkRect::MakeWH(250.0f, 250.0f), "Src100_Dst250_Rects9");)
68 SkRect::MakeWH(500.0f, 500.0f), "Src100_Dst500_Rects9");)
70 SkRect::MakeWH(1000.0f, 1000.0f), "Src100_Dst1000_Rects9");)
73 SkRect::MakeWH(250.0f, 250.0f), "Src100_Dst250_Rects15");)
75 SkRect::MakeWH(500.0f, 500.0f), "Src100_Dst500_Rects15");)
77 SkRect::MakeWH(1000.0f, 1000.0f), "Src100_Dst1000_Rects15");)
DTileImageFilterBench.cpp40 paint.setImageFilter(SkTileImageFilter::Make(SkRect::MakeWH(50, 50), in onDraw()
41 SkRect::MakeWH(WIDTH, HEIGHT), in onDraw()
51 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
56 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
/external/skia/samplecode/
DSampleShadowUtils.cpp46 fPaths.push_back().addRoundRect(SkRect::MakeWH(50, 50), 10, 10); in onOnceBeforeDraw()
48 oddRRect.setNinePatch(SkRect::MakeWH(50, 50), 9, 13, 6, 16); in onOnceBeforeDraw()
50 fPaths.push_back().addRect(SkRect::MakeWH(50, 50)); in onOnceBeforeDraw()
53 fPaths.push_back().addOval(SkRect::MakeWH(20, 60)); in onOnceBeforeDraw()
/external/skia/src/gpu/
DGrTestUtils.cpp114 gRects[0] = SkRect::MakeWH(1.f, 1.f); in TestRect()
115 gRects[1] = SkRect::MakeWH(1.0f, 256.0f); in TestRect()
116 gRects[2] = SkRect::MakeWH(256.0f, 1.0f); in TestRect()
130 gRects[0] = SkRect::MakeWH(128.f, 128.f); in TestSquare()
131 gRects[1] = SkRect::MakeWH(256.0f, 256.0f); in TestSquare()
141 SkRect rectangle = SkRect::MakeWH(10.f, 20.f); in TestRRectSimple()

12345678910>>...12