Home
last modified time | relevance | path

Searched refs:recorder (Results 1 – 25 of 258) sorted by relevance

1234567891011

/third_party/flutter/skia/tests/
DRecordOptsTest.cpp24 SkRecorder recorder(&record, W, H); in DEF_TEST() local
26 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()
39 SkRecorder recorder(&record, W, H); in DEF_TEST() local
41 recorder.save(); in DEF_TEST()
42 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST()
43 recorder.restore(); in DEF_TEST()
53 SkRecorder recorder(&record, W, H); in DEF_TEST() local
56 recorder.save(); in DEF_TEST()
[all …]
DRecordPatternTest.cpp27 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local
30 recorder.save(); in DEF_TEST()
33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
36 recorder.restore(); in DEF_TEST()
47 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local
51 recorder.save(); in DEF_TEST()
52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
53 recorder.restore(); in DEF_TEST()
70 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local
72 recorder.save(); in DEF_TEST()
[all …]
DRecordDrawTest.cpp35 SkRecorder recorder(&record, W, H); in DEF_TEST() local
38 recorder.save(); in DEF_TEST()
40 recorder.drawColor(SK_ColorRED); in DEF_TEST()
42 recorder.scale(2, 2); in DEF_TEST()
44 recorder.restore(); in DEF_TEST()
52 recorder.save(); in DEF_TEST()
53 recorder.save(); in DEF_TEST()
54 recorder.restore(); in DEF_TEST()
55 recorder.restore(); in DEF_TEST()
62 SkRecorder recorder(&record, W, H); in DEF_TEST() local
[all …]
DPictureTest.cpp56 SkPictureRecorder recorder; in test_deleting_empty_picture() local
58 recorder.beginRecording(0, 0); in test_deleting_empty_picture()
60 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_deleting_empty_picture()
62 recorder.beginRecording(0, 0); in test_deleting_empty_picture()
67 SkPictureRecorder recorder; in test_serializing_empty_picture() local
68 recorder.beginRecording(0, 0); in test_serializing_empty_picture()
69 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_serializing_empty_picture()
168 static sk_sp<SkPicture> Copy(SkPictureRecorder* recorder) { in Copy() argument
173 recorder->partialReplay(canvas); in Copy()
218 SkPictureRecorder recorder; in DEF_TEST() local
[all …]
DGrTRecorderTest.cpp44 ExtraData::Recorder recorder(0); in test_extra_data() local
45 REPORTER_ASSERT(reporter, recorder.empty()); in test_extra_data()
47 recorder.emplaceWithData<ExtraData>(i * sizeof(int), i); in test_extra_data()
48 REPORTER_ASSERT(reporter, !recorder.empty()); in test_extra_data()
52 auto iter = recorder.begin(); in test_extra_data()
59 REPORTER_ASSERT(reporter, iter == recorder.end()); in test_extra_data()
61 recorder.reset(); in test_extra_data()
63 REPORTER_ASSERT(reporter, recorder.begin() == recorder.end()); in test_extra_data()
64 REPORTER_ASSERT(reporter, recorder.empty()); in test_extra_data()
176 Base::Recorder recorder(1024); in test_subclasses() local
[all …]
DRecorderTest.cpp44 SkRecorder recorder(&record, 1920, 1080); in DEF_TEST() local
46 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); in DEF_TEST()
66 SkRecorder recorder(&record, 1920, 1080); in DEF_TEST() local
67 recorder.saveLayer(&bounds, &paint); in DEF_TEST()
83 SkRecorder recorder(&record, 100, 100); in DEF_TEST() local
86 recorder.drawImage(image, 0, 0); in DEF_TEST()
98 SkRecorder recorder(&record, 100, 100); in DEF_TEST() local
101 recorder.drawImageRect(image, SkRect::MakeWH(100, 100), nullptr); in DEF_TEST()
DPictureBBHTest.cpp45 SkPictureRecorder recorder; in run() local
46 SkCanvas* recordCanvas = recorder.beginRecording(SkIntToScalar(fPictureWidth), in run()
50 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in run()
99 SkPictureRecorder recorder; in DEF_TEST() local
104 auto canvas = recorder.beginRecording(cull, &factory); in DEF_TEST()
110 auto pic = recorder.finishRecordingAsPicture(); in DEF_TEST()
116 auto canvas = recorder.beginRecording(cull, &factory); in DEF_TEST()
120 auto pic = recorder.finishRecordingAsPicture(); in DEF_TEST()
/third_party/skia/tests/
DRecordOptsTest.cpp24 SkRecorder recorder(&record, W, H); in DEF_TEST() local
26 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()
39 SkRecorder recorder(&record, W, H); in DEF_TEST() local
41 recorder.save(); in DEF_TEST()
42 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST()
43 recorder.restore(); in DEF_TEST()
53 SkRecorder recorder(&record, W, H); in DEF_TEST() local
56 recorder.save(); in DEF_TEST()
[all …]
DRecordPatternTest.cpp27 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local
30 recorder.save(); in DEF_TEST()
33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
36 recorder.restore(); in DEF_TEST()
47 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local
51 recorder.save(); in DEF_TEST()
52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST()
53 recorder.restore(); in DEF_TEST()
70 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local
72 recorder.save(); in DEF_TEST()
[all …]
DRecordDrawTest.cpp35 SkRecorder recorder(&record, W, H); in DEF_TEST() local
38 recorder.save(); in DEF_TEST()
40 recorder.drawColor(SK_ColorRED); in DEF_TEST()
42 recorder.scale(2, 2); in DEF_TEST()
44 recorder.restore(); in DEF_TEST()
52 recorder.save(); in DEF_TEST()
53 recorder.save(); in DEF_TEST()
54 recorder.restore(); in DEF_TEST()
55 recorder.restore(); in DEF_TEST()
62 SkRecorder recorder(&record, W, H); in DEF_TEST() local
[all …]
DPictureTest.cpp54 SkPictureRecorder recorder; in test_deleting_empty_picture() local
56 recorder.beginRecording(0, 0); in test_deleting_empty_picture()
58 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_deleting_empty_picture()
60 recorder.beginRecording(0, 0); in test_deleting_empty_picture()
65 SkPictureRecorder recorder; in test_serializing_empty_picture() local
66 recorder.beginRecording(0, 0); in test_serializing_empty_picture()
67 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_serializing_empty_picture()
166 static sk_sp<SkPicture> Copy(SkPictureRecorder* recorder) { in Copy() argument
171 recorder->partialReplay(canvas); in Copy()
216 SkPictureRecorder recorder; in DEF_TEST() local
[all …]
DRecorderTest.cpp44 SkRecorder recorder(&record, 1920, 1080); in DEF_TEST() local
46 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); in DEF_TEST()
66 SkRecorder recorder(&record, 1920, 1080); in DEF_TEST() local
67 recorder.saveLayer(&bounds, &paint); in DEF_TEST()
84 SkRecorder recorder(&record, 100, 100); in DEF_TEST() local
87 recorder.drawImage(image.get(), 0, 0, SkSamplingOptions()); in DEF_TEST()
99 SkRecorder recorder(&record, 100, 100); in DEF_TEST() local
102 recorder.drawImageRect(image.get(), SkRect::MakeWH(100, 100), SkRect::MakeWH(100, 100), in DEF_TEST()
119 SkRecorder recorder(&record, bigBounds); in DEF_TEST() local
120 REPORTER_ASSERT(reporter, recorder.imageInfo().width() > 0 && in DEF_TEST()
[all …]
DPictureBBHTest.cpp44 SkPictureRecorder recorder; in run() local
45 SkCanvas* recordCanvas = recorder.beginRecording(SkIntToScalar(fPictureWidth), in run()
49 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in run()
98 SkPictureRecorder recorder; in DEF_TEST() local
104 auto canvas = recorder.beginRecording(cull, bbh); in DEF_TEST()
110 auto pic = recorder.finishRecordingAsPicture(); in DEF_TEST()
116 auto canvas = recorder.beginRecording(cull, &factory); in DEF_TEST()
120 auto pic = recorder.finishRecordingAsPicture(); in DEF_TEST()
DPictureShaderTest.cpp21 SkPictureRecorder recorder; in DEF_TEST() local
22 recorder.beginRecording(100, 100)->drawColor(SK_ColorGREEN); in DEF_TEST()
23 return recorder.finishRecordingAsPicture(); in DEF_TEST()
62 SkPictureRecorder recorder; in DEF_TEST() local
63 recorder.beginRecording(100, 100)->drawColor(SK_ColorGREEN); in DEF_TEST()
64 return recorder.finishRecordingAsPicture(); in DEF_TEST()
/third_party/weston/libweston/
Dscreenshooter.c259 weston_recorder_destroy(struct weston_recorder *recorder);
264 struct weston_recorder *recorder = in weston_recorder_frame_notify() local
266 struct weston_output *output = recorder->output; in weston_recorder_frame_notify()
284 outbuf = recorder->rect; in weston_recorder_frame_notify()
286 outbuf = recorder->tmpbuf; in weston_recorder_frame_notify()
309 recorder->total += writev(recorder->fd, v, 2); in weston_recorder_frame_notify()
322 compositor->read_format, recorder->rect, in weston_recorder_frame_notify()
329 s = recorder->rect + width * j; in weston_recorder_frame_notify()
331 s = recorder->rect + width * (height - j - 1); in weston_recorder_frame_notify()
333 d = recorder->frame + stride * y_orig + r[i].x1; in weston_recorder_frame_notify()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DObjectContentHasher.h40 static constexpr void Call(ObjectContentHasher* recorder, in Call()
43 HashCombine(&recorder->mContentHash, value, args...); in Call()
49 static constexpr void Call(ObjectContentHasher* recorder, T* obj) {
58 static constexpr void Call(ObjectContentHasher* recorder, const std::vector<T>& vec) {
59 recorder->RecordIterable<std::vector<T>>(vec);
75 static constexpr void Call(ObjectContentHasher* recorder, const std::string& str) {
76 recorder->RecordIterable<std::string>(str);
/third_party/flutter/skia/bench/
DPictureNestingBench.cpp51 SkPictureRecorder recorder; in sierpinsky() local
55 c = recorder.beginRecording(1, 1); in sierpinsky()
77 canvas->drawPicture(recorder.finishRecordingAsPicture()); in sierpinsky()
121 SkPictureRecorder recorder; in onDraw() local
124 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDraw()
127 (void)recorder.finishRecordingAsPicture(); in onDraw()
145 SkPictureRecorder recorder; in onDelayedSetup() local
146 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDelayedSetup()
150 fPicture = recorder.finishRecordingAsPicture(); in onDelayedSetup()
/third_party/skia/bench/
DPictureNestingBench.cpp51 SkPictureRecorder recorder; in sierpinsky() local
55 c = recorder.beginRecording(1, 1); in sierpinsky()
77 canvas->drawPicture(recorder.finishRecordingAsPicture()); in sierpinsky()
121 SkPictureRecorder recorder; in onDraw() local
124 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDraw()
127 (void)recorder.finishRecordingAsPicture(); in onDraw()
145 SkPictureRecorder recorder; in onDelayedSetup() local
146 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDelayedSetup()
150 fPicture = recorder.finishRecordingAsPicture(); in onDelayedSetup()
/third_party/skia/gm/
Ddistantclip.cpp32 SkPictureRecorder recorder; in onDraw() local
36 SkCanvas* rec = recorder.beginRecording(kExtents, kOffset + kExtents); in onDraw()
43 sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); in onDraw()
46 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw()
48 sk_sp<SkPicture> pict2(recorder.finishRecordingAsPicture()); in onDraw()
Drecordopts.cpp111 SkPictureRecorder recorder; in draw_svg_opacity_and_filter_layer_sequence() local
112 SkCanvas* recordCanvas = recorder.beginRecording(SkIntToScalar(kTestRectSize + 2), in draw_svg_opacity_and_filter_layer_sequence()
117 shape = recorder.finishRecordingAsPicture(); in draw_svg_opacity_and_filter_layer_sequence()
169 SkPictureRecorder recorder; variable
170 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize),
173 recorder.finishRecordingAsPicture()->playback(canvas);
214 SkPictureRecorder recorder; variable
215 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize),
218 recorder.finishRecordingAsPicture()->playback(canvas);
/third_party/flutter/skia/gm/
Drecordopts.cpp111 SkPictureRecorder recorder; in draw_svg_opacity_and_filter_layer_sequence() local
112 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kTestRectSize + 2), in draw_svg_opacity_and_filter_layer_sequence()
117 shape = recorder.finishRecordingAsPicture(); in draw_svg_opacity_and_filter_layer_sequence()
169 SkPictureRecorder recorder; variable
170 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize),
173 recorder.finishRecordingAsPicture()->playback(canvas);
214 SkPictureRecorder recorder; variable
215 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize),
218 recorder.finishRecordingAsPicture()->playback(canvas);
Ddistantclip.cpp32 SkPictureRecorder recorder; in onDraw() local
36 SkCanvas* rec = recorder.beginRecording(kExtents, kOffset + kExtents, nullptr, 0); in onDraw()
45 sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); in onDraw()
48 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw()
51 sk_sp<SkPicture> pict2(recorder.finishRecordingAsPicture()); in onDraw()
Dmultipicturedraw.cpp74 SkPictureRecorder recorder; in make_hex_plane_picture() local
77 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), in make_hex_plane_picture()
99 return recorder.finishRecordingAsPicture(); in make_hex_plane_picture()
123 SkPictureRecorder recorder; in make_single_layer_hex_plane_picture() local
127 SkCanvas* canvas = recorder.beginRecording(kBig, kBig, &bbhFactory); in make_single_layer_hex_plane_picture()
154 return recorder.finishRecordingAsPicture(); in make_single_layer_hex_plane_picture()
178 SkPictureRecorder recorder; in make_tri_picture() local
181 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(kPicWidth), in make_tri_picture()
193 return recorder.finishRecordingAsPicture(); in make_tri_picture()
197 SkPictureRecorder recorder; in make_sub_picture() local
[all …]
/third_party/weston/compositor/
Dweston-screenshooter.c43 struct weston_recorder *recorder; member
152 struct weston_recorder *recorder = shooter->recorder;; in recorder_binding() local
155 if (recorder) { in recorder_binding()
156 weston_recorder_stop(recorder); in recorder_binding()
157 shooter->recorder = NULL; in recorder_binding()
165 shooter->recorder = weston_recorder_start(output, filename); in recorder_binding()
/third_party/skia/experimental/graphite/src/
DDrawPass.cpp32 std::tuple<uint32_t, uint32_t> get_ids_from_paint(skgpu::Recorder* recorder, in get_ids_from_paint() argument
42 auto [ combo, uniformData] = ExtractCombo(recorder->uniformCache(), p); in get_ids_from_paint()
43 auto programInfo = recorder->programCache()->findOrCreateProgram(combo); in get_ids_from_paint()
134 skgpu::UniformData* lookup(skgpu::Recorder* recorder, uint32_t uniformID) { in lookup() argument
136 sk_sp<skgpu::UniformData> tmp = recorder->uniformCache()->lookup(uniformID); in lookup()
154 std::unique_ptr<DrawPass> DrawPass::Make(Recorder* recorder, in Make() argument
195 std::tie(programID, shadingUniformID) = get_ids_from_paint(recorder, in Make()
238 DrawBufferManager* bufferMgr = recorder->drawBufferManager(); in Make()
294 auto ud = lookup(recorder, key.shadingUniforms()); in Make()

1234567891011